8390p.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* 8390 core for ISA devices needing bus delays */
  2. static const char version[] =
  3. "8390p.c:v1.10cvs 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)\n";
  4. #define ei_inb(_p) inb(_p)
  5. #define ei_outb(_v,_p) outb(_v,_p)
  6. #define ei_inb_p(_p) inb_p(_p)
  7. #define ei_outb_p(_v,_p) outb_p(_v,_p)
  8. #include "lib8390.c"
  9. int eip_open(struct net_device *dev)
  10. {
  11. return __ei_open(dev);
  12. }
  13. int eip_close(struct net_device *dev)
  14. {
  15. return __ei_close(dev);
  16. }
  17. irqreturn_t eip_interrupt(int irq, void *dev_id)
  18. {
  19. return __ei_interrupt(irq, dev_id);
  20. }
  21. #ifdef CONFIG_NET_POLL_CONTROLLER
  22. void eip_poll(struct net_device *dev)
  23. {
  24. __ei_poll(dev);
  25. }
  26. #endif
  27. struct net_device *__alloc_eip_netdev(int size)
  28. {
  29. return ____alloc_ei_netdev(size);
  30. }
  31. void NS8390p_init(struct net_device *dev, int startp)
  32. {
  33. return __NS8390_init(dev, startp);
  34. }
  35. EXPORT_SYMBOL(eip_open);
  36. EXPORT_SYMBOL(eip_close);
  37. EXPORT_SYMBOL(eip_interrupt);
  38. #ifdef CONFIG_NET_POLL_CONTROLLER
  39. EXPORT_SYMBOL(eip_poll);
  40. #endif
  41. EXPORT_SYMBOL(NS8390p_init);
  42. EXPORT_SYMBOL(__alloc_eip_netdev);
  43. #if defined(MODULE)
  44. int init_module(void)
  45. {
  46. return 0;
  47. }
  48. void cleanup_module(void)
  49. {
  50. }
  51. #endif /* MODULE */
  52. MODULE_LICENSE("GPL");