dl2k.c (cf9ce948f47640797bd19980e1d99c6d17d0bdc3) | dl2k.c (7826d43f2db45c9305a6e0ba165650e1a203f517) |
---|---|
1/* D-Link DL2000-based Gigabit Ethernet Adapter Linux driver */ 2/* 3 Copyright (c) 2001, 2002 by D-Link Corporation 4 Written by Edward Peng.<edward_peng@dlink.com.tw> 5 Created 03-May-2001, base on Linux' sundance.c. 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by --- 1142 unchanged lines hidden (view full) --- 1151 dw32(HashTable0, hash_table[0]); 1152 dw32(HashTable1, hash_table[1]); 1153 dw16(ReceiveMode, rx_mode); 1154} 1155 1156static void rio_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) 1157{ 1158 struct netdev_private *np = netdev_priv(dev); | 1/* D-Link DL2000-based Gigabit Ethernet Adapter Linux driver */ 2/* 3 Copyright (c) 2001, 2002 by D-Link Corporation 4 Written by Edward Peng.<edward_peng@dlink.com.tw> 5 Created 03-May-2001, base on Linux' sundance.c. 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by --- 1142 unchanged lines hidden (view full) --- 1151 dw32(HashTable0, hash_table[0]); 1152 dw32(HashTable1, hash_table[1]); 1153 dw16(ReceiveMode, rx_mode); 1154} 1155 1156static void rio_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) 1157{ 1158 struct netdev_private *np = netdev_priv(dev); |
1159 strcpy(info->driver, "dl2k"); 1160 strcpy(info->version, DRV_VERSION); 1161 strcpy(info->bus_info, pci_name(np->pdev)); | 1159 1160 strlcpy(info->driver, "dl2k", sizeof(info->driver)); 1161 strlcpy(info->version, DRV_VERSION, sizeof(info->version)); 1162 strlcpy(info->bus_info, pci_name(np->pdev), sizeof(info->bus_info)); |
1162} 1163 1164static int rio_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) 1165{ 1166 struct netdev_private *np = netdev_priv(dev); 1167 if (np->phy_media) { 1168 /* fiber device */ 1169 cmd->supported = SUPPORTED_Autoneg | SUPPORTED_FIBRE; --- 602 unchanged lines hidden --- | 1163} 1164 1165static int rio_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) 1166{ 1167 struct netdev_private *np = netdev_priv(dev); 1168 if (np->phy_media) { 1169 /* fiber device */ 1170 cmd->supported = SUPPORTED_Autoneg | SUPPORTED_FIBRE; --- 602 unchanged lines hidden --- |