diff options
author | Ron Mercer <ron.mercer@qlogic.com> | 2009-10-21 07:07:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-22 00:45:41 -0400 |
commit | a61f80261306ad11d9c8a453307a56417cfeae03 (patch) | |
tree | ea70fb58c1ae338f97c18b8fd353f969d3e07ba8 /drivers/net/qlge/qlge_ethtool.c | |
parent | bc083ce98eeb42205e99495481c8616d30916f6e (diff) |
qlge: Add ethtool register dump function.
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge/qlge_ethtool.c')
-rw-r--r-- | drivers/net/qlge/qlge_ethtool.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/qlge/qlge_ethtool.c b/drivers/net/qlge/qlge_ethtool.c index 019f35fb10c1..62c4af057800 100644 --- a/drivers/net/qlge/qlge_ethtool.c +++ b/drivers/net/qlge/qlge_ethtool.c | |||
@@ -428,6 +428,20 @@ static int ql_phys_id(struct net_device *ndev, u32 data) | |||
428 | 428 | ||
429 | return 0; | 429 | return 0; |
430 | } | 430 | } |
431 | |||
432 | static int ql_get_regs_len(struct net_device *ndev) | ||
433 | { | ||
434 | return sizeof(struct ql_reg_dump); | ||
435 | } | ||
436 | |||
437 | static void ql_get_regs(struct net_device *ndev, | ||
438 | struct ethtool_regs *regs, void *p) | ||
439 | { | ||
440 | struct ql_adapter *qdev = netdev_priv(ndev); | ||
441 | |||
442 | ql_gen_reg_dump(qdev, p); | ||
443 | } | ||
444 | |||
431 | static int ql_get_coalesce(struct net_device *dev, struct ethtool_coalesce *c) | 445 | static int ql_get_coalesce(struct net_device *dev, struct ethtool_coalesce *c) |
432 | { | 446 | { |
433 | struct ql_adapter *qdev = netdev_priv(dev); | 447 | struct ql_adapter *qdev = netdev_priv(dev); |
@@ -555,6 +569,8 @@ const struct ethtool_ops qlge_ethtool_ops = { | |||
555 | .get_drvinfo = ql_get_drvinfo, | 569 | .get_drvinfo = ql_get_drvinfo, |
556 | .get_wol = ql_get_wol, | 570 | .get_wol = ql_get_wol, |
557 | .set_wol = ql_set_wol, | 571 | .set_wol = ql_set_wol, |
572 | .get_regs_len = ql_get_regs_len, | ||
573 | .get_regs = ql_get_regs, | ||
558 | .get_msglevel = ql_get_msglevel, | 574 | .get_msglevel = ql_get_msglevel, |
559 | .set_msglevel = ql_set_msglevel, | 575 | .set_msglevel = ql_set_msglevel, |
560 | .get_link = ethtool_op_get_link, | 576 | .get_link = ethtool_op_get_link, |