Skip to contentSkip to conversation

ethtool: add ixgb register dump support

PATCH Applied Auke Kok 2 participants 2 messages Sep 19, 2006

Subsystems (3)
lore
Share & tools
lore

Auke Kok

author
#0 lore raw

PATCH 1/1 ethtool: add ixgb register dump support

From: Nicholas Nunley <[email protected]>

This adds support for dumping ixgb registers in readable format.

---

 Makefile.am    |    4 +-
 ethtool-util.h |    3 +
 ethtool.c      |    2 +
 ixgb.c         |  147 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 154 insertions(+), 2 deletions(-)
Makefile.am +2 -2
index cf4ebc5..c78eecf 100644
@@ -6,8 +6,8 @@ EXTRA_DIST = ethtool.8 ethtool.spec.in a
 sbin_PROGRAMS = ethtool
 ethtool_SOURCES = ethtool.c ethtool-copy.h ethtool-util.h	\
 		  amd8111e.c de2104x.c e100.c e1000.c		\
-		  fec_8xx.c ibm_emac.c natsemi.c pcnet32.c	\
-		  realtek.c tg3.c skge.c
+		  fec_8xx.c ibm_emac.c ixgb.c natsemi.c		\
+		  pcnet32.c realtek.c tg3.c skge.c
 
 dist-hook:
 	cp $(top_srcdir)/ethtool.spec $(distdir)
ethtool-util.h +3 -0
index 52c43bf..0e6fce2 100644
@@ -42,6 +42,9 @@ int fec_8xx_dump_regs(struct ethtool_drv
 /* PowerPC 4xx on-chip Ethernet controller */
 int ibm_emac_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs);
 
+/* Intel(R) PRO/10GBe Gigabit Adapter Family */
+int ixgb_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs);
+
 /* Broadcom Tigon3 Ethernet controller */
 int tg3_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs);
 
ethtool.c +2 -0
index 87e22ab..02b9fb7 100644
@@ -10,6 +10,7 @@
  * ETHTOOL_PHYS_ID support by Chris Leech <[email protected]>
  * e1000 support by Scott Feldman <[email protected]>
  * e100 support by Wen Tao <[email protected]>
+ * ixgb support by Nicholas Nunley <[email protected]>
  * amd8111e support by Reeja John <[email protected]>
  * long arguments by Andi Kleen.
  *
@@ -937,6 +938,7 @@ static struct {
 	{ "r8169", realtek_dump_regs },
 	{ "de2104x", de2104x_dump_regs },
 	{ "e1000", e1000_dump_regs },
+	{ "ixgb", ixgb_dump_regs },
 	{ "natsemi", natsemi_dump_regs },
 	{ "e100", e100_dump_regs },
 	{ "amd8111e", amd8111e_dump_regs },
ixgb.c new file +147 -0

147 lines not on this page · raw message