sundance.c (41966710ab574f1fcedf3e10e1ceef911c096d1d) | sundance.c (68aad78c5023b8aa82da99b47f9d8cf40e8ca453) |
---|---|
1/* sundance.c: A Linux device driver for the Sundance ST201 "Alta". */ 2/* 3 Written 1999-2000 by Donald Becker. 4 5 This software may be used and distributed according to the terms of 6 the GNU General Public License (GPL), incorporated herein by reference. 7 Drivers based on or derived from this code fall under the GPL and must 8 retain the authorship, copyright and license notice. This file is not --- 1620 unchanged lines hidden (view full) --- 1629 if (!netif_running(dev)) 1630 return -EINVAL; 1631 return 0; 1632} 1633 1634static void get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) 1635{ 1636 struct netdev_private *np = netdev_priv(dev); | 1/* sundance.c: A Linux device driver for the Sundance ST201 "Alta". */ 2/* 3 Written 1999-2000 by Donald Becker. 4 5 This software may be used and distributed according to the terms of 6 the GNU General Public License (GPL), incorporated herein by reference. 7 Drivers based on or derived from this code fall under the GPL and must 8 retain the authorship, copyright and license notice. This file is not --- 1620 unchanged lines hidden (view full) --- 1629 if (!netif_running(dev)) 1630 return -EINVAL; 1631 return 0; 1632} 1633 1634static void get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) 1635{ 1636 struct netdev_private *np = netdev_priv(dev); |
1637 strcpy(info->driver, DRV_NAME); 1638 strcpy(info->version, DRV_VERSION); 1639 strcpy(info->bus_info, pci_name(np->pci_dev)); | 1637 strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); 1638 strlcpy(info->version, DRV_VERSION, sizeof(info->version)); 1639 strlcpy(info->bus_info, pci_name(np->pci_dev), sizeof(info->bus_info)); |
1640} 1641 1642static int get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) 1643{ 1644 struct netdev_private *np = netdev_priv(dev); 1645 spin_lock_irq(&np->lock); 1646 mii_ethtool_gset(&np->mii_if, ecmd); 1647 spin_unlock_irq(&np->lock); --- 293 unchanged lines hidden --- | 1640} 1641 1642static int get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) 1643{ 1644 struct netdev_private *np = netdev_priv(dev); 1645 spin_lock_irq(&np->lock); 1646 mii_ethtool_gset(&np->mii_if, ecmd); 1647 spin_unlock_irq(&np->lock); --- 293 unchanged lines hidden --- |