smsc9420.c (41966710ab574f1fcedf3e10e1ceef911c096d1d) smsc9420.c (68aad78c5023b8aa82da99b47f9d8cf40e8ca453)
1 /***************************************************************************
2 *
3 * Copyright (C) 2007,2008 SMSC
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.

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

274 return phy_ethtool_sset(pd->phy_dev, cmd);
275}
276
277static void smsc9420_ethtool_get_drvinfo(struct net_device *netdev,
278 struct ethtool_drvinfo *drvinfo)
279{
280 struct smsc9420_pdata *pd = netdev_priv(netdev);
281
1 /***************************************************************************
2 *
3 * Copyright (C) 2007,2008 SMSC
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.

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

274 return phy_ethtool_sset(pd->phy_dev, cmd);
275}
276
277static void smsc9420_ethtool_get_drvinfo(struct net_device *netdev,
278 struct ethtool_drvinfo *drvinfo)
279{
280 struct smsc9420_pdata *pd = netdev_priv(netdev);
281
282 strcpy(drvinfo->driver, DRV_NAME);
283 strcpy(drvinfo->bus_info, pci_name(pd->pdev));
284 strcpy(drvinfo->version, DRV_VERSION);
282 strlcpy(drvinfo->driver, DRV_NAME, sizeof(drvinfo->driver));
283 strlcpy(drvinfo->bus_info, pci_name(pd->pdev),
284 sizeof(drvinfo->bus_info));
285 strlcpy(drvinfo->version, DRV_VERSION, sizeof(drvinfo->version));
285}
286
287static u32 smsc9420_ethtool_get_msglevel(struct net_device *netdev)
288{
289 struct smsc9420_pdata *pd = netdev_priv(netdev);
290 return pd->msg_enable;
291}
292

--- 1472 unchanged lines hidden ---
286}
287
288static u32 smsc9420_ethtool_get_msglevel(struct net_device *netdev)
289{
290 struct smsc9420_pdata *pd = netdev_priv(netdev);
291 return pd->msg_enable;
292}
293

--- 1472 unchanged lines hidden ---