diff options
author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-10-31 10:04:56 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-01 19:45:58 +0400 |
commit | d1d1b53d9d28c8e44a72fadae491702b36e2e1fb (patch) | |
tree | 787fba100363241a9e1a607b8c77978623c74dcf /drivers/net/ethernet/cadence/macb.h | |
parent | 55054a16a5ecf7202e698b07f00ad8e0dadf7d50 (diff) | |
download | linux-d1d1b53d9d28c8e44a72fadae491702b36e2e1fb.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/cadence/macb.h')
-rw-r--r-- | drivers/net/ethernet/cadence/macb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h index 024a270a792a..232dca6b5839 100644 --- a/drivers/net/ethernet/cadence/macb.h +++ b/drivers/net/ethernet/cadence/macb.h @@ -10,6 +10,9 @@ #ifndef _MACB_H #define _MACB_H +#define MACB_GREGS_NBR 16 +#define MACB_GREGS_VERSION 1 + /* MACB register offsets */ #define MACB_NCR 0x0000 #define MACB_NCFGR 0x0004 |