blob: 4c6eea4611a2c213a1bbff4079c02a3006b65d98 [file] [log] [blame]
Alan Cox055e5112008-07-03 23:43:12 -07001/* 8390 core for ISA devices needing bus delays */
2
3static const char version[] =
4 "8390p.c:v1.10cvs 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)\n";
5
6#define ei_inb(_p) inb(_p)
Gustavo F. Padovancaa16872008-08-02 15:55:12 -03007#define ei_outb(_v, _p) outb(_v, _p)
Alan Cox055e5112008-07-03 23:43:12 -07008#define ei_inb_p(_p) inb_p(_p)
Gustavo F. Padovancaa16872008-08-02 15:55:12 -03009#define ei_outb_p(_v, _p) outb_p(_v, _p)
Alan Cox055e5112008-07-03 23:43:12 -070010
11#include "lib8390.c"
12
13int eip_open(struct net_device *dev)
14{
15 return __ei_open(dev);
16}
Gustavo F. Padovancaa16872008-08-02 15:55:12 -030017EXPORT_SYMBOL(eip_open);
Alan Cox055e5112008-07-03 23:43:12 -070018
19int eip_close(struct net_device *dev)
20{
21 return __ei_close(dev);
22}
Gustavo F. Padovancaa16872008-08-02 15:55:12 -030023EXPORT_SYMBOL(eip_close);
Alan Cox055e5112008-07-03 23:43:12 -070024
25irqreturn_t eip_interrupt(int irq, void *dev_id)
26{
27 return __ei_interrupt(irq, dev_id);
28}
Gustavo F. Padovancaa16872008-08-02 15:55:12 -030029EXPORT_SYMBOL(eip_interrupt);
Alan Cox055e5112008-07-03 23:43:12 -070030
31#ifdef CONFIG_NET_POLL_CONTROLLER
32void eip_poll(struct net_device *dev)
33{
34 __ei_poll(dev);
35}
Gustavo F. Padovancaa16872008-08-02 15:55:12 -030036EXPORT_SYMBOL(eip_poll);
Alan Cox055e5112008-07-03 23:43:12 -070037#endif
38
39struct net_device *__alloc_eip_netdev(int size)
40{
41 return ____alloc_ei_netdev(size);
42}
Gustavo F. Padovancaa16872008-08-02 15:55:12 -030043EXPORT_SYMBOL(__alloc_eip_netdev);
Alan Cox055e5112008-07-03 23:43:12 -070044
45void NS8390p_init(struct net_device *dev, int startp)
46{
Gustavo F. Padovan057b61a2008-08-02 15:55:11 -030047 __NS8390_init(dev, startp);
Alan Cox055e5112008-07-03 23:43:12 -070048}
Alan Cox055e5112008-07-03 23:43:12 -070049EXPORT_SYMBOL(NS8390p_init);
Alan Cox055e5112008-07-03 23:43:12 -070050
51#if defined(MODULE)
52
53int init_module(void)
54{
55 return 0;
56}
57
58void cleanup_module(void)
59{
60}
61
62#endif /* MODULE */
63MODULE_LICENSE("GPL");