hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/arch/sparc/include/asm/io_32.h
....@@ -11,6 +11,13 @@
1111 #define memcpy_fromio(d,s,sz) _memcpy_fromio(d,s,sz)
1212 #define memcpy_toio(d,s,sz) _memcpy_toio(d,s,sz)
1313
14
+/*
15
+ * Bus number may be embedded in the higher bits of the physical address.
16
+ * This is why we have no bus number argument to ioremap().
17
+ */
18
+void __iomem *ioremap(phys_addr_t offset, size_t size);
19
+void iounmap(volatile void __iomem *addr);
20
+
1421 #include <asm-generic/io.h>
1522
1623 static inline void _memset_io(volatile void __iomem *dst,
....@@ -121,13 +128,6 @@
121128 }
122129 }
123130
124
-#ifdef __KERNEL__
125
-
126
-/*
127
- * Bus number may be embedded in the higher bits of the physical address.
128
- * This is why we have no bus number argument to ioremap().
129
- */
130
-void iounmap(volatile void __iomem *addr);
131131 /* Create a virtual mapping cookie for an IO port range */
132132 void __iomem *ioport_map(unsigned long port, unsigned int nr);
133133 void ioport_unmap(void __iomem *);
....@@ -146,8 +146,6 @@
146146 }
147147 struct device;
148148 void sbus_set_sbus64(struct device *, int);
149
-
150
-#endif
151149
152150 #define __ARCH_HAS_NO_PAGE_ZERO_MAPPED 1
153151