Add register dump support for SMSC LAN911x/LAN921x
Subsystems (3)
PATCH 1/1 Add register dump support for SMSC LAN911x/LAN921x
This patch adds support for SMSC's LAN911x and LAN921x families of embedded ethernet controllers to ethtool's dump registers (-d) command.
This patch is for use with the smsc911x driver.
Signed-off-by Steve Glendinning <[email protected]>
--- Makefile.am | 3 +- ethtool-util.h | 4 ++ ethtool.c | 2 + smsc911x.c | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 98 insertions(+), 1 deletions(-)
Makefile.am +2 -1
@@ -7,7 +7,8 @@ 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 ixgb.c natsemi.c \ - pcnet32.c realtek.c tg3.c marvell.c vioc.c + pcnet32.c realtek.c tg3.c marvell.c vioc.c \ + smsc911x.c dist-hook: cp $(top_srcdir)/ethtool.spec $(distdir)
ethtool-util.h +4 -0
@@ -56,4 +56,8 @@ int sky2_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs);/* Fabric7 VIOC */ int vioc_dump_regs (struct ethtool_drvinfo *info,struct ethtool_regs *regs); + +/* SMSC LAN911x/LAN921x embedded ethernet controller */ +int smsc911x_dump_regs (struct ethtool_drvinfo *info,struct ethtool_regs *regs); +#endif
ethtool.c +2 -0
@@ -13,6 +13,7 @@* ixgb support by Nicholas Nunley <[email protected]> * amd8111e support by Reeja John <[email protected]> * long arguments by Andi Kleen. +* SMSC LAN911x support by Steve Glendinning <[email protected]> * * TODO: * * no-args => summary of each device (mii-tool style)
@@ -959,6 +960,7 @@ static struct { { "skge", skge_dump_regs }, { "sky2", sky2_dump_regs }, { "vioc", vioc_dump_regs }, + { "smsc911x", smsc911x_dump_regs }, };static int dump_regs (struct ethtool_drvinfo *info,struct ethtool_regs *regs)
smsc911x.c new file +90 -0
90 lines not on this page · raw message
Signature · 1 line
1.4.4.2