| .. | .. |
|---|
| 53 | 53 | #define outw_p(x, addr) outw((x), (addr)) |
|---|
| 54 | 54 | #define outl_p(x, addr) outl((x), (addr)) |
|---|
| 55 | 55 | |
|---|
| 56 | | -#define insb(a, b, c) BUG() |
|---|
| 57 | | -#define insw(a, b, c) BUG() |
|---|
| 58 | | -#define insl(a, b, c) BUG() |
|---|
| 56 | +static inline void insb(unsigned long port, void *dst, unsigned long count) |
|---|
| 57 | +{ |
|---|
| 58 | + BUG(); |
|---|
| 59 | +} |
|---|
| 59 | 60 | |
|---|
| 60 | | -#define outsb(a, b, c) BUG() |
|---|
| 61 | | -#define outsw(a, b, c) BUG() |
|---|
| 62 | | -#define outsl(a, b, c) BUG() |
|---|
| 61 | +static inline void insw(unsigned long port, void *dst, unsigned long count) |
|---|
| 62 | +{ |
|---|
| 63 | + BUG(); |
|---|
| 64 | +} |
|---|
| 65 | + |
|---|
| 66 | +static inline void insl(unsigned long port, void *dst, unsigned long count) |
|---|
| 67 | +{ |
|---|
| 68 | + BUG(); |
|---|
| 69 | +} |
|---|
| 70 | + |
|---|
| 71 | +static inline void outsb(unsigned long port, const void *src, unsigned long count) |
|---|
| 72 | +{ |
|---|
| 73 | + BUG(); |
|---|
| 74 | +} |
|---|
| 75 | + |
|---|
| 76 | +static inline void outsw(unsigned long port, const void *src, unsigned long count) |
|---|
| 77 | +{ |
|---|
| 78 | + BUG(); |
|---|
| 79 | +} |
|---|
| 80 | + |
|---|
| 81 | +static inline void outsl(unsigned long port, const void *src, unsigned long count) |
|---|
| 82 | +{ |
|---|
| 83 | + BUG(); |
|---|
| 84 | +} |
|---|
| 63 | 85 | |
|---|
| 64 | 86 | #endif /* __ASM_SH_IO_NOIOPORT_H */ |
|---|