diff options
| -rw-r--r-- | arch/mn10300/include/asm/io.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mn10300/include/asm/io.h b/arch/mn10300/include/asm/io.h index 897ba3c12b32..cc4a2ba9e228 100644 --- a/arch/mn10300/include/asm/io.h +++ b/arch/mn10300/include/asm/io.h | |||
| @@ -197,6 +197,11 @@ static inline void outsl(unsigned long addr, const void *buffer, int count) | |||
| 197 | #define iowrite16(v, addr) writew((v), (addr)) | 197 | #define iowrite16(v, addr) writew((v), (addr)) |
| 198 | #define iowrite32(v, addr) writel((v), (addr)) | 198 | #define iowrite32(v, addr) writel((v), (addr)) |
| 199 | 199 | ||
| 200 | #define ioread16be(addr) be16_to_cpu(readw(addr)) | ||
| 201 | #define ioread32be(addr) be32_to_cpu(readl(addr)) | ||
| 202 | #define iowrite16be(v, addr) writew(cpu_to_be16(v), (addr)) | ||
| 203 | #define iowrite32be(v, addr) writel(cpu_to_be32(v), (addr)) | ||
| 204 | |||
| 200 | #define ioread8_rep(p, dst, count) \ | 205 | #define ioread8_rep(p, dst, count) \ |
| 201 | insb((unsigned long) (p), (dst), (count)) | 206 | insb((unsigned long) (p), (dst), (count)) |
| 202 | #define ioread16_rep(p, dst, count) \ | 207 | #define ioread16_rep(p, dst, count) \ |
