stmmac: support Reg_9 to get HW level information
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Mon, 30 Nov 2015 10:33:10 +0000 (11:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Dec 2015 21:06:14 +0000 (16:06 -0500)
commit2f7a791c92a6226cf6d9e2213a89a49da72fa574
tree79ab1accf8f6f361494d9e33319b3d26aed42195
parent88308c01a2c33bbab73abb3deac54b30f9754914
stmmac: support Reg_9 to get HW level information

For GMAC newer than 3.40a there is a new register (Reg_9) that provides the
status of all modules of the transmit and receive paths and FIFO status.
These can be exposed via ethtool.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/dwmac1000.h
drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c