sparc: Provide io{read,write}{16,32}be().
authorDavid S. Miller <davem@davemloft.net>
Wed, 3 Mar 2010 10:30:37 +0000 (02:30 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Mar 2010 10:30:37 +0000 (02:30 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/io_32.h
arch/sparc/include/asm/io_64.h

index 679c7504625acc86deab57d1e1feada4ef408317..2889574608db72f36b3ae1ea61309f77e22e282f 100644 (file)
@@ -249,10 +249,14 @@ extern void iounmap(volatile void __iomem *addr);
 
 #define ioread8(X)                     readb(X)
 #define ioread16(X)                    readw(X)
+#define ioread16be(X)                  __raw_readw(X)
 #define ioread32(X)                    readl(X)
+#define ioread32be(X)                  __raw_readl(X)
 #define iowrite8(val,X)                        writeb(val,X)
 #define iowrite16(val,X)               writew(val,X)
+#define iowrite16be(val,X)             __raw_writew(val,X)
 #define iowrite32(val,X)               writel(val,X)
+#define iowrite32be(val,X)             __raw_writel(val,X)
 
 static inline void ioread8_rep(void __iomem *port, void *buf, unsigned long count)
 {
index 4aee21dc9c6f10d8f6d0f908177f7c56f5095c72..9517d063c79c604d99d21967981f07b92cb1c70c 100644 (file)
@@ -468,10 +468,14 @@ static inline void iounmap(volatile void __iomem *addr)
 
 #define ioread8(X)                     readb(X)
 #define ioread16(X)                    readw(X)
+#define ioread16be(X)                  __raw_readw(X)
 #define ioread32(X)                    readl(X)
+#define ioread32be(X)                  __raw_readl(X)
 #define iowrite8(val,X)                        writeb(val,X)
 #define iowrite16(val,X)               writew(val,X)
+#define iowrite16be(val,X)             __raw_writew(val,X)
 #define iowrite32(val,X)               writel(val,X)
+#define iowrite32be(val,X)             __raw_writel(val,X)
 
 /* Create a virtual mapping cookie for an IO port range */
 extern void __iomem *ioport_map(unsigned long port, unsigned int nr);