diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-02-15 13:36:30 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-02-15 13:36:30 -0500 |
| commit | 52833e897fd8c6f62b3e5e27291fa9bc803f7460 (patch) | |
| tree | cfe90047ee6c7402674a29ec7258319142b96ff1 /arch/sh/kernel/io_generic.c | |
| parent | 8d042218b075de3cdbe066198515b3521553746e (diff) | |
| parent | 4ee29f6a52158cea526b16a44ae38643946103ec (diff) | |
Merge branch 'linus_origin' into hotfixes
Diffstat (limited to 'arch/sh/kernel/io_generic.c')
| -rw-r--r-- | arch/sh/kernel/io_generic.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/sh/kernel/io_generic.c b/arch/sh/kernel/io_generic.c index 771ea4230441..db769449f5a7 100644 --- a/arch/sh/kernel/io_generic.c +++ b/arch/sh/kernel/io_generic.c | |||
| @@ -33,17 +33,17 @@ static inline void delay(void) | |||
| 33 | 33 | ||
| 34 | u8 generic_inb(unsigned long port) | 34 | u8 generic_inb(unsigned long port) |
| 35 | { | 35 | { |
| 36 | return ctrl_inb((unsigned long __force)ioport_map(port, 1)); | 36 | return ctrl_inb((unsigned long __force)__ioport_map(port, 1)); |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | u16 generic_inw(unsigned long port) | 39 | u16 generic_inw(unsigned long port) |
| 40 | { | 40 | { |
| 41 | return ctrl_inw((unsigned long __force)ioport_map(port, 2)); | 41 | return ctrl_inw((unsigned long __force)__ioport_map(port, 2)); |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | u32 generic_inl(unsigned long port) | 44 | u32 generic_inl(unsigned long port) |
| 45 | { | 45 | { |
| 46 | return ctrl_inl((unsigned long __force)ioport_map(port, 4)); | 46 | return ctrl_inl((unsigned long __force)__ioport_map(port, 4)); |
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | u8 generic_inb_p(unsigned long port) | 49 | u8 generic_inb_p(unsigned long port) |
| @@ -81,7 +81,7 @@ void generic_insb(unsigned long port, void *dst, unsigned long count) | |||
| 81 | volatile u8 *port_addr; | 81 | volatile u8 *port_addr; |
| 82 | u8 *buf = dst; | 82 | u8 *buf = dst; |
| 83 | 83 | ||
| 84 | port_addr = (volatile u8 *)ioport_map(port, 1); | 84 | port_addr = (volatile u8 *)__ioport_map(port, 1); |
| 85 | while (count--) | 85 | while (count--) |
| 86 | *buf++ = *port_addr; | 86 | *buf++ = *port_addr; |
| 87 | } | 87 | } |
| @@ -91,7 +91,7 @@ void generic_insw(unsigned long port, void *dst, unsigned long count) | |||
| 91 | volatile u16 *port_addr; | 91 | volatile u16 *port_addr; |
| 92 | u16 *buf = dst; | 92 | u16 *buf = dst; |
| 93 | 93 | ||
| 94 | port_addr = (volatile u16 *)ioport_map(port, 2); | 94 | port_addr = (volatile u16 *)__ioport_map(port, 2); |
| 95 | while (count--) | 95 | while (count--) |
| 96 | *buf++ = *port_addr; | 96 | *buf++ = *port_addr; |
| 97 | 97 | ||
| @@ -103,7 +103,7 @@ void generic_insl(unsigned long port, void *dst, unsigned long count) | |||
| 103 | volatile u32 *port_addr; | 103 | volatile u32 *port_addr; |
| 104 | u32 *buf = dst; | 104 | u32 *buf = dst; |
| 105 | 105 | ||
| 106 | port_addr = (volatile u32 *)ioport_map(port, 4); | 106 | port_addr = (volatile u32 *)__ioport_map(port, 4); |
| 107 | while (count--) | 107 | while (count--) |
| 108 | *buf++ = *port_addr; | 108 | *buf++ = *port_addr; |
| 109 | 109 | ||
| @@ -112,17 +112,17 @@ void generic_insl(unsigned long port, void *dst, unsigned long count) | |||
| 112 | 112 | ||
| 113 | void generic_outb(u8 b, unsigned long port) | 113 | void generic_outb(u8 b, unsigned long port) |
| 114 | { | 114 | { |
| 115 | ctrl_outb(b, (unsigned long __force)ioport_map(port, 1)); | 115 | ctrl_outb(b, (unsigned long __force)__ioport_map(port, 1)); |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | void generic_outw(u16 b, unsigned long port) | 118 | void generic_outw(u16 b, unsigned long port) |
| 119 | { | 119 | { |
| 120 | ctrl_outw(b, (unsigned long __force)ioport_map(port, 2)); | 120 | ctrl_outw(b, (unsigned long __force)__ioport_map(port, 2)); |
| 121 | } | 121 | } |
| 122 | 122 | ||
| 123 | void generic_outl(u32 b, unsigned long port) | 123 | void generic_outl(u32 b, unsigned long port) |
| 124 | { | 124 | { |
| 125 | ctrl_outl(b, (unsigned long __force)ioport_map(port, 4)); | 125 | ctrl_outl(b, (unsigned long __force)__ioport_map(port, 4)); |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | void generic_outb_p(u8 b, unsigned long port) | 128 | void generic_outb_p(u8 b, unsigned long port) |
| @@ -153,7 +153,7 @@ void generic_outsb(unsigned long port, const void *src, unsigned long count) | |||
| 153 | volatile u8 *port_addr; | 153 | volatile u8 *port_addr; |
| 154 | const u8 *buf = src; | 154 | const u8 *buf = src; |
| 155 | 155 | ||
| 156 | port_addr = (volatile u8 __force *)ioport_map(port, 1); | 156 | port_addr = (volatile u8 __force *)__ioport_map(port, 1); |
| 157 | 157 | ||
| 158 | while (count--) | 158 | while (count--) |
| 159 | *port_addr = *buf++; | 159 | *port_addr = *buf++; |
| @@ -164,7 +164,7 @@ void generic_outsw(unsigned long port, const void *src, unsigned long count) | |||
| 164 | volatile u16 *port_addr; | 164 | volatile u16 *port_addr; |
| 165 | const u16 *buf = src; | 165 | const u16 *buf = src; |
| 166 | 166 | ||
| 167 | port_addr = (volatile u16 __force *)ioport_map(port, 2); | 167 | port_addr = (volatile u16 __force *)__ioport_map(port, 2); |
| 168 | 168 | ||
| 169 | while (count--) | 169 | while (count--) |
| 170 | *port_addr = *buf++; | 170 | *port_addr = *buf++; |
| @@ -177,7 +177,7 @@ void generic_outsl(unsigned long port, const void *src, unsigned long count) | |||
| 177 | volatile u32 *port_addr; | 177 | volatile u32 *port_addr; |
| 178 | const u32 *buf = src; | 178 | const u32 *buf = src; |
| 179 | 179 | ||
| 180 | port_addr = (volatile u32 __force *)ioport_map(port, 4); | 180 | port_addr = (volatile u32 __force *)__ioport_map(port, 4); |
| 181 | while (count--) | 181 | while (count--) |
| 182 | *port_addr = *buf++; | 182 | *port_addr = *buf++; |
| 183 | 183 | ||
