cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

8390.c (2131B)


      1// SPDX-License-Identifier: GPL-2.0-only
      2/* 8390 core for usual drivers */
      3
      4static const char version[] =
      5    "8390.c:v1.10cvs 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)\n";
      6
      7#include "lib8390.c"
      8
      9int ei_open(struct net_device *dev)
     10{
     11	return __ei_open(dev);
     12}
     13EXPORT_SYMBOL(ei_open);
     14
     15int ei_close(struct net_device *dev)
     16{
     17	return __ei_close(dev);
     18}
     19EXPORT_SYMBOL(ei_close);
     20
     21netdev_tx_t ei_start_xmit(struct sk_buff *skb, struct net_device *dev)
     22{
     23	return __ei_start_xmit(skb, dev);
     24}
     25EXPORT_SYMBOL(ei_start_xmit);
     26
     27struct net_device_stats *ei_get_stats(struct net_device *dev)
     28{
     29	return __ei_get_stats(dev);
     30}
     31EXPORT_SYMBOL(ei_get_stats);
     32
     33void ei_set_multicast_list(struct net_device *dev)
     34{
     35	__ei_set_multicast_list(dev);
     36}
     37EXPORT_SYMBOL(ei_set_multicast_list);
     38
     39void ei_tx_timeout(struct net_device *dev, unsigned int txqueue)
     40{
     41	__ei_tx_timeout(dev, txqueue);
     42}
     43EXPORT_SYMBOL(ei_tx_timeout);
     44
     45irqreturn_t ei_interrupt(int irq, void *dev_id)
     46{
     47	return __ei_interrupt(irq, dev_id);
     48}
     49EXPORT_SYMBOL(ei_interrupt);
     50
     51#ifdef CONFIG_NET_POLL_CONTROLLER
     52void ei_poll(struct net_device *dev)
     53{
     54	__ei_poll(dev);
     55}
     56EXPORT_SYMBOL(ei_poll);
     57#endif
     58
     59const struct net_device_ops ei_netdev_ops = {
     60	.ndo_open		= ei_open,
     61	.ndo_stop		= ei_close,
     62	.ndo_start_xmit		= ei_start_xmit,
     63	.ndo_tx_timeout		= ei_tx_timeout,
     64	.ndo_get_stats		= ei_get_stats,
     65	.ndo_set_rx_mode	= ei_set_multicast_list,
     66	.ndo_validate_addr	= eth_validate_addr,
     67	.ndo_set_mac_address 	= eth_mac_addr,
     68#ifdef CONFIG_NET_POLL_CONTROLLER
     69	.ndo_poll_controller	= ei_poll,
     70#endif
     71};
     72EXPORT_SYMBOL(ei_netdev_ops);
     73
     74struct net_device *__alloc_ei_netdev(int size)
     75{
     76	struct net_device *dev = ____alloc_ei_netdev(size);
     77	if (dev)
     78		dev->netdev_ops = &ei_netdev_ops;
     79	return dev;
     80}
     81EXPORT_SYMBOL(__alloc_ei_netdev);
     82
     83void NS8390_init(struct net_device *dev, int startp)
     84{
     85	__NS8390_init(dev, startp);
     86}
     87EXPORT_SYMBOL(NS8390_init);
     88
     89#if defined(MODULE)
     90
     91static int __init ns8390_module_init(void)
     92{
     93	return 0;
     94}
     95
     96static void __exit ns8390_module_exit(void)
     97{
     98}
     99
    100module_init(ns8390_module_init);
    101module_exit(ns8390_module_exit);
    102#endif /* MODULE */
    103MODULE_LICENSE("GPL");