Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
8390p.c
Go to the documentation of this file.
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 ([email protected])\n";
5 
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)
10 
11 #include "lib8390.c"
12 
13 int eip_open(struct net_device *dev)
14 {
15  return __ei_open(dev);
16 }
18 
19 int eip_close(struct net_device *dev)
20 {
21  return __ei_close(dev);
22 }
24 
26 {
27  return __ei_start_xmit(skb, dev);
28 }
30 
32 {
33  return __ei_get_stats(dev);
34 }
36 
38 {
40 }
42 
44 {
45  __ei_tx_timeout(dev);
46 }
48 
50 {
51  return __ei_interrupt(irq, dev_id);
52 }
54 
55 #ifdef CONFIG_NET_POLL_CONTROLLER
56 void eip_poll(struct net_device *dev)
57 {
58  __ei_poll(dev);
59 }
60 EXPORT_SYMBOL(eip_poll);
61 #endif
62 
64  .ndo_open = eip_open,
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_rx_mode = 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,
75 #endif
76 };
77 EXPORT_SYMBOL(eip_netdev_ops);
78 
80 {
81  struct net_device *dev = ____alloc_ei_netdev(size);
82  if (dev)
83  dev->netdev_ops = &eip_netdev_ops;
84  return dev;
85 }
87 
88 void NS8390p_init(struct net_device *dev, int startp)
89 {
90  __NS8390_init(dev, startp);
91 }
93 
94 static int __init NS8390p_init_module(void)
95 {
96  return 0;
97 }
98 
99 static void __exit NS8390p_cleanup_module(void)
100 {
101 }
102 
103 module_init(NS8390p_init_module);
104 module_exit(NS8390p_cleanup_module);
105 MODULE_LICENSE("GPL");