diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2006-09-19 08:17:49 -0400 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2006-09-20 00:06:18 -0400 |
commit | 5adcaf50cf697aa4d0c731107003c1383b59b214 (patch) | |
tree | c4f93c02f43c325066a46e9d9221cac9d51125d8 /include/asm-powerpc/io.h | |
parent | 73ea9e1bcb8eea4f3b2052fe7ccd7ee4b5a271a0 (diff) |
[POWERPC] convert string i/o operations to C
This produces essentially the same code and will make the iSeries i/o
consolidation easier.
The count parameter is changed to long since that will produce the same
(better) code on 32 and 64 bit builds.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'include/asm-powerpc/io.h')
-rw-r--r-- | include/asm-powerpc/io.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/asm-powerpc/io.h b/include/asm-powerpc/io.h index 51a598747367..57e7d14d6563 100644 --- a/include/asm-powerpc/io.h +++ b/include/asm-powerpc/io.h | |||
@@ -143,12 +143,12 @@ static inline void __raw_writeq(unsigned long v, volatile void __iomem *addr) | |||
143 | #define readl_relaxed(addr) readl(addr) | 143 | #define readl_relaxed(addr) readl(addr) |
144 | #define readq_relaxed(addr) readq(addr) | 144 | #define readq_relaxed(addr) readq(addr) |
145 | 145 | ||
146 | extern void _insb(volatile u8 __iomem *port, void *buf, int ns); | 146 | extern void _insb(volatile u8 __iomem *port, void *buf, long count); |
147 | extern void _outsb(volatile u8 __iomem *port, const void *buf, int ns); | 147 | extern void _outsb(volatile u8 __iomem *port, const void *buf, long count); |
148 | extern void _insw_ns(volatile u16 __iomem *port, void *buf, int ns); | 148 | extern void _insw_ns(volatile u16 __iomem *port, void *buf, long count); |
149 | extern void _outsw_ns(volatile u16 __iomem *port, const void *buf, int ns); | 149 | extern void _outsw_ns(volatile u16 __iomem *port, const void *buf, long count); |
150 | extern void _insl_ns(volatile u32 __iomem *port, void *buf, int nl); | 150 | extern void _insl_ns(volatile u32 __iomem *port, void *buf, long count); |
151 | extern void _outsl_ns(volatile u32 __iomem *port, const void *buf, int nl); | 151 | extern void _outsl_ns(volatile u32 __iomem *port, const void *buf, long count); |
152 | 152 | ||
153 | static inline void mmiowb(void) | 153 | static inline void mmiowb(void) |
154 | { | 154 | { |