diff options
Diffstat (limited to 'drivers/net/8390.h')
-rw-r--r-- | drivers/net/8390.h | 37 |
1 files changed, 8 insertions, 29 deletions
diff --git a/drivers/net/8390.h b/drivers/net/8390.h index f44f1220b3a5..414de5bd228f 100644 --- a/drivers/net/8390.h +++ b/drivers/net/8390.h | |||
@@ -107,35 +107,14 @@ struct ei_device { | |||
107 | * - removed AMIGA_PCMCIA from this list, handled as ISA io now | 107 | * - removed AMIGA_PCMCIA from this list, handled as ISA io now |
108 | */ | 108 | */ |
109 | 109 | ||
110 | #if defined(CONFIG_MAC) || \ | 110 | #ifndef ei_inb |
111 | defined(CONFIG_ZORRO8390) || defined(CONFIG_ZORRO8390_MODULE) || \ | 111 | #define ei_inb(_p) inb(_p) |
112 | defined(CONFIG_HYDRA) || defined(CONFIG_HYDRA_MODULE) | 112 | #define ei_outb(_v,_p) outb(_v,_p) |
113 | #define EI_SHIFT(x) (ei_local->reg_offset[x]) | 113 | #define ei_inb_p(_p) inb_p(_p) |
114 | #undef inb | 114 | #define ei_outb_p(_v,_p) outb_p(_v,_p) |
115 | #undef inb_p | 115 | #endif |
116 | #undef outb | 116 | |
117 | #undef outb_p | 117 | #ifndef EI_SHIFT |
118 | |||
119 | #define inb(port) in_8(port) | ||
120 | #define outb(val,port) out_8(port,val) | ||
121 | #define inb_p(port) in_8(port) | ||
122 | #define outb_p(val,port) out_8(port,val) | ||
123 | |||
124 | #elif defined(CONFIG_ARM_ETHERH) || defined(CONFIG_ARM_ETHERH_MODULE) | ||
125 | #define EI_SHIFT(x) (ei_local->reg_offset[x]) | ||
126 | #undef inb | ||
127 | #undef inb_p | ||
128 | #undef outb | ||
129 | #undef outb_p | ||
130 | |||
131 | #define inb(_p) readb(_p) | ||
132 | #define outb(_v,_p) writeb(_v,_p) | ||
133 | #define inb_p(_p) inb(_p) | ||
134 | #define outb_p(_v,_p) outb(_v,_p) | ||
135 | |||
136 | #elif defined(CONFIG_NE_H8300) || defined(CONFIG_NE_H8300_MODULE) | ||
137 | #define EI_SHIFT(x) (ei_local->reg_offset[x]) | ||
138 | #else | ||
139 | #define EI_SHIFT(x) (x) | 118 | #define EI_SHIFT(x) (x) |
140 | #endif | 119 | #endif |
141 | 120 | ||