Alan Cox | 055e511 | 2008-07-03 23:43:12 -0700 | [diff] [blame] | 1 | /* 8390 core for ISA devices needing bus delays */ |
| 2 | |
| 3 | static const char version[] = |
| 4 | "8390p.c:v1.10cvs 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)\n"; |
| 5 | |
| 6 | #define ei_inb(_p) inb(_p) |
Gustavo F. Padovan | caa1687 | 2008-08-02 15:55:12 -0300 | [diff] [blame^] | 7 | #define ei_outb(_v, _p) outb(_v, _p) |
Alan Cox | 055e511 | 2008-07-03 23:43:12 -0700 | [diff] [blame] | 8 | #define ei_inb_p(_p) inb_p(_p) |
Gustavo F. Padovan | caa1687 | 2008-08-02 15:55:12 -0300 | [diff] [blame^] | 9 | #define ei_outb_p(_v, _p) outb_p(_v, _p) |
Alan Cox | 055e511 | 2008-07-03 23:43:12 -0700 | [diff] [blame] | 10 | |
| 11 | #include "lib8390.c" |
| 12 | |
| 13 | int eip_open(struct net_device *dev) |
| 14 | { |
| 15 | return __ei_open(dev); |
| 16 | } |
Gustavo F. Padovan | caa1687 | 2008-08-02 15:55:12 -0300 | [diff] [blame^] | 17 | EXPORT_SYMBOL(eip_open); |
Alan Cox | 055e511 | 2008-07-03 23:43:12 -0700 | [diff] [blame] | 18 | |
| 19 | int eip_close(struct net_device *dev) |
| 20 | { |
| 21 | return __ei_close(dev); |
| 22 | } |
Gustavo F. Padovan | caa1687 | 2008-08-02 15:55:12 -0300 | [diff] [blame^] | 23 | EXPORT_SYMBOL(eip_close); |
Alan Cox | 055e511 | 2008-07-03 23:43:12 -0700 | [diff] [blame] | 24 | |
| 25 | irqreturn_t eip_interrupt(int irq, void *dev_id) |
| 26 | { |
| 27 | return __ei_interrupt(irq, dev_id); |
| 28 | } |
Gustavo F. Padovan | caa1687 | 2008-08-02 15:55:12 -0300 | [diff] [blame^] | 29 | EXPORT_SYMBOL(eip_interrupt); |
Alan Cox | 055e511 | 2008-07-03 23:43:12 -0700 | [diff] [blame] | 30 | |
| 31 | #ifdef CONFIG_NET_POLL_CONTROLLER |
| 32 | void eip_poll(struct net_device *dev) |
| 33 | { |
| 34 | __ei_poll(dev); |
| 35 | } |
Gustavo F. Padovan | caa1687 | 2008-08-02 15:55:12 -0300 | [diff] [blame^] | 36 | EXPORT_SYMBOL(eip_poll); |
Alan Cox | 055e511 | 2008-07-03 23:43:12 -0700 | [diff] [blame] | 37 | #endif |
| 38 | |
| 39 | struct net_device *__alloc_eip_netdev(int size) |
| 40 | { |
| 41 | return ____alloc_ei_netdev(size); |
| 42 | } |
Gustavo F. Padovan | caa1687 | 2008-08-02 15:55:12 -0300 | [diff] [blame^] | 43 | EXPORT_SYMBOL(__alloc_eip_netdev); |
Alan Cox | 055e511 | 2008-07-03 23:43:12 -0700 | [diff] [blame] | 44 | |
| 45 | void NS8390p_init(struct net_device *dev, int startp) |
| 46 | { |
Gustavo F. Padovan | 057b61a | 2008-08-02 15:55:11 -0300 | [diff] [blame] | 47 | __NS8390_init(dev, startp); |
Alan Cox | 055e511 | 2008-07-03 23:43:12 -0700 | [diff] [blame] | 48 | } |
Alan Cox | 055e511 | 2008-07-03 23:43:12 -0700 | [diff] [blame] | 49 | EXPORT_SYMBOL(NS8390p_init); |
Alan Cox | 055e511 | 2008-07-03 23:43:12 -0700 | [diff] [blame] | 50 | |
| 51 | #if defined(MODULE) |
| 52 | |
| 53 | int init_module(void) |
| 54 | { |
| 55 | return 0; |
| 56 | } |
| 57 | |
| 58 | void cleanup_module(void) |
| 59 | { |
| 60 | } |
| 61 | |
| 62 | #endif /* MODULE */ |
| 63 | MODULE_LICENSE("GPL"); |