sunlance.c (cf9ce948f47640797bd19980e1d99c6d17d0bdc3) | sunlance.c (7826d43f2db45c9305a6e0ba165650e1a203f517) |
---|---|
1/* $Id: sunlance.c,v 1.112 2002/01/15 06:48:55 davem Exp $ 2 * lance.c: Linux/Sparc/Lance driver 3 * 4 * Written 1995, 1996 by Miguel de Icaza 5 * Sources: 6 * The Linux depca driver 7 * The Linux lance driver. 8 * The Linux skeleton driver. --- 1270 unchanged lines hidden (view full) --- 1279 lp->init_block_mem, 1280 lp->init_block_dvma); 1281 } 1282} 1283 1284/* Ethtool support... */ 1285static void sparc_lance_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) 1286{ | 1/* $Id: sunlance.c,v 1.112 2002/01/15 06:48:55 davem Exp $ 2 * lance.c: Linux/Sparc/Lance driver 3 * 4 * Written 1995, 1996 by Miguel de Icaza 5 * Sources: 6 * The Linux depca driver 7 * The Linux lance driver. 8 * The Linux skeleton driver. --- 1270 unchanged lines hidden (view full) --- 1279 lp->init_block_mem, 1280 lp->init_block_dvma); 1281 } 1282} 1283 1284/* Ethtool support... */ 1285static void sparc_lance_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) 1286{ |
1287 strcpy(info->driver, "sunlance"); 1288 strcpy(info->version, "2.02"); | 1287 strlcpy(info->driver, "sunlance", sizeof(info->driver)); 1288 strlcpy(info->version, "2.02", sizeof(info->version)); |
1289} 1290 1291static const struct ethtool_ops sparc_lance_ethtool_ops = { 1292 .get_drvinfo = sparc_lance_get_drvinfo, 1293 .get_link = ethtool_op_get_link, 1294}; 1295 1296static const struct net_device_ops sparc_lance_ops = { --- 246 unchanged lines hidden --- | 1289} 1290 1291static const struct ethtool_ops sparc_lance_ethtool_ops = { 1292 .get_drvinfo = sparc_lance_get_drvinfo, 1293 .get_link = ethtool_op_get_link, 1294}; 1295 1296static const struct net_device_ops sparc_lance_ops = { --- 246 unchanged lines hidden --- |