net/macb: ethtool interface: add register dump feature
authorNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 31 Oct 2012 06:04:56 +0000 (06:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Nov 2012 15:45:58 +0000 (11:45 -0400)
commitd1d1b53d9d28c8e44a72fadae491702b36e2e1fb
tree787fba100363241a9e1a607b8c77978623c74dcf
parent55054a16a5ecf7202e698b07f00ad8e0dadf7d50
net/macb: ethtool interface: add register dump feature

Add macb_get_regs() ethtool function and its helper function:
macb_get_regs_len().
The version field is deduced from the IP revision which gives the
"MACB or GEM" information. An additional version field is reserved.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Reviewed-by: Ben Hutchings <bhutchings@solarflare.com>
Tested-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c
drivers/net/ethernet/cadence/macb.h