hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/arch/s390/include/asm/io.h
....@@ -12,6 +12,7 @@
1212
1313 #include <linux/kernel.h>
1414 #include <asm/page.h>
15
+#include <asm/pgtable.h>
1516 #include <asm/pci_io.h>
1617
1718 #define xlate_dev_mem_ptr xlate_dev_mem_ptr
....@@ -26,18 +27,11 @@
2627
2728 #define IO_SPACE_LIMIT 0
2829
29
-#define ioremap_nocache(addr, size) ioremap(addr, size)
30
-#define ioremap_wc ioremap_nocache
31
-#define ioremap_wt ioremap_nocache
32
-
33
-static inline void __iomem *ioremap(unsigned long offset, unsigned long size)
34
-{
35
- return (void __iomem *) offset;
36
-}
37
-
38
-static inline void iounmap(volatile void __iomem *addr)
39
-{
40
-}
30
+void __iomem *ioremap_prot(phys_addr_t addr, size_t size, unsigned long prot);
31
+void __iomem *ioremap(phys_addr_t addr, size_t size);
32
+void __iomem *ioremap_wc(phys_addr_t addr, size_t size);
33
+void __iomem *ioremap_wt(phys_addr_t addr, size_t size);
34
+void iounmap(volatile void __iomem *addr);
4135
4236 static inline void __iomem *ioport_map(unsigned long port, unsigned int nr)
4337 {
....@@ -57,14 +51,21 @@
5751 * the corresponding device and create the mapping cookie.
5852 */
5953 #define pci_iomap pci_iomap
54
+#define pci_iomap_range pci_iomap_range
6055 #define pci_iounmap pci_iounmap
61
-#define pci_iomap_wc pci_iomap
62
-#define pci_iomap_wc_range pci_iomap_range
56
+#define pci_iomap_wc pci_iomap_wc
57
+#define pci_iomap_wc_range pci_iomap_wc_range
58
+
59
+#define ioremap ioremap
60
+#define ioremap_wt ioremap_wt
61
+#define ioremap_wc ioremap_wc
6362
6463 #define memcpy_fromio(dst, src, count) zpci_memcpy_fromio(dst, src, count)
6564 #define memcpy_toio(dst, src, count) zpci_memcpy_toio(dst, src, count)
6665 #define memset_io(dst, val, count) zpci_memset_io(dst, val, count)
6766
67
+#define mmiowb() zpci_barrier()
68
+
6869 #define __raw_readb zpci_read_u8
6970 #define __raw_readw zpci_read_u16
7071 #define __raw_readl zpci_read_u32