atl2.c (41966710ab574f1fcedf3e10e1ceef911c096d1d) | atl2.c (68aad78c5023b8aa82da99b47f9d8cf40e8ca453) |
---|---|
1/* 2 * Copyright(c) 2006 - 2007 Atheros Corporation. All rights reserved. 3 * Copyright(c) 2007 - 2008 Chris Snook <csnook@redhat.com> 4 * 5 * Derived from Intel e1000 driver 6 * Copyright(c) 1999 - 2005 Intel Corporation. All rights reserved. 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 2035 unchanged lines hidden (view full) --- 2044 return ret_val; 2045} 2046 2047static void atl2_get_drvinfo(struct net_device *netdev, 2048 struct ethtool_drvinfo *drvinfo) 2049{ 2050 struct atl2_adapter *adapter = netdev_priv(netdev); 2051 | 1/* 2 * Copyright(c) 2006 - 2007 Atheros Corporation. All rights reserved. 3 * Copyright(c) 2007 - 2008 Chris Snook <csnook@redhat.com> 4 * 5 * Derived from Intel e1000 driver 6 * Copyright(c) 1999 - 2005 Intel Corporation. All rights reserved. 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 2035 unchanged lines hidden (view full) --- 2044 return ret_val; 2045} 2046 2047static void atl2_get_drvinfo(struct net_device *netdev, 2048 struct ethtool_drvinfo *drvinfo) 2049{ 2050 struct atl2_adapter *adapter = netdev_priv(netdev); 2051 |
2052 strncpy(drvinfo->driver, atl2_driver_name, 32); 2053 strncpy(drvinfo->version, atl2_driver_version, 32); 2054 strncpy(drvinfo->fw_version, "L2", 32); 2055 strncpy(drvinfo->bus_info, pci_name(adapter->pdev), 32); | 2052 strlcpy(drvinfo->driver, atl2_driver_name, sizeof(drvinfo->driver)); 2053 strlcpy(drvinfo->version, atl2_driver_version, 2054 sizeof(drvinfo->version)); 2055 strlcpy(drvinfo->fw_version, "L2", sizeof(drvinfo->fw_version)); 2056 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), 2057 sizeof(drvinfo->bus_info)); |
2056 drvinfo->n_stats = 0; 2057 drvinfo->testinfo_len = 0; 2058 drvinfo->regdump_len = atl2_get_regs_len(netdev); 2059 drvinfo->eedump_len = atl2_get_eeprom_len(netdev); 2060} 2061 2062static void atl2_get_wol(struct net_device *netdev, 2063 struct ethtool_wolinfo *wol) --- 1056 unchanged lines hidden --- | 2058 drvinfo->n_stats = 0; 2059 drvinfo->testinfo_len = 0; 2060 drvinfo->regdump_len = atl2_get_regs_len(netdev); 2061 drvinfo->eedump_len = atl2_get_eeprom_len(netdev); 2062} 2063 2064static void atl2_get_wol(struct net_device *netdev, 2065 struct ethtool_wolinfo *wol) --- 1056 unchanged lines hidden --- |