diff options
author | Timur Tabi <timur@codeaurora.org> | 2017-01-09 12:03:12 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-10 13:26:25 -0500 |
commit | 79f664edc1cf51a87d6681514ec89b6da5fef8e1 (patch) | |
tree | bcf5d31193b2b0c6df4b70b51da15beef8af3b56 /drivers/net/ethernet/qualcomm/emac/emac.h | |
parent | 3a89eaa65db68bf53bf92dedc60084f810e1779a (diff) | |
download | linux-79f664edc1cf51a87d6681514ec89b6da5fef8e1.tar.bz2 |
net: qcom/emac: add ethtool support
Add support for some ethtool methods: get/set link settings, get/set
message level, get statistics, get link status, get ring params, get
pause params, and restart autonegotiation.
The code to collect the hardware statistics is moved into its own
function so that it can be used by "get statistics" method.
Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qualcomm/emac/emac.h')
-rw-r--r-- | drivers/net/ethernet/qualcomm/emac/emac.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qualcomm/emac/emac.h b/drivers/net/ethernet/qualcomm/emac/emac.h index 0c76e6cb8c9e..4b8483cc2c7f 100644 --- a/drivers/net/ethernet/qualcomm/emac/emac.h +++ b/drivers/net/ethernet/qualcomm/emac/emac.h @@ -332,4 +332,7 @@ int emac_reinit_locked(struct emac_adapter *adpt); void emac_reg_update32(void __iomem *addr, u32 mask, u32 val); irqreturn_t emac_isr(int irq, void *data); +void emac_set_ethtool_ops(struct net_device *netdev); +void emac_update_hw_stats(struct emac_adapter *adpt); + #endif /* _EMAC_H_ */ |