linux-mips
[Top] [All Lists]

[PATCH] MIPS: define write{b,w,l,q}_relaxed

To: linux-mips@linux-mips.org
Subject: [PATCH] MIPS: define write{b,w,l,q}_relaxed
From: "Florian Fainelli" <f.fainelli@gmail.com>
Date: Fri, 31 May 2013 15:07:44 +0100
Cc: ralf@linux-mips.org, cernekee@gmail.com, jogo@openwrt.org, blogic@openwrt.org, "Florian Fainelli" <f.fainelli@gmail.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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>
---
 arch/mips/include/asm/io.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h
index b7e5985..ca42c68 100644
--- a/arch/mips/include/asm/io.h
+++ b/arch/mips/include/asm/io.h
@@ -449,6 +449,11 @@ __BUILDIO(q, u64)
 #define readl_relaxed                  readl
 #define readq_relaxed                  readq
 
+#define writeb_relaxed                 writeb
+#define writew_relaxed                 writew
+#define writel_relaxed                 writel
+#define writeq_relaxed                 writeq
+
 #define readb_be(addr)                                                 \
        __raw_readb((__force unsigned *)(addr))
 #define readw_be(addr)                                                 \
-- 
1.8.1.2



<Prev in Thread] Current Thread [Next in Thread>