xref: /linux/drivers/net/ethernet/microchip/lan743x_ethtool.h (revision 4359a011e259a4608afc7fb3635370c9d4ba5943)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /* Copyright (C) 2018 Microchip Technology Inc. */
3 
4 #ifndef _LAN743X_ETHTOOL_H
5 #define _LAN743X_ETHTOOL_H
6 
7 #include "linux/ethtool.h"
8 
9 #define LAN743X_ETH_REG_VERSION         1
10 
11 enum {
12 	ETH_PRIV_FLAGS,
13 	ETH_ID_REV,
14 	ETH_FPGA_REV,
15 	ETH_STRAP_READ,
16 	ETH_INT_STS,
17 	ETH_HW_CFG,
18 	ETH_PMT_CTL,
19 	ETH_E2P_CMD,
20 	ETH_E2P_DATA,
21 	ETH_MAC_CR,
22 	ETH_MAC_RX,
23 	ETH_MAC_TX,
24 	ETH_FLOW,
25 	ETH_MII_ACC,
26 	ETH_MII_DATA,
27 	ETH_EEE_TX_LPI_REQ_DLY,
28 	ETH_WUCSR,
29 	ETH_WK_SRC,
30 
31 	/* Add new registers above */
32 	MAX_LAN743X_ETH_REGS
33 };
34 
35 extern const struct ethtool_ops lan743x_ethtool_ops;
36 
37 #endif /* _LAN743X_ETHTOOL_H */
38