[PATCH 2/9] ARM: ebsa110: Properly override I/O accessors
Thierry Reding
thierry.reding at gmail.com
Mon Oct 6 06:52:34 PDT 2014
From: Thierry Reding <treding at nvidia.com>
In order to override accessors properly they must be #define'd so that
subsequent generic headers (the one for ARM and finally the architecture
independent one) can properly detect it.
Signed-off-by: Thierry Reding <treding at nvidia.com>
---
arch/arm/mach-ebsa110/include/mach/io.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/mach-ebsa110/include/mach/io.h b/arch/arm/mach-ebsa110/include/mach/io.h
index 11bb0799424b..c15c1a89cb13 100644
--- a/arch/arm/mach-ebsa110/include/mach/io.h
+++ b/arch/arm/mach-ebsa110/include/mach/io.h
@@ -62,20 +62,31 @@ void __writel(u32 val, void __iomem *addr);
#define writew(v,b) __writew(v,b)
#define writel(v,b) __writel(v,b)
+#define insb insb
extern void insb(unsigned int port, void *buf, int sz);
+#define insw insw
extern void insw(unsigned int port, void *buf, int sz);
+#define insl insl
extern void insl(unsigned int port, void *buf, int sz);
+#define outsb outsb
extern void outsb(unsigned int port, const void *buf, int sz);
+#define outsw outsw
extern void outsw(unsigned int port, const void *buf, int sz);
+#define outsl outsl
extern void outsl(unsigned int port, const void *buf, int sz);
/* can't support writesb atm */
+#define writesw writesw
extern void writesw(void __iomem *addr, const void *data, int wordlen);
+#define writesl writesl
extern void writesl(void __iomem *addr, const void *data, int longlen);
/* can't support readsb atm */
+#define readsw readsw
extern void readsw(const void __iomem *addr, void *data, int wordlen);
+
+#define readsl readsl
extern void readsl(const void __iomem *addr, void *data, int longlen);
#endif
--
2.1.0
More information about the linux-arm-kernel
mailing list