fealnx.c (41966710ab574f1fcedf3e10e1ceef911c096d1d) | fealnx.c (68aad78c5023b8aa82da99b47f9d8cf40e8ca453) |
---|---|
1/* 2 Written 1998-2000 by Donald Becker. 3 4 This software may be used and distributed according to the terms of 5 the GNU General Public License (GPL), incorporated herein by reference. 6 Drivers based on or derived from this code fall under the GPL and must 7 retain the authorship, copyright and license notice. This file is not 8 a complete program and may only be used when the entire operating --- 1804 unchanged lines hidden (view full) --- 1813 np->crvalue |= rx_mode; 1814 iowrite32(np->crvalue, ioaddr + TCRRCR); 1815} 1816 1817static void netdev_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) 1818{ 1819 struct netdev_private *np = netdev_priv(dev); 1820 | 1/* 2 Written 1998-2000 by Donald Becker. 3 4 This software may be used and distributed according to the terms of 5 the GNU General Public License (GPL), incorporated herein by reference. 6 Drivers based on or derived from this code fall under the GPL and must 7 retain the authorship, copyright and license notice. This file is not 8 a complete program and may only be used when the entire operating --- 1804 unchanged lines hidden (view full) --- 1813 np->crvalue |= rx_mode; 1814 iowrite32(np->crvalue, ioaddr + TCRRCR); 1815} 1816 1817static void netdev_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) 1818{ 1819 struct netdev_private *np = netdev_priv(dev); 1820 |
1821 strcpy(info->driver, DRV_NAME); 1822 strcpy(info->version, DRV_VERSION); 1823 strcpy(info->bus_info, pci_name(np->pci_dev)); | 1821 strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); 1822 strlcpy(info->version, DRV_VERSION, sizeof(info->version)); 1823 strlcpy(info->bus_info, pci_name(np->pci_dev), sizeof(info->bus_info)); |
1824} 1825 1826static int netdev_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) 1827{ 1828 struct netdev_private *np = netdev_priv(dev); 1829 int rc; 1830 1831 spin_lock_irq(&np->lock); --- 145 unchanged lines hidden --- | 1824} 1825 1826static int netdev_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) 1827{ 1828 struct netdev_private *np = netdev_priv(dev); 1829 int rc; 1830 1831 spin_lock_irq(&np->lock); --- 145 unchanged lines hidden --- |