blob: f72a2e87d5697339045421b8c14568af4eeb789c [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}
Gustavo F. Padovan11795aa2008-08-02 15:55:13 -030012EXPORT_SYMBOL(ei_open);
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
Linus Torvalds1da177e2005-04-16 15:20:36 -070014int ei_close(struct net_device *dev)
15{
Al Viro6c3561b2006-10-10 00:19:36 +010016 return __ei_close(dev);
Linus Torvalds1da177e2005-04-16 15:20:36 -070017}
Gustavo F. Padovan11795aa2008-08-02 15:55:13 -030018EXPORT_SYMBOL(ei_close);
Linus Torvalds1da177e2005-04-16 15:20:36 -070019
David Howells7d12e782006-10-05 14:55:46 +010020irqreturn_t ei_interrupt(int irq, void *dev_id)
Linus Torvalds1da177e2005-04-16 15:20:36 -070021{
Al Viro6c3561b2006-10-10 00:19:36 +010022 return __ei_interrupt(irq, dev_id);
Linus Torvalds1da177e2005-04-16 15:20:36 -070023}
Gustavo F. Padovan11795aa2008-08-02 15:55:13 -030024EXPORT_SYMBOL(ei_interrupt);
Linus Torvalds1da177e2005-04-16 15:20:36 -070025
26#ifdef CONFIG_NET_POLL_CONTROLLER
27void ei_poll(struct net_device *dev)
28{
Al Viro6c3561b2006-10-10 00:19:36 +010029 __ei_poll(dev);
Linus Torvalds1da177e2005-04-16 15:20:36 -070030}
Gustavo F. Padovan11795aa2008-08-02 15:55:13 -030031EXPORT_SYMBOL(ei_poll);
Linus Torvalds1da177e2005-04-16 15:20:36 -070032#endif
33
Linus Torvalds1da177e2005-04-16 15:20:36 -070034struct net_device *__alloc_ei_netdev(int size)
35{
Al Viro6c3561b2006-10-10 00:19:36 +010036 return ____alloc_ei_netdev(size);
Linus Torvalds1da177e2005-04-16 15:20:36 -070037}
Gustavo F. Padovan11795aa2008-08-02 15:55:13 -030038EXPORT_SYMBOL(__alloc_ei_netdev);
Linus Torvalds1da177e2005-04-16 15:20:36 -070039
Linus Torvalds1da177e2005-04-16 15:20:36 -070040void NS8390_init(struct net_device *dev, int startp)
41{
Harvey Harrisonab598592008-05-01 02:47:38 -070042 __NS8390_init(dev, startp);
Linus Torvalds1da177e2005-04-16 15:20:36 -070043}
Linus Torvalds1da177e2005-04-16 15:20:36 -070044EXPORT_SYMBOL(NS8390_init);
Linus Torvalds1da177e2005-04-16 15:20:36 -070045
46#if defined(MODULE)
47
Jon Schindler08dc7322008-02-28 01:30:14 -060048static int __init ns8390_module_init(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -070049{
50 return 0;
51}
52
Jon Schindler08dc7322008-02-28 01:30:14 -060053static void __exit ns8390_module_exit(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -070054{
55}
56
David S. Millerd5706ef2008-03-22 18:33:28 -070057module_init(ns8390_module_init);
Jon Schindler08dc7322008-02-28 01:30:14 -060058module_exit(ns8390_module_exit);
Linus Torvalds1da177e2005-04-16 15:20:36 -070059#endif /* MODULE */
60MODULE_LICENSE("GPL");