diff options
author | Will Deacon <will.deacon@arm.com> | 2013-09-04 11:34:08 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2014-10-20 18:49:18 +0100 |
commit | 1191ccb34cf810a0fefaaf5ca3cfe3c5d7675927 (patch) | |
tree | 1700dadabaaa2d658fa0c34580edd6c99e0bb205 /arch/sparc/include/asm/io.h | |
parent | 5da590574cbc39e48d1b71d87b62766c044b9b52 (diff) | |
download | linux-1191ccb34cf810a0fefaaf5ca3cfe3c5d7675927.tar.bz2 |
sparc: io: implement dummy relaxed accessor macros for writes
write{b,w,l,q}_relaxed are implemented by some architectures in order to
permit memory-mapped I/O accesses with weaker barrier semantics than the
non-relaxed variants.
This patch adds dummy macros for the write accessors to sparc, in the
same vein as the dummy definitions for the relaxed read accessors. The
existing relaxed read{b,w,l} accessors are moved into asm/io.h, since
they are identical between 32-bit and 64-bit machines.
Acked-by: "David S. Miller" <davem@davemloft.net>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/sparc/include/asm/io.h')
-rw-r--r-- | arch/sparc/include/asm/io.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/io.h b/arch/sparc/include/asm/io.h index f6902cf3cbe9..493f22c4684f 100644 --- a/arch/sparc/include/asm/io.h +++ b/arch/sparc/include/asm/io.h @@ -10,6 +10,15 @@ * Defines used for both SPARC32 and SPARC64 */ +/* Relaxed accessors for MMIO */ +#define readb_relaxed(__addr) readb(__addr) +#define readw_relaxed(__addr) readw(__addr) +#define readl_relaxed(__addr) readl(__addr) + +#define writeb_relaxed(__b, __addr) writeb(__b, __addr) +#define writew_relaxed(__w, __addr) writew(__w, __addr) +#define writel_relaxed(__l, __addr) writel(__l, __addr) + /* Big endian versions of memory read/write routines */ #define readb_be(__addr) __raw_readb(__addr) #define readw_be(__addr) __raw_readw(__addr) |