aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2013-05-31 09:07:44 -0400
committerRalf Baechle <ralf@linux-mips.org>2013-07-01 09:10:59 -0400
commitedd4201ebc2f1a7ab2158ad91ddc0af71e58dce7 (patch)
tree558b5967c924762d7c779bf485a9238741a72931 /arch
parent78857614104a26cdada4c53eea104752042bf5a1 (diff)
MIPS: define write{b,w,l,q}_relaxed
MIPS does define read{b,w,l,q}_relaxed but does not define their write counterparts: write{b,w,l,q}_relaxed. This patch adds the missing definitions for the write*_relaxed I/O accessors. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Acked-by: John Crispin <blogic@openwrt.org> Cc: linux-mips@linux-mips.org Cc: cernekee@gmail.com Cc: jogo@openwrt.org Patchwork: https://patchwork.linux-mips.org/patch/5352/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/include/asm/io.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h
index b84e1fb3fabf..3321dd5a8872 100644
--- a/arch/mips/include/asm/io.h
+++ b/arch/mips/include/asm/io.h
@@ -454,6 +454,11 @@ __BUILDIO(q, u64)
454#define readl_relaxed readl 454#define readl_relaxed readl
455#define readq_relaxed readq 455#define readq_relaxed readq
456 456
457#define writeb_relaxed writeb
458#define writew_relaxed writew
459#define writel_relaxed writel
460#define writeq_relaxed writeq
461
457#define readb_be(addr) \ 462#define readb_be(addr) \
458 __raw_readb((__force unsigned *)(addr)) 463 __raw_readb((__force unsigned *)(addr))
459#define readw_be(addr) \ 464#define readw_be(addr) \