1 /* 8390 core for ISA devices needing bus delays */
3 static const char version[] =
4 "8390p.c:v1.10cvs 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)\n";
6 #define ei_inb(_p) inb(_p)
7 #define ei_outb(_v, _p) outb(_v, _p)
8 #define ei_inb_p(_p) inb_p(_p)
9 #define ei_outb_p(_v, _p) outb_p(_v, _p)
13 int eip_open(struct net_device *dev)
15 return __ei_open(dev);
17 EXPORT_SYMBOL(eip_open);
19 int eip_close(struct net_device *dev)
21 return __ei_close(dev);
23 EXPORT_SYMBOL(eip_close);
25 int eip_start_xmit(struct sk_buff *skb, struct net_device *dev)
27 return __ei_start_xmit(skb, dev);
29 EXPORT_SYMBOL(eip_start_xmit);
31 struct net_device_stats *eip_get_stats(struct net_device *dev)
33 return __ei_get_stats(dev);
35 EXPORT_SYMBOL(eip_get_stats);
37 void eip_set_multicast_list(struct net_device *dev)
39 __ei_set_multicast_list(dev);
41 EXPORT_SYMBOL(eip_set_multicast_list);
43 void eip_tx_timeout(struct net_device *dev)
47 EXPORT_SYMBOL(eip_tx_timeout);
49 irqreturn_t eip_interrupt(int irq, void *dev_id)
51 return __ei_interrupt(irq, dev_id);
53 EXPORT_SYMBOL(eip_interrupt);
55 #ifdef CONFIG_NET_POLL_CONTROLLER
56 void eip_poll(struct net_device *dev)
60 EXPORT_SYMBOL(eip_poll);
63 const struct net_device_ops eip_netdev_ops = {
65 .ndo_stop = eip_close,
66 .ndo_start_xmit = eip_start_xmit,
67 .ndo_tx_timeout = eip_tx_timeout,
68 .ndo_get_stats = eip_get_stats,
69 .ndo_set_multicast_list = eip_set_multicast_list,
70 .ndo_validate_addr = eth_validate_addr,
71 .ndo_set_mac_address = eth_mac_addr,
72 .ndo_change_mtu = eth_change_mtu,
73 #ifdef CONFIG_NET_POLL_CONTROLLER
74 .ndo_poll_controller = eip_poll,
77 EXPORT_SYMBOL(eip_netdev_ops);
79 struct net_device *__alloc_eip_netdev(int size)
81 struct net_device *dev = ____alloc_ei_netdev(size);
82 #ifdef CONFIG_COMPAT_NET_DEV_OPS
84 dev->hard_start_xmit = eip_start_xmit;
85 dev->get_stats = eip_get_stats;
86 dev->set_multicast_list = eip_set_multicast_list;
87 dev->tx_timeout = eip_tx_timeout;
92 EXPORT_SYMBOL(__alloc_eip_netdev);
94 void NS8390p_init(struct net_device *dev, int startp)
96 __NS8390_init(dev, startp);
98 EXPORT_SYMBOL(NS8390p_init);
102 int init_module(void)
107 void cleanup_module(void)
112 MODULE_LICENSE("GPL");