starfire.c (41966710ab574f1fcedf3e10e1ceef911c096d1d) | starfire.c (68aad78c5023b8aa82da99b47f9d8cf40e8ca453) |
---|---|
1/* starfire.c: Linux device driver for the Adaptec Starfire network adapter. */ 2/* 3 Written 1998-2000 by Donald Becker. 4 5 Current maintainer is Ion Badulescu <ionut ta badula tod org>. Please 6 send all bug reports to me, and not to Donald Becker, as this code 7 has been heavily modified from Donald's original version. 8 --- 1828 unchanged lines hidden (view full) --- 1837 if (!netif_running(dev)) 1838 return -EINVAL; 1839 return 0; 1840} 1841 1842static void get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) 1843{ 1844 struct netdev_private *np = netdev_priv(dev); | 1/* starfire.c: Linux device driver for the Adaptec Starfire network adapter. */ 2/* 3 Written 1998-2000 by Donald Becker. 4 5 Current maintainer is Ion Badulescu <ionut ta badula tod org>. Please 6 send all bug reports to me, and not to Donald Becker, as this code 7 has been heavily modified from Donald's original version. 8 --- 1828 unchanged lines hidden (view full) --- 1837 if (!netif_running(dev)) 1838 return -EINVAL; 1839 return 0; 1840} 1841 1842static void get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) 1843{ 1844 struct netdev_private *np = netdev_priv(dev); |
1845 strcpy(info->driver, DRV_NAME); 1846 strcpy(info->version, DRV_VERSION); 1847 strcpy(info->bus_info, pci_name(np->pci_dev)); | 1845 strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); 1846 strlcpy(info->version, DRV_VERSION, sizeof(info->version)); 1847 strlcpy(info->bus_info, pci_name(np->pci_dev), sizeof(info->bus_info)); |
1848} 1849 1850static int get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) 1851{ 1852 struct netdev_private *np = netdev_priv(dev); 1853 spin_lock_irq(&np->lock); 1854 mii_ethtool_gset(&np->mii_if, ecmd); 1855 spin_unlock_irq(&np->lock); --- 236 unchanged lines hidden --- | 1848} 1849 1850static int get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) 1851{ 1852 struct netdev_private *np = netdev_priv(dev); 1853 spin_lock_irq(&np->lock); 1854 mii_ethtool_gset(&np->mii_if, ecmd); 1855 spin_unlock_irq(&np->lock); --- 236 unchanged lines hidden --- |