3c509.c (cf9ce948f47640797bd19980e1d99c6d17d0bdc3) 3c509.c (7826d43f2db45c9305a6e0ba165650e1a203f517)
1/* 3c509.c: A 3c509 EtherLink3 ethernet driver for linux. */
2/*
3 Written 1993-2000 by Donald Becker.
4
5 Copyright 1994-2000 by Donald Becker.
6 Copyright 1993 United States Government as represented by the
7 Director, National Security Agency. This software may be used and
8 distributed according to the terms of the GNU General Public License,

--- 1147 unchanged lines hidden (view full) ---

1156 outw(tmp, ioaddr + WN4_NETDIAG);
1157 EL3WINDOW(1);
1158
1159 return 0;
1160}
1161
1162static void el3_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
1163{
1/* 3c509.c: A 3c509 EtherLink3 ethernet driver for linux. */
2/*
3 Written 1993-2000 by Donald Becker.
4
5 Copyright 1994-2000 by Donald Becker.
6 Copyright 1993 United States Government as represented by the
7 Director, National Security Agency. This software may be used and
8 distributed according to the terms of the GNU General Public License,

--- 1147 unchanged lines hidden (view full) ---

1156 outw(tmp, ioaddr + WN4_NETDIAG);
1157 EL3WINDOW(1);
1158
1159 return 0;
1160}
1161
1162static void el3_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
1163{
1164 strcpy(info->driver, DRV_NAME);
1165 strcpy(info->version, DRV_VERSION);
1164 strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
1165 strlcpy(info->version, DRV_VERSION, sizeof(info->version));
1166}
1167
1168static int el3_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd)
1169{
1170 struct el3_private *lp = netdev_priv(dev);
1171 int ret;
1172
1173 spin_lock_irq(&lp->lock);

--- 299 unchanged lines hidden ---
1166}
1167
1168static int el3_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd)
1169{
1170 struct el3_private *lp = netdev_priv(dev);
1171 int ret;
1172
1173 spin_lock_irq(&lp->lock);

--- 299 unchanged lines hidden ---