diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-10-01 03:13:28 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-10-01 03:13:28 -0400 |
commit | 1ef7cbbe2157274a7003e78ef60b7ad885a970b8 (patch) | |
tree | 185f7f05947938ffb8939916e15ea64343e83bb7 /include/asm-sh64 | |
parent | a64314e62d89562b6fc77593648bec3acc35bf61 (diff) |
sh64: Move *_p() I/O routine variants to io.h.
These were implemented using an ugly macro for just simple wrapping,
so we just make the wrapping explicit and move it to io.h instead.
Also fixes up some modules:
CC [M] drivers/net/8390.o
In file included from drivers/net/8390.c:6:
drivers/net/lib8390.c: In function 'ei_start_xmit':
drivers/net/lib8390.c:329: error: implicit declaration of function 'outb_p'
drivers/net/lib8390.c: In function '__ei_interrupt':
drivers/net/lib8390.c:457: error: implicit declaration of function 'inb_p'
make[2]: *** [drivers/net/8390.o] Error 1
make[1]: *** [drivers/net] Error 2
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh64')
-rw-r--r-- | include/asm-sh64/io.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-sh64/io.h b/include/asm-sh64/io.h index 1f37b6931922..3de3ad99f457 100644 --- a/include/asm-sh64/io.h +++ b/include/asm-sh64/io.h | |||
@@ -119,6 +119,13 @@ void insw(unsigned long port, void *addr, unsigned long count); | |||
119 | void outsl(unsigned long port, const void *addr, unsigned long count); | 119 | void outsl(unsigned long port, const void *addr, unsigned long count); |
120 | void insl(unsigned long port, void *addr, unsigned long count); | 120 | void insl(unsigned long port, void *addr, unsigned long count); |
121 | 121 | ||
122 | #define inb_p(addr) inb(addr) | ||
123 | #define inw_p(addr) inw(addr) | ||
124 | #define inl_p(addr) inl(addr) | ||
125 | #define outb_p(x,addr) outb(x,addr) | ||
126 | #define outw_p(x,addr) outw(x,addr) | ||
127 | #define outl_p(x,addr) outl(x,addr) | ||
128 | |||
122 | #define __raw_readb readb | 129 | #define __raw_readb readb |
123 | #define __raw_readw readw | 130 | #define __raw_readw readw |
124 | #define __raw_readl readl | 131 | #define __raw_readl readl |