]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - drivers/net/ethernet/8390/8390.c
net: remove use of ndo_set_multicast_list in drivers
[mirror_ubuntu-artful-kernel.git] / drivers / net / ethernet / 8390 / 8390.c
CommitLineData
6c3561b0 1/* 8390 core for usual drivers */
1da177e4
LT
2
3static const char version[] =
4 "8390.c:v1.10cvs 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)\n";
5
6c3561b0 6#include "lib8390.c"
6aa20a22 7
1da177e4
LT
8int ei_open(struct net_device *dev)
9{
6c3561b0 10 return __ei_open(dev);
1da177e4 11}
11795aa4 12EXPORT_SYMBOL(ei_open);
1da177e4 13
1da177e4
LT
14int ei_close(struct net_device *dev)
15{
6c3561b0 16 return __ei_close(dev);
1da177e4 17}
11795aa4 18EXPORT_SYMBOL(ei_close);
6aa20a22 19
61357325 20netdev_tx_t ei_start_xmit(struct sk_buff *skb, struct net_device *dev)
8884c092
SH
21{
22 return __ei_start_xmit(skb, dev);
23}
24EXPORT_SYMBOL(ei_start_xmit);
25
26struct net_device_stats *ei_get_stats(struct net_device *dev)
27{
28 return __ei_get_stats(dev);
29}
30EXPORT_SYMBOL(ei_get_stats);
31
32void ei_set_multicast_list(struct net_device *dev)
33{
34 __ei_set_multicast_list(dev);
35}
36EXPORT_SYMBOL(ei_set_multicast_list);
37
38void ei_tx_timeout(struct net_device *dev)
39{
40 __ei_tx_timeout(dev);
41}
42EXPORT_SYMBOL(ei_tx_timeout);
43
7d12e780 44irqreturn_t ei_interrupt(int irq, void *dev_id)
1da177e4 45{
6c3561b0 46 return __ei_interrupt(irq, dev_id);
1da177e4 47}
11795aa4 48EXPORT_SYMBOL(ei_interrupt);
1da177e4
LT
49
50#ifdef CONFIG_NET_POLL_CONTROLLER
51void ei_poll(struct net_device *dev)
52{
6c3561b0 53 __ei_poll(dev);
1da177e4 54}
11795aa4 55EXPORT_SYMBOL(ei_poll);
1da177e4
LT
56#endif
57
8884c092
SH
58const struct net_device_ops ei_netdev_ops = {
59 .ndo_open = ei_open,
60 .ndo_stop = ei_close,
61 .ndo_start_xmit = ei_start_xmit,
62 .ndo_tx_timeout = ei_tx_timeout,
63 .ndo_get_stats = ei_get_stats,
afc4b13d 64 .ndo_set_rx_mode = ei_set_multicast_list,
8884c092 65 .ndo_validate_addr = eth_validate_addr,
fe96aaa1 66 .ndo_set_mac_address = eth_mac_addr,
8884c092
SH
67 .ndo_change_mtu = eth_change_mtu,
68#ifdef CONFIG_NET_POLL_CONTROLLER
69 .ndo_poll_controller = ei_poll,
70#endif
71};
72EXPORT_SYMBOL(ei_netdev_ops);
73
1da177e4
LT
74struct net_device *__alloc_ei_netdev(int size)
75{
9a4a8429 76 struct net_device *dev = ____alloc_ei_netdev(size);
eb9bdaee
AB
77 if (dev)
78 dev->netdev_ops = &ei_netdev_ops;
9a4a8429 79 return dev;
1da177e4 80}
11795aa4 81EXPORT_SYMBOL(__alloc_ei_netdev);
1da177e4 82
1da177e4
LT
83void NS8390_init(struct net_device *dev, int startp)
84{
ab59859d 85 __NS8390_init(dev, startp);
1da177e4 86}
1da177e4 87EXPORT_SYMBOL(NS8390_init);
1da177e4
LT
88
89#if defined(MODULE)
90
08dc732b 91static int __init ns8390_module_init(void)
1da177e4
LT
92{
93 return 0;
94}
95
08dc732b 96static void __exit ns8390_module_exit(void)
1da177e4
LT
97{
98}
99
d5706ef3 100module_init(ns8390_module_init);
08dc732b 101module_exit(ns8390_module_exit);
1da177e4
LT
102#endif /* MODULE */
103MODULE_LICENSE("GPL");