linux/drivers/net/ethernet/8390/8390.c
<<
>>
Prefs
   1/* 8390 core for usual drivers */
   2
   3static const char version[] =
   4    "8390.c:v1.10cvs 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)\n";
   5
   6#include "lib8390.c"
   7
   8int ei_open(struct net_device *dev)
   9{
  10        return __ei_open(dev);
  11}
  12EXPORT_SYMBOL(ei_open);
  13
  14int ei_close(struct net_device *dev)
  15{
  16        return __ei_close(dev);
  17}
  18EXPORT_SYMBOL(ei_close);
  19
  20netdev_tx_t ei_start_xmit(struct sk_buff *skb, struct net_device *dev)
  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
  44irqreturn_t ei_interrupt(int irq, void *dev_id)
  45{
  46        return __ei_interrupt(irq, dev_id);
  47}
  48EXPORT_SYMBOL(ei_interrupt);
  49
  50#ifdef CONFIG_NET_POLL_CONTROLLER
  51void ei_poll(struct net_device *dev)
  52{
  53        __ei_poll(dev);
  54}
  55EXPORT_SYMBOL(ei_poll);
  56#endif
  57
  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,
  64        .ndo_set_rx_mode        = ei_set_multicast_list,
  65        .ndo_validate_addr      = eth_validate_addr,
  66        .ndo_set_mac_address    = eth_mac_addr,
  67#ifdef CONFIG_NET_POLL_CONTROLLER
  68        .ndo_poll_controller    = ei_poll,
  69#endif
  70};
  71EXPORT_SYMBOL(ei_netdev_ops);
  72
  73struct net_device *__alloc_ei_netdev(int size)
  74{
  75        struct net_device *dev = ____alloc_ei_netdev(size);
  76        if (dev)
  77                dev->netdev_ops = &ei_netdev_ops;
  78        return dev;
  79}
  80EXPORT_SYMBOL(__alloc_ei_netdev);
  81
  82void NS8390_init(struct net_device *dev, int startp)
  83{
  84        __NS8390_init(dev, startp);
  85}
  86EXPORT_SYMBOL(NS8390_init);
  87
  88#if defined(MODULE)
  89
  90static int __init ns8390_module_init(void)
  91{
  92        return 0;
  93}
  94
  95static void __exit ns8390_module_exit(void)
  96{
  97}
  98
  99module_init(ns8390_module_init);
 100module_exit(ns8390_module_exit);
 101#endif /* MODULE */
 102MODULE_LICENSE("GPL");
 103