diff options
Diffstat (limited to 'arch/sh/include/asm/io.h')
-rw-r--r-- | arch/sh/include/asm/io.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h index 0454f8d68059..25348141674b 100644 --- a/arch/sh/include/asm/io.h +++ b/arch/sh/include/asm/io.h | |||
@@ -123,10 +123,15 @@ static inline void __raw_reads##bwlq(volatile void __iomem *mem, \ | |||
123 | 123 | ||
124 | __BUILD_MEMORY_STRING(b, u8) | 124 | __BUILD_MEMORY_STRING(b, u8) |
125 | __BUILD_MEMORY_STRING(w, u16) | 125 | __BUILD_MEMORY_STRING(w, u16) |
126 | __BUILD_MEMORY_STRING(q, u64) | ||
127 | 126 | ||
127 | #ifdef CONFIG_SUPERH32 | ||
128 | void __raw_writesl(void __iomem *addr, const void *data, int longlen); | 128 | void __raw_writesl(void __iomem *addr, const void *data, int longlen); |
129 | void __raw_readsl(const void __iomem *addr, void *data, int longlen); | 129 | void __raw_readsl(const void __iomem *addr, void *data, int longlen); |
130 | #else | ||
131 | __BUILD_MEMORY_STRING(l, u32) | ||
132 | #endif | ||
133 | |||
134 | __BUILD_MEMORY_STRING(q, u64) | ||
130 | 135 | ||
131 | #define writesb __raw_writesb | 136 | #define writesb __raw_writesb |
132 | #define writesw __raw_writesw | 137 | #define writesw __raw_writesw |
@@ -224,17 +229,6 @@ void __iomem *__ioremap(unsigned long offset, unsigned long size, | |||
224 | unsigned long flags); | 229 | unsigned long flags); |
225 | void __iounmap(void __iomem *addr); | 230 | void __iounmap(void __iomem *addr); |
226 | 231 | ||
227 | /* arch/sh/mm/ioremap_64.c */ | ||
228 | unsigned long onchip_remap(unsigned long addr, unsigned long size, | ||
229 | const char *name); | ||
230 | extern void onchip_unmap(unsigned long vaddr); | ||
231 | #else | ||
232 | #define __ioremap(offset, size, flags) ((void __iomem *)(offset)) | ||
233 | #define __iounmap(addr) do { } while (0) | ||
234 | #define onchip_remap(addr, size, name) (addr) | ||
235 | #define onchip_unmap(addr) do { } while (0) | ||
236 | #endif /* CONFIG_MMU */ | ||
237 | |||
238 | static inline void __iomem * | 232 | static inline void __iomem * |
239 | __ioremap_mode(unsigned long offset, unsigned long size, unsigned long flags) | 233 | __ioremap_mode(unsigned long offset, unsigned long size, unsigned long flags) |
240 | { | 234 | { |
@@ -268,6 +262,10 @@ __ioremap_mode(unsigned long offset, unsigned long size, unsigned long flags) | |||
268 | 262 | ||
269 | return __ioremap(offset, size, flags); | 263 | return __ioremap(offset, size, flags); |
270 | } | 264 | } |
265 | #else | ||
266 | #define __ioremap_mode(offset, size, flags) ((void __iomem *)(offset)) | ||
267 | #define __iounmap(addr) do { } while (0) | ||
268 | #endif /* CONFIG_MMU */ | ||
271 | 269 | ||
272 | #define ioremap(offset, size) \ | 270 | #define ioremap(offset, size) \ |
273 | __ioremap_mode((offset), (size), 0) | 271 | __ioremap_mode((offset), (size), 0) |