8390.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /* 8390 core for usual drivers */
  2. static const char version[] =
  3. "8390.c:v1.10cvs 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)\n";
  4. #include "lib8390.c"
  5. int ei_open(struct net_device *dev)
  6. {
  7. return __ei_open(dev);
  8. }
  9. EXPORT_SYMBOL(ei_open);
  10. int ei_close(struct net_device *dev)
  11. {
  12. return __ei_close(dev);
  13. }
  14. EXPORT_SYMBOL(ei_close);
  15. netdev_tx_t ei_start_xmit(struct sk_buff *skb, struct net_device *dev)
  16. {
  17. return __ei_start_xmit(skb, dev);
  18. }
  19. EXPORT_SYMBOL(ei_start_xmit);
  20. struct net_device_stats *ei_get_stats(struct net_device *dev)
  21. {
  22. return __ei_get_stats(dev);
  23. }
  24. EXPORT_SYMBOL(ei_get_stats);
  25. void ei_set_multicast_list(struct net_device *dev)
  26. {
  27. __ei_set_multicast_list(dev);
  28. }
  29. EXPORT_SYMBOL(ei_set_multicast_list);
  30. void ei_tx_timeout(struct net_device *dev)
  31. {
  32. __ei_tx_timeout(dev);
  33. }
  34. EXPORT_SYMBOL(ei_tx_timeout);
  35. irqreturn_t ei_interrupt(int irq, void *dev_id)
  36. {
  37. return __ei_interrupt(irq, dev_id);
  38. }
  39. EXPORT_SYMBOL(ei_interrupt);
  40. #ifdef CONFIG_NET_POLL_CONTROLLER
  41. void ei_poll(struct net_device *dev)
  42. {
  43. __ei_poll(dev);
  44. }
  45. EXPORT_SYMBOL(ei_poll);
  46. #endif
  47. const struct net_device_ops ei_netdev_ops = {
  48. .ndo_open = ei_open,
  49. .ndo_stop = ei_close,
  50. .ndo_start_xmit = ei_start_xmit,
  51. .ndo_tx_timeout = ei_tx_timeout,
  52. .ndo_get_stats = ei_get_stats,
  53. .ndo_set_rx_mode = ei_set_multicast_list,
  54. .ndo_validate_addr = eth_validate_addr,
  55. .ndo_set_mac_address = eth_mac_addr,
  56. .ndo_change_mtu = eth_change_mtu,
  57. #ifdef CONFIG_NET_POLL_CONTROLLER
  58. .ndo_poll_controller = ei_poll,
  59. #endif
  60. };
  61. EXPORT_SYMBOL(ei_netdev_ops);
  62. struct net_device *__alloc_ei_netdev(int size)
  63. {
  64. struct net_device *dev = ____alloc_ei_netdev(size);
  65. if (dev)
  66. dev->netdev_ops = &ei_netdev_ops;
  67. return dev;
  68. }
  69. EXPORT_SYMBOL(__alloc_ei_netdev);
  70. void NS8390_init(struct net_device *dev, int startp)
  71. {
  72. __NS8390_init(dev, startp);
  73. }
  74. EXPORT_SYMBOL(NS8390_init);
  75. #if defined(MODULE)
  76. static int __init ns8390_module_init(void)
  77. {
  78. return 0;
  79. }
  80. static void __exit ns8390_module_exit(void)
  81. {
  82. }
  83. module_init(ns8390_module_init);
  84. module_exit(ns8390_module_exit);
  85. #endif /* MODULE */
  86. MODULE_LICENSE("GPL");