aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/gianfar_ethtool.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-09-24 13:15:13 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-24 13:15:13 -0400
commita319a2773a13bab56a0d0b3744ba8703324313b5 (patch)
treef02c86acabd1031439fd422a167784007e84ebb1 /drivers/net/gianfar_ethtool.c
parente18fa700c9a31360bc8f193aa543b7ef7b39a06b (diff)
parent183798799216fad36c7219fe8d4d6dee6b8fa755 (diff)
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6: (217 commits) net/ieee80211: fix more crypto-related build breakage [PATCH] Spidernet: add ethtool -S (show statistics) [NET] GT96100: Delete bitrotting ethernet driver [PATCH] mv643xx_eth: restrict to 32-bit PPC_MULTIPLATFORM [PATCH] Cirrus Logic ep93xx ethernet driver r8169: the MMIO region of the 8167 stands behin BAR#1 e1000, ixgb: Remove pointless wrappers [PATCH] Remove powerpc specific parts of 3c509 driver [PATCH] s2io: Switch to pci_get_device [PATCH] gt96100: move to pci_get_device API [PATCH] ehea: bugfix for register access functions [PATCH] e1000 disable device on PCI error drivers/net/phy/fixed: #if 0 some incomplete code drivers/net: const-ify ethtool_ops declarations [PATCH] ethtool: allow const ethtool_ops [PATCH] sky2: big endian [PATCH] sky2: fiber support [PATCH] sky2: tx pause bug fix drivers/net: Trim trailing whitespace [PATCH] ehea: IBM eHEA Ethernet Device Driver ... Manually resolved conflicts in drivers/net/ixgb/ixgb_main.c and drivers/net/sky2.c related to CHECKSUM_HW/CHECKSUM_PARTIAL changes by commit 84fa7933a33f806bbbaae6775e87459b1ec584c0 that just happened to be next to unrelated changes in this update.
Diffstat (limited to 'drivers/net/gianfar_ethtool.c')
-rw-r--r--drivers/net/gianfar_ethtool.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/gianfar_ethtool.c b/drivers/net/gianfar_ethtool.c
index e0f505285e50..6d71bea5e900 100644
--- a/drivers/net/gianfar_ethtool.c
+++ b/drivers/net/gianfar_ethtool.c
@@ -10,8 +10,8 @@
10 * 10 *
11 * Copyright (c) 2003,2004 Freescale Semiconductor, Inc. 11 * Copyright (c) 2003,2004 Freescale Semiconductor, Inc.
12 * 12 *
13 * This software may be used and distributed according to 13 * This software may be used and distributed according to
14 * the terms of the GNU Public License, Version 2, incorporated herein 14 * the terms of the GNU Public License, Version 2, incorporated herein
15 * by reference. 15 * by reference.
16 */ 16 */
17 17
@@ -202,7 +202,7 @@ static int gfar_gsettings(struct net_device *dev, struct ethtool_cmd *cmd)
202 202
203 if (NULL == phydev) 203 if (NULL == phydev)
204 return -ENODEV; 204 return -ENODEV;
205 205
206 cmd->maxtxpkt = priv->txcount; 206 cmd->maxtxpkt = priv->txcount;
207 cmd->maxrxpkt = priv->rxcount; 207 cmd->maxrxpkt = priv->rxcount;
208 208
@@ -281,7 +281,7 @@ static unsigned int gfar_ticks2usecs(struct gfar_private *priv, unsigned int tic
281static int gfar_gcoalesce(struct net_device *dev, struct ethtool_coalesce *cvals) 281static int gfar_gcoalesce(struct net_device *dev, struct ethtool_coalesce *cvals)
282{ 282{
283 struct gfar_private *priv = netdev_priv(dev); 283 struct gfar_private *priv = netdev_priv(dev);
284 284
285 if (!(priv->einfo->device_flags & FSL_GIANFAR_DEV_HAS_COALESCE)) 285 if (!(priv->einfo->device_flags & FSL_GIANFAR_DEV_HAS_COALESCE))
286 return -EOPNOTSUPP; 286 return -EOPNOTSUPP;
287 287
@@ -555,19 +555,19 @@ static uint32_t gfar_get_tx_csum(struct net_device *dev)
555} 555}
556 556
557static uint32_t gfar_get_msglevel(struct net_device *dev) 557static uint32_t gfar_get_msglevel(struct net_device *dev)
558{ 558{
559 struct gfar_private *priv = netdev_priv(dev); 559 struct gfar_private *priv = netdev_priv(dev);
560 return priv->msg_enable; 560 return priv->msg_enable;
561} 561}
562 562
563static void gfar_set_msglevel(struct net_device *dev, uint32_t data) 563static void gfar_set_msglevel(struct net_device *dev, uint32_t data)
564{ 564{
565 struct gfar_private *priv = netdev_priv(dev); 565 struct gfar_private *priv = netdev_priv(dev);
566 priv->msg_enable = data; 566 priv->msg_enable = data;
567} 567}
568 568
569 569
570struct ethtool_ops gfar_ethtool_ops = { 570const struct ethtool_ops gfar_ethtool_ops = {
571 .get_settings = gfar_gsettings, 571 .get_settings = gfar_gsettings,
572 .set_settings = gfar_ssettings, 572 .set_settings = gfar_ssettings,
573 .get_drvinfo = gfar_gdrvinfo, 573 .get_drvinfo = gfar_gdrvinfo,