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 | } |
Gustavo F. Padovan | 11795aa | 2008-08-02 15:55:13 -0300 | [diff] [blame] | 12 | EXPORT_SYMBOL(ei_open); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | int ei_close(struct net_device *dev) |
15 | { | ||||
Al Viro | 6c3561b | 2006-10-10 00:19:36 +0100 | [diff] [blame] | 16 | return __ei_close(dev); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | } |
Gustavo F. Padovan | 11795aa | 2008-08-02 15:55:13 -0300 | [diff] [blame] | 18 | EXPORT_SYMBOL(ei_close); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | |
David Howells | 7d12e78 | 2006-10-05 14:55:46 +0100 | [diff] [blame] | 20 | irqreturn_t ei_interrupt(int irq, void *dev_id) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | { |
Al Viro | 6c3561b | 2006-10-10 00:19:36 +0100 | [diff] [blame] | 22 | return __ei_interrupt(irq, dev_id); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | } |
Gustavo F. Padovan | 11795aa | 2008-08-02 15:55:13 -0300 | [diff] [blame] | 24 | EXPORT_SYMBOL(ei_interrupt); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | |
26 | #ifdef CONFIG_NET_POLL_CONTROLLER | ||||
27 | void ei_poll(struct net_device *dev) | ||||
28 | { | ||||
Al Viro | 6c3561b | 2006-10-10 00:19:36 +0100 | [diff] [blame] | 29 | __ei_poll(dev); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | } |
Gustavo F. Padovan | 11795aa | 2008-08-02 15:55:13 -0300 | [diff] [blame] | 31 | EXPORT_SYMBOL(ei_poll); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | #endif |
33 | |||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | struct net_device *__alloc_ei_netdev(int size) |
35 | { | ||||
Al Viro | 6c3561b | 2006-10-10 00:19:36 +0100 | [diff] [blame] | 36 | return ____alloc_ei_netdev(size); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | } |
Gustavo F. Padovan | 11795aa | 2008-08-02 15:55:13 -0300 | [diff] [blame] | 38 | EXPORT_SYMBOL(__alloc_ei_netdev); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | void NS8390_init(struct net_device *dev, int startp) |
41 | { | ||||
Harvey Harrison | ab59859 | 2008-05-01 02:47:38 -0700 | [diff] [blame] | 42 | __NS8390_init(dev, startp); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 43 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | EXPORT_SYMBOL(NS8390_init); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 | |
46 | #if defined(MODULE) | ||||
47 | |||||
Jon Schindler | 08dc732 | 2008-02-28 01:30:14 -0600 | [diff] [blame] | 48 | static int __init ns8390_module_init(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 49 | { |
50 | return 0; | ||||
51 | } | ||||
52 | |||||
Jon Schindler | 08dc732 | 2008-02-28 01:30:14 -0600 | [diff] [blame] | 53 | static void __exit ns8390_module_exit(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | { |
55 | } | ||||
56 | |||||
David S. Miller | d5706ef | 2008-03-22 18:33:28 -0700 | [diff] [blame] | 57 | module_init(ns8390_module_init); |
Jon Schindler | 08dc732 | 2008-02-28 01:30:14 -0600 | [diff] [blame] | 58 | module_exit(ns8390_module_exit); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 59 | #endif /* MODULE */ |
60 | MODULE_LICENSE("GPL"); |