diff options
author | Raju Lakkaraju <Raju.Lakkaraju@microchip.com> | 2022-06-16 09:42:23 +0530 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-06-16 20:45:48 -0700 |
commit | 9aeb87d2b5a18ff21cfe249dd3f3d53066888c6b (patch) | |
tree | 6bb94002ba686b6966b84d2a87ae2dca0f849200 /drivers/net/ethernet/microchip/lan743x_ethtool.h | |
parent | Merge branch 'net-dsa-realtek-rtl8365mb-improve-handling-of-phy-modes' (diff) | |
download | linux-dev-9aeb87d2b5a18ff21cfe249dd3f3d53066888c6b.tar.xz linux-dev-9aeb87d2b5a18ff21cfe249dd3f3d53066888c6b.zip |
net: lan743x: Add support to LAN743x register dump
Add support to LAN743x common register dump
Signed-off-by: Raju Lakkaraju <Raju.Lakkaraju@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/microchip/lan743x_ethtool.h')
-rw-r--r-- | drivers/net/ethernet/microchip/lan743x_ethtool.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/net/ethernet/microchip/lan743x_ethtool.h b/drivers/net/ethernet/microchip/lan743x_ethtool.h index d0d11a777a58..7f5996a52488 100644 --- a/drivers/net/ethernet/microchip/lan743x_ethtool.h +++ b/drivers/net/ethernet/microchip/lan743x_ethtool.h @@ -6,6 +6,32 @@ #include "linux/ethtool.h" +#define LAN743X_ETH_REG_VERSION 1 + +enum { + ETH_PRIV_FLAGS, + ETH_ID_REV, + ETH_FPGA_REV, + ETH_STRAP_READ, + ETH_INT_STS, + ETH_HW_CFG, + ETH_PMT_CTL, + ETH_E2P_CMD, + ETH_E2P_DATA, + ETH_MAC_CR, + ETH_MAC_RX, + ETH_MAC_TX, + ETH_FLOW, + ETH_MII_ACC, + ETH_MII_DATA, + ETH_EEE_TX_LPI_REQ_DLY, + ETH_WUCSR, + ETH_WK_SRC, + + /* Add new registers above */ + MAX_LAN743X_ETH_REGS +}; + extern const struct ethtool_ops lan743x_ethtool_ops; #endif /* _LAN743X_ETHTOOL_H */ |