[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1411439507-30391-45-git-send-email-lizf@kernel.org>
Date: Tue, 23 Sep 2014 10:31:47 +0800
From: Zefan Li <lizf@...nel.org>
To: stable@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, Michael Cree <mcree@...on.net.nz>,
Matt Turner <mattst88@...il.com>,
Guenter Roeck <linux@...ck-us.net>,
Zefan Li <lizefan@...wei.com>
Subject: [PATCH 3.4 45/45] alpha: add io{read,write}{16,32}be functions
From: Michael Cree <mcree@...on.net.nz>
3.4.104-rc1 review patch. If anyone has any objections, please let me know.
------------------
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@...too.org>
Signed-off-by: Michael Cree <mcree@...on.net.nz>
Signed-off-by: Matt Turner <mattst88@...il.com>
Cc: Guenter Roeck <linux@...ck-us.net>
Signed-off-by: Zefan Li <lizefan@...wei.com>
---
arch/alpha/include/asm/io.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/alpha/include/asm/io.h b/arch/alpha/include/asm/io.h
index 7a3d38d..5ebab58 100644
--- a/arch/alpha/include/asm/io.h
+++ b/arch/alpha/include/asm/io.h
@@ -489,6 +489,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
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists