de2104x.c (41966710ab574f1fcedf3e10e1ceef911c096d1d) | de2104x.c (68aad78c5023b8aa82da99b47f9d8cf40e8ca453) |
---|---|
1/* de2104x.c: A Linux PCI Ethernet driver for Intel/Digital 21040/1 chips. */ 2/* 3 Copyright 2001,2003 Jeff Garzik <jgarzik@pobox.com> 4 5 Copyright 1994, 1995 Digital Equipment Corporation. [de4x5.c] 6 Written/copyright 1994-2001 by Donald Becker. [tulip.c] 7 8 This software may be used and distributed according to the terms of --- 1584 unchanged lines hidden (view full) --- 1593 1594 return 0; 1595} 1596 1597static void de_get_drvinfo (struct net_device *dev,struct ethtool_drvinfo *info) 1598{ 1599 struct de_private *de = netdev_priv(dev); 1600 | 1/* de2104x.c: A Linux PCI Ethernet driver for Intel/Digital 21040/1 chips. */ 2/* 3 Copyright 2001,2003 Jeff Garzik <jgarzik@pobox.com> 4 5 Copyright 1994, 1995 Digital Equipment Corporation. [de4x5.c] 6 Written/copyright 1994-2001 by Donald Becker. [tulip.c] 7 8 This software may be used and distributed according to the terms of --- 1584 unchanged lines hidden (view full) --- 1593 1594 return 0; 1595} 1596 1597static void de_get_drvinfo (struct net_device *dev,struct ethtool_drvinfo *info) 1598{ 1599 struct de_private *de = netdev_priv(dev); 1600 |
1601 strcpy (info->driver, DRV_NAME); 1602 strcpy (info->version, DRV_VERSION); 1603 strcpy (info->bus_info, pci_name(de->pdev)); | 1601 strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); 1602 strlcpy(info->version, DRV_VERSION, sizeof(info->version)); 1603 strlcpy(info->bus_info, pci_name(de->pdev), sizeof(info->bus_info)); |
1604 info->eedump_len = DE_EEPROM_SIZE; 1605} 1606 1607static int de_get_regs_len(struct net_device *dev) 1608{ 1609 return DE_REGS_SIZE; 1610} 1611 --- 604 unchanged lines hidden --- | 1604 info->eedump_len = DE_EEPROM_SIZE; 1605} 1606 1607static int de_get_regs_len(struct net_device *dev) 1608{ 1609 return DE_REGS_SIZE; 1610} 1611 --- 604 unchanged lines hidden --- |