blob: a499e867f0f456ea60fb246b2ecdbb04d465b150 [file] [log] [blame]
Al Viro6c3561b2006-10-10 00:19:36 +01001/* 8390 core for usual drivers */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002
3static const char version[] =
4 "8390.c:v1.10cvs 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)\n";
5
Al Viro6c3561b2006-10-10 00:19:36 +01006#include "lib8390.c"
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
Linus Torvalds1da177e2005-04-16 15:20:36 -07008int ei_open(struct net_device *dev)
9{
Al Viro6c3561b2006-10-10 00:19:36 +010010 return __ei_open(dev);
Linus Torvalds1da177e2005-04-16 15:20:36 -070011}
12
Linus Torvalds1da177e2005-04-16 15:20:36 -070013int ei_close(struct net_device *dev)
14{
Al Viro6c3561b2006-10-10 00:19:36 +010015 return __ei_close(dev);
Linus Torvalds1da177e2005-04-16 15:20:36 -070016}
17
David Howells7d12e782006-10-05 14:55:46 +010018irqreturn_t ei_interrupt(int irq, void *dev_id)
Linus Torvalds1da177e2005-04-16 15:20:36 -070019{
Al Viro6c3561b2006-10-10 00:19:36 +010020 return __ei_interrupt(irq, dev_id);
Linus Torvalds1da177e2005-04-16 15:20:36 -070021}
22
23#ifdef CONFIG_NET_POLL_CONTROLLER
24void ei_poll(struct net_device *dev)
25{
Al Viro6c3561b2006-10-10 00:19:36 +010026 __ei_poll(dev);
Linus Torvalds1da177e2005-04-16 15:20:36 -070027}
28#endif
29
Linus Torvalds1da177e2005-04-16 15:20:36 -070030struct net_device *__alloc_ei_netdev(int size)
31{
Al Viro6c3561b2006-10-10 00:19:36 +010032 return ____alloc_ei_netdev(size);
Linus Torvalds1da177e2005-04-16 15:20:36 -070033}
34
Linus Torvalds1da177e2005-04-16 15:20:36 -070035void NS8390_init(struct net_device *dev, int startp)
36{
Al Viro6c3561b2006-10-10 00:19:36 +010037 return __NS8390_init(dev, startp);
Linus Torvalds1da177e2005-04-16 15:20:36 -070038}
39
40EXPORT_SYMBOL(ei_open);
41EXPORT_SYMBOL(ei_close);
42EXPORT_SYMBOL(ei_interrupt);
43#ifdef CONFIG_NET_POLL_CONTROLLER
44EXPORT_SYMBOL(ei_poll);
45#endif
46EXPORT_SYMBOL(NS8390_init);
47EXPORT_SYMBOL(__alloc_ei_netdev);
48
49#if defined(MODULE)
50
Jon Schindler08dc7322008-02-28 01:30:14 -060051static int __init ns8390_module_init(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -070052{
53 return 0;
54}
55
Jon Schindler08dc7322008-02-28 01:30:14 -060056static void __exit ns8390_module_exit(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -070057{
58}
59
David S. Millerd5706ef2008-03-22 18:33:28 -070060module_init(ns8390_module_init);
Jon Schindler08dc7322008-02-28 01:30:14 -060061module_exit(ns8390_module_exit);
Linus Torvalds1da177e2005-04-16 15:20:36 -070062#endif /* MODULE */
63MODULE_LICENSE("GPL");