Al Viro | 6c3561b | 2006-10-10 00:19:36 +0100 | [diff] [blame] | 1 | /* 8390 core for usual drivers */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | |
3 | static const char version[] = | ||||
4 | "8390.c:v1.10cvs 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)\n"; | ||||
5 | |||||
Al Viro | 6c3561b | 2006-10-10 00:19:36 +0100 | [diff] [blame] | 6 | #include "lib8390.c" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | int ei_open(struct net_device *dev) |
9 | { | ||||
Al Viro | 6c3561b | 2006-10-10 00:19:36 +0100 | [diff] [blame] | 10 | return __ei_open(dev); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | } |
12 | |||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | int ei_close(struct net_device *dev) |
14 | { | ||||
Al Viro | 6c3561b | 2006-10-10 00:19:36 +0100 | [diff] [blame] | 15 | return __ei_close(dev); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | } |
17 | |||||
David Howells | 7d12e78 | 2006-10-05 14:55:46 +0100 | [diff] [blame] | 18 | irqreturn_t ei_interrupt(int irq, void *dev_id) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | { |
Al Viro | 6c3561b | 2006-10-10 00:19:36 +0100 | [diff] [blame] | 20 | return __ei_interrupt(irq, dev_id); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | } |
22 | |||||
23 | #ifdef CONFIG_NET_POLL_CONTROLLER | ||||
24 | void ei_poll(struct net_device *dev) | ||||
25 | { | ||||
Al Viro | 6c3561b | 2006-10-10 00:19:36 +0100 | [diff] [blame] | 26 | __ei_poll(dev); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | } |
28 | #endif | ||||
29 | |||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | struct net_device *__alloc_ei_netdev(int size) |
31 | { | ||||
Al Viro | 6c3561b | 2006-10-10 00:19:36 +0100 | [diff] [blame] | 32 | return ____alloc_ei_netdev(size); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | } |
34 | |||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | void NS8390_init(struct net_device *dev, int startp) |
36 | { | ||||
Al Viro | 6c3561b | 2006-10-10 00:19:36 +0100 | [diff] [blame] | 37 | return __NS8390_init(dev, startp); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | } |
39 | |||||
40 | EXPORT_SYMBOL(ei_open); | ||||
41 | EXPORT_SYMBOL(ei_close); | ||||
42 | EXPORT_SYMBOL(ei_interrupt); | ||||
43 | #ifdef CONFIG_NET_POLL_CONTROLLER | ||||
44 | EXPORT_SYMBOL(ei_poll); | ||||
45 | #endif | ||||
46 | EXPORT_SYMBOL(NS8390_init); | ||||
47 | EXPORT_SYMBOL(__alloc_ei_netdev); | ||||
48 | |||||
49 | #if defined(MODULE) | ||||
50 | |||||
51 | int init_module(void) | ||||
52 | { | ||||
53 | return 0; | ||||
54 | } | ||||
55 | |||||
56 | void cleanup_module(void) | ||||
57 | { | ||||
58 | } | ||||
59 | |||||
60 | #endif /* MODULE */ | ||||
61 | MODULE_LICENSE("GPL"); |