diff options
author | Guenter Roeck <linux@roeck-us.net> | 2015-04-20 11:37:42 -0400 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2015-04-22 23:37:56 -0400 |
commit | 601e3ad9def147f714c1b66fd397d138ba5dbd3b (patch) | |
tree | 87ad76c86f2f7163a7a9189422ad58c2d4b5d4e3 /arch/mn10300 | |
parent | f3b07b8611ede9584ef27288d9c35bc2fd7a8353 (diff) |
mn10300: add io{read,write}{16,32}be functions
These functions are used in various drivers, including the latest
version of the 8250 driver. The latter causes the following build failure.
drivers/tty/serial/8250/8250_core.c: In function 'mem32be_serial_out':
drivers/tty/serial/8250/8250_core.c:456:2: error:
implicit declaration of function 'iowrite32be'
drivers/tty/serial/8250/8250_core.c: In function 'mem32be_serial_in':
drivers/tty/serial/8250/8250_core.c:462:2: error:
implicit declaration of function 'ioread32be'
Cc: Kevin Cernekee <cernekee@gmail.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Fixes: c627f2ceb692 ("serial: 8250: Add support for big-endian MMIO
accesses")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'arch/mn10300')
-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) \ |