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 | { | ||||
Harvey Harrison | ab59859 | 2008-05-01 02:47:38 -0700 | [diff] [blame] | 37 | __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 | |||||
Jon Schindler | 08dc732 | 2008-02-28 01:30:14 -0600 | [diff] [blame] | 51 | static int __init ns8390_module_init(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 52 | { |
53 | return 0; | ||||
54 | } | ||||
55 | |||||
Jon Schindler | 08dc732 | 2008-02-28 01:30:14 -0600 | [diff] [blame] | 56 | static void __exit ns8390_module_exit(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 57 | { |
58 | } | ||||
59 | |||||
David S. Miller | d5706ef | 2008-03-22 18:33:28 -0700 | [diff] [blame] | 60 | module_init(ns8390_module_init); |
Jon Schindler | 08dc732 | 2008-02-28 01:30:14 -0600 | [diff] [blame] | 61 | module_exit(ns8390_module_exit); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 62 | #endif /* MODULE */ |
63 | MODULE_LICENSE("GPL"); |