1 // SPDX-License-Identifier: GPL-2.0-only
2 /* 8390 core for usual drivers */
4 static const char version
[] =
5 "8390.c:v1.10cvs 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)\n";
9 int ei_open(struct net_device
*dev
)
11 return __ei_open(dev
);
13 EXPORT_SYMBOL(ei_open
);
15 int ei_close(struct net_device
*dev
)
17 return __ei_close(dev
);
19 EXPORT_SYMBOL(ei_close
);
21 netdev_tx_t
ei_start_xmit(struct sk_buff
*skb
, struct net_device
*dev
)
23 return __ei_start_xmit(skb
, dev
);
25 EXPORT_SYMBOL(ei_start_xmit
);
27 struct net_device_stats
*ei_get_stats(struct net_device
*dev
)
29 return __ei_get_stats(dev
);
31 EXPORT_SYMBOL(ei_get_stats
);
33 void ei_set_multicast_list(struct net_device
*dev
)
35 __ei_set_multicast_list(dev
);
37 EXPORT_SYMBOL(ei_set_multicast_list
);
39 void ei_tx_timeout(struct net_device
*dev
, unsigned int txqueue
)
41 __ei_tx_timeout(dev
, txqueue
);
43 EXPORT_SYMBOL(ei_tx_timeout
);
45 irqreturn_t
ei_interrupt(int irq
, void *dev_id
)
47 return __ei_interrupt(irq
, dev_id
);
49 EXPORT_SYMBOL(ei_interrupt
);
51 #ifdef CONFIG_NET_POLL_CONTROLLER
52 void ei_poll(struct net_device
*dev
)
56 EXPORT_SYMBOL(ei_poll
);
59 const struct net_device_ops ei_netdev_ops
= {
62 .ndo_start_xmit
= ei_start_xmit
,
63 .ndo_tx_timeout
= ei_tx_timeout
,
64 .ndo_get_stats
= ei_get_stats
,
65 .ndo_set_rx_mode
= ei_set_multicast_list
,
66 .ndo_validate_addr
= eth_validate_addr
,
67 .ndo_set_mac_address
= eth_mac_addr
,
68 #ifdef CONFIG_NET_POLL_CONTROLLER
69 .ndo_poll_controller
= ei_poll
,
72 EXPORT_SYMBOL(ei_netdev_ops
);
74 struct net_device
*__alloc_ei_netdev(int size
)
76 struct net_device
*dev
= ____alloc_ei_netdev(size
);
78 dev
->netdev_ops
= &ei_netdev_ops
;
81 EXPORT_SYMBOL(__alloc_ei_netdev
);
83 void NS8390_init(struct net_device
*dev
, int startp
)
85 __NS8390_init(dev
, startp
);
87 EXPORT_SYMBOL(NS8390_init
);
91 static int __init
ns8390_module_init(void)
96 static void __exit
ns8390_module_exit(void)
100 module_init(ns8390_module_init
);
101 module_exit(ns8390_module_exit
);
103 MODULE_LICENSE("GPL");