aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe
diff options
context:
space:
mode:
authorEmil Tantilov <emil.s.tantilov@intel.com>2011-02-26 01:40:11 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-03-07 21:06:06 -0500
commita3aeea0ec8d3af854edf7dc983dc8cbe803a43e8 (patch)
tree9953d4b01861113a9c81862919cb523e18612ff1 /drivers/net/ixgbe
parent667c75651025049b39a2b5b83d8fc09a7967cce3 (diff)
ixgbe: Add x540 statistic counter definitions
Add defines to accumulate and display x540 PHY statistic counters on transmit/receive. Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com> Tested-by: Stephen Ko <stephen.s.ko@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ixgbe')
-rw-r--r--drivers/net/ixgbe/ixgbe_common.c9
-rw-r--r--drivers/net/ixgbe/ixgbe_type.h5
2 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_common.c b/drivers/net/ixgbe/ixgbe_common.c
index 85cc3014373..561f666618e 100644
--- a/drivers/net/ixgbe/ixgbe_common.c
+++ b/drivers/net/ixgbe/ixgbe_common.c
@@ -209,6 +209,15 @@ s32 ixgbe_clear_hw_cntrs_generic(struct ixgbe_hw *hw)
209 } 209 }
210 } 210 }
211 211
212 if (hw->mac.type == ixgbe_mac_X540) {
213 if (hw->phy.id == 0)
214 hw->phy.ops.identify(hw);
215 hw->phy.ops.read_reg(hw, 0x3, IXGBE_PCRC8ECL, &i);
216 hw->phy.ops.read_reg(hw, 0x3, IXGBE_PCRC8ECH, &i);
217 hw->phy.ops.read_reg(hw, 0x3, IXGBE_LDPCECL, &i);
218 hw->phy.ops.read_reg(hw, 0x3, IXGBE_LDPCECH, &i);
219 }
220
212 return 0; 221 return 0;
213} 222}
214 223
diff --git a/drivers/net/ixgbe/ixgbe_type.h b/drivers/net/ixgbe/ixgbe_type.h
index 13a45c7c89d..76bf21b8a10 100644
--- a/drivers/net/ixgbe/ixgbe_type.h
+++ b/drivers/net/ixgbe/ixgbe_type.h
@@ -671,6 +671,11 @@
671#define IXGBE_FCOEDWRC 0x0242C /* Number of FCoE DWords Received */ 671#define IXGBE_FCOEDWRC 0x0242C /* Number of FCoE DWords Received */
672#define IXGBE_FCOEPTC 0x08784 /* Number of FCoE Packets Transmitted */ 672#define IXGBE_FCOEPTC 0x08784 /* Number of FCoE Packets Transmitted */
673#define IXGBE_FCOEDWTC 0x08788 /* Number of FCoE DWords Transmitted */ 673#define IXGBE_FCOEDWTC 0x08788 /* Number of FCoE DWords Transmitted */
674#define IXGBE_PCRC8ECL 0x0E810
675#define IXGBE_PCRC8ECH 0x0E811
676#define IXGBE_PCRC8ECH_MASK 0x1F
677#define IXGBE_LDPCECL 0x0E820
678#define IXGBE_LDPCECH 0x0E821
674 679
675/* Management */ 680/* Management */
676#define IXGBE_MAVTV(_i) (0x05010 + ((_i) * 4)) /* 8 of these (0-7) */ 681#define IXGBE_MAVTV(_i) (0x05010 + ((_i) * 4)) /* 8 of these (0-7) */