HID: hidraw -- fix missing unlocks in unlocked_ioctl
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / net / 8390.c
blobec3e22e6306fd115ab2153b7faef2ec0b985a746
1 /* 8390 core for usual drivers */
3 static const char version[] =
4 "8390.c:v1.10cvs 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)\n";
6 #include "lib8390.c"
8 int ei_open(struct net_device *dev)
10 return __ei_open(dev);
12 EXPORT_SYMBOL(ei_open);
14 int ei_close(struct net_device *dev)
16 return __ei_close(dev);
18 EXPORT_SYMBOL(ei_close);
20 int ei_start_xmit(struct sk_buff *skb, struct net_device *dev)
22 return __ei_start_xmit(skb, dev);
24 EXPORT_SYMBOL(ei_start_xmit);
26 struct net_device_stats *ei_get_stats(struct net_device *dev)
28 return __ei_get_stats(dev);
30 EXPORT_SYMBOL(ei_get_stats);
32 void ei_set_multicast_list(struct net_device *dev)
34 __ei_set_multicast_list(dev);
36 EXPORT_SYMBOL(ei_set_multicast_list);
38 void ei_tx_timeout(struct net_device *dev)
40 __ei_tx_timeout(dev);
42 EXPORT_SYMBOL(ei_tx_timeout);
44 irqreturn_t ei_interrupt(int irq, void *dev_id)
46 return __ei_interrupt(irq, dev_id);
48 EXPORT_SYMBOL(ei_interrupt);
50 #ifdef CONFIG_NET_POLL_CONTROLLER
51 void ei_poll(struct net_device *dev)
53 __ei_poll(dev);
55 EXPORT_SYMBOL(ei_poll);
56 #endif
58 const 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,
64 .ndo_set_multicast_list = ei_set_multicast_list,
65 .ndo_validate_addr = eth_validate_addr,
66 .ndo_set_mac_address = eth_mac_addr,
67 .ndo_change_mtu = eth_change_mtu,
68 #ifdef CONFIG_NET_POLL_CONTROLLER
69 .ndo_poll_controller = ei_poll,
70 #endif
72 EXPORT_SYMBOL(ei_netdev_ops);
74 struct net_device *__alloc_ei_netdev(int size)
76 struct net_device *dev = ____alloc_ei_netdev(size);
77 #ifdef CONFIG_COMPAT_NET_DEV_OPS
78 if (dev) {
79 dev->hard_start_xmit = ei_start_xmit;
80 dev->get_stats = ei_get_stats;
81 dev->set_multicast_list = ei_set_multicast_list;
82 dev->tx_timeout = ei_tx_timeout;
84 #endif
85 return dev;
87 EXPORT_SYMBOL(__alloc_ei_netdev);
89 void NS8390_init(struct net_device *dev, int startp)
91 __NS8390_init(dev, startp);
93 EXPORT_SYMBOL(NS8390_init);
95 #if defined(MODULE)
97 static int __init ns8390_module_init(void)
99 return 0;
102 static void __exit ns8390_module_exit(void)
106 module_init(ns8390_module_init);
107 module_exit(ns8390_module_exit);
108 #endif /* MODULE */
109 MODULE_LICENSE("GPL");