dmfe.c (41966710ab574f1fcedf3e10e1ceef911c096d1d) | dmfe.c (68aad78c5023b8aa82da99b47f9d8cf40e8ca453) |
---|---|
1/* 2 A Davicom DM9102/DM9102A/DM9102A+DM9801/DM9102A+DM9802 NIC fast 3 ethernet driver for Linux. 4 Copyright (C) 1997 Sten Wang 5 6 This program is free software; you can redistribute it and/or 7 modify it under the terms of the GNU General Public License 8 as published by the Free Software Foundation; either version 2 --- 1071 unchanged lines hidden (view full) --- 1080 * Ethtool interace 1081 */ 1082 1083static void dmfe_ethtool_get_drvinfo(struct net_device *dev, 1084 struct ethtool_drvinfo *info) 1085{ 1086 struct dmfe_board_info *np = netdev_priv(dev); 1087 | 1/* 2 A Davicom DM9102/DM9102A/DM9102A+DM9801/DM9102A+DM9802 NIC fast 3 ethernet driver for Linux. 4 Copyright (C) 1997 Sten Wang 5 6 This program is free software; you can redistribute it and/or 7 modify it under the terms of the GNU General Public License 8 as published by the Free Software Foundation; either version 2 --- 1071 unchanged lines hidden (view full) --- 1080 * Ethtool interace 1081 */ 1082 1083static void dmfe_ethtool_get_drvinfo(struct net_device *dev, 1084 struct ethtool_drvinfo *info) 1085{ 1086 struct dmfe_board_info *np = netdev_priv(dev); 1087 |
1088 strcpy(info->driver, DRV_NAME); 1089 strcpy(info->version, DRV_VERSION); | 1088 strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); 1089 strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
1090 if (np->pdev) | 1090 if (np->pdev) |
1091 strcpy(info->bus_info, pci_name(np->pdev)); | 1091 strlcpy(info->bus_info, pci_name(np->pdev), 1092 sizeof(info->bus_info)); |
1092 else 1093 sprintf(info->bus_info, "EISA 0x%lx %d", 1094 dev->base_addr, dev->irq); 1095} 1096 1097static int dmfe_ethtool_set_wol(struct net_device *dev, 1098 struct ethtool_wolinfo *wolinfo) 1099{ --- 1154 unchanged lines hidden --- | 1093 else 1094 sprintf(info->bus_info, "EISA 0x%lx %d", 1095 dev->base_addr, dev->irq); 1096} 1097 1098static int dmfe_ethtool_set_wol(struct net_device *dev, 1099 struct ethtool_wolinfo *wolinfo) 1100{ --- 1154 unchanged lines hidden --- |