diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-10-03 16:25:52 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-10-03 16:25:52 -0400 |
commit | 14866543ad22014a0b12e10657a917eb6b487248 (patch) | |
tree | 178f36abc7615347626ec28ee2bd0efffe5500ac /arch/sh/kernel/io.c | |
parent | bc0f424faa11a2017ba725bb8c5fc481ece7b440 (diff) |
sh: More I/O routine overhauling.
This tidies up a lot of the PIO/MMIO split. No in-tree platforms were
making use of the MMIO overloading through the machvec (nor have any of
them been in some time), so we just kill all of that off. The ISA I/O
routine wrapping remains unaffected, which remains the only special
casing outside of the iomap API that boards need to think about.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/io.c')
-rw-r--r-- | arch/sh/kernel/io.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/sh/kernel/io.c b/arch/sh/kernel/io.c index 2b8991229900..29cf4588fc05 100644 --- a/arch/sh/kernel/io.c +++ b/arch/sh/kernel/io.c | |||
@@ -19,12 +19,12 @@ | |||
19 | * Copy data from IO memory space to "real" memory space. | 19 | * Copy data from IO memory space to "real" memory space. |
20 | * This needs to be optimized. | 20 | * This needs to be optimized. |
21 | */ | 21 | */ |
22 | void memcpy_fromio(void *to, volatile void __iomem *from, unsigned long count) | 22 | void memcpy_fromio(void *to, const volatile void __iomem *from, unsigned long count) |
23 | { | 23 | { |
24 | char *p = to; | 24 | unsigned char *p = to; |
25 | while (count) { | 25 | while (count) { |
26 | count--; | 26 | count--; |
27 | *p = readb((void __iomem *)from); | 27 | *p = readb(from); |
28 | p++; | 28 | p++; |
29 | from++; | 29 | from++; |
30 | } | 30 | } |
@@ -37,10 +37,10 @@ EXPORT_SYMBOL(memcpy_fromio); | |||
37 | */ | 37 | */ |
38 | void memcpy_toio(volatile void __iomem *to, const void *from, unsigned long count) | 38 | void memcpy_toio(volatile void __iomem *to, const void *from, unsigned long count) |
39 | { | 39 | { |
40 | const char *p = from; | 40 | const unsigned char *p = from; |
41 | while (count) { | 41 | while (count) { |
42 | count--; | 42 | count--; |
43 | writeb(*p, (void __iomem *)to); | 43 | writeb(*p, to); |
44 | p++; | 44 | p++; |
45 | to++; | 45 | to++; |
46 | } | 46 | } |
@@ -55,7 +55,7 @@ void memset_io(volatile void __iomem *dst, int c, unsigned long count) | |||
55 | { | 55 | { |
56 | while (count) { | 56 | while (count) { |
57 | count--; | 57 | count--; |
58 | writeb(c, (void __iomem *)dst); | 58 | writeb(c, dst); |
59 | dst++; | 59 | dst++; |
60 | } | 60 | } |
61 | } | 61 | } |