aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sky2.h
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-07-09 18:33:35 -0400
committerJeff Garzik <jeff@garzik.org>2007-07-10 12:22:28 -0400
commit3cf267539f1f133eb6ba63d074da18cb58cdf89a (patch)
treec35a52a717702fdade349c1af0d7013bb7c51115 /drivers/net/sky2.h
parent55d7b4e6ed6ad3ec5e5e30b3b4515a0a6a53e344 (diff)
sky2: debug interface
Add an optional debug interface for displaying state of transmit/receive rings. Creates a file debugfs/sky2/ethX for each device that is up. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/sky2.h')
-rw-r--r--drivers/net/sky2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/sky2.h b/drivers/net/sky2.h
index 8df4643493d1..dce4d276d443 100644
--- a/drivers/net/sky2.h
+++ b/drivers/net/sky2.h
@@ -1998,6 +1998,7 @@ struct sky2_port {
1998 struct sky2_tx_le *tx_le; 1998 struct sky2_tx_le *tx_le;
1999 u16 tx_cons; /* next le to check */ 1999 u16 tx_cons; /* next le to check */
2000 u16 tx_prod; /* next le to use */ 2000 u16 tx_prod; /* next le to use */
2001 u16 tx_next; /* debug only */
2001 u32 tx_addr64; 2002 u32 tx_addr64;
2002 u16 tx_pending; 2003 u16 tx_pending;
2003 u16 tx_last_mss; 2004 u16 tx_last_mss;
@@ -2028,6 +2029,9 @@ struct sky2_port {
2028 enum flow_control flow_mode; 2029 enum flow_control flow_mode;
2029 enum flow_control flow_status; 2030 enum flow_control flow_status;
2030 2031
2032#ifdef CONFIG_SKY2_DEBUG
2033 struct dentry *debugfs;
2034#endif
2031 struct net_device_stats net_stats; 2035 struct net_device_stats net_stats;
2032 2036
2033}; 2037};