diff options
Diffstat (limited to 'arch/frv')
-rw-r--r-- | arch/frv/include/asm/io.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/frv/include/asm/io.h b/arch/frv/include/asm/io.h index 99bb7efaf9b7..0b78bc89e840 100644 --- a/arch/frv/include/asm/io.h +++ b/arch/frv/include/asm/io.h | |||
@@ -342,6 +342,11 @@ static inline void iowrite32(u32 val, void __iomem *p) | |||
342 | __flush_PCI_writes(); | 342 | __flush_PCI_writes(); |
343 | } | 343 | } |
344 | 344 | ||
345 | #define ioread16be(addr) be16_to_cpu(ioread16(addr)) | ||
346 | #define ioread32be(addr) be32_to_cpu(ioread32(addr)) | ||
347 | #define iowrite16be(v, addr) iowrite16(cpu_to_be16(v), (addr)) | ||
348 | #define iowrite32be(v, addr) iowrite32(cpu_to_be32(v), (addr)) | ||
349 | |||
345 | static inline void ioread8_rep(void __iomem *p, void *dst, unsigned long count) | 350 | static inline void ioread8_rep(void __iomem *p, void *dst, unsigned long count) |
346 | { | 351 | { |
347 | io_insb((unsigned long) p, dst, count); | 352 | io_insb((unsigned long) p, dst, count); |