diff options
author | Michael Cree <mcree@orcon.net.nz> | 2011-11-30 08:01:40 -0500 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2014-08-06 18:07:41 +0100 |
commit | 1df72e0db666f088e5077ab44c998624a97ab361 (patch) | |
tree | 1c72d789a17ad9ffedcb0065f44941e4908f7f19 /arch/alpha | |
parent | 951c03ac6f73eda3b6ae41ffe8c4a603d0a3b3af (diff) | |
download | kernel_samsung_smdk4412-1df72e0db666f088e5077ab44c998624a97ab361.zip kernel_samsung_smdk4412-1df72e0db666f088e5077ab44c998624a97ab361.tar.gz kernel_samsung_smdk4412-1df72e0db666f088e5077ab44c998624a97ab361.tar.bz2 |
alpha: add io{read,write}{16,32}be functions
commit 25534eb7707821b796fd84f7115367e02f36aa60 upstream.
These functions are used in some PCI drivers with big-endian
MMIO space.
Admittedly it is almost certain that no one this side of the
Moon would use such a card in an Alpha but it does get us
closer to being able to build allyesconfig or allmodconfig,
and it enables the Debian default generic config to build.
Tested-by: Raúl Porcel <armin76@gentoo.org>
Signed-off-by: Michael Cree <mcree@orcon.net.nz>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'arch/alpha')
-rw-r--r-- | arch/alpha/include/asm/io.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/alpha/include/asm/io.h b/arch/alpha/include/asm/io.h index 56ff965..6365ef2 100644 --- a/arch/alpha/include/asm/io.h +++ b/arch/alpha/include/asm/io.h @@ -490,6 +490,11 @@ extern inline void writeq(u64 b, volatile void __iomem *addr) } #endif +#define ioread16be(p) be16_to_cpu(ioread16(p)) +#define ioread32be(p) be32_to_cpu(ioread32(p)) +#define iowrite16be(v,p) iowrite16(cpu_to_be16(v), (p)) +#define iowrite32be(v,p) iowrite32(cpu_to_be32(v), (p)) + #define inb_p inb #define inw_p inw #define inl_p inl |