3 * Module name: 8390_redwood.h
6 * special hacks for 8390 STNIC on IBM Redwood board
10 #ifndef __8390_REDWOOD_H__
11 #define __8390_REDWOOD_H__
14 FTR made these routines, ostensibly to 'slow down' access the 8390
15 chip. I found it worked fine without them. I'm not sure they are
24 #define FTR_DELAY_HACK
27 static inline unsigned char inb_p(long address)
29 readb((void *)(address & 0xffffff00) + 0x40);
30 return readb(address);
33 static inline void outb_p(unsigned char value, long address)
35 readb((void *)(address & 0xffffff00) + 0x40);
36 writeb(value, address);
39 static inline unsigned char inb(long address)
41 readb((void *)(address & 0xffffff00) + 0x40);
42 return readb(address);
45 static inline void outb(unsigned char value, long address)
47 readb((void *)(address & 0xffffff00) + 0x40);
48 writeb(value, address);
51 #else /* !FTR_DELAY_HACK */
58 #endif /* FTR_DELAY_HACK */
61 #endif /* __8390_REDWOOD_H__ */