Contributors: 2
Author Tokens Token Proportion Commits Commit Proportion
Raju Lakkaraju 177 89.85% 2 50.00%
Bryan Whitehead 20 10.15% 2 50.00%
Total 197 4


/* SPDX-License-Identifier: GPL-2.0+ */
/* Copyright (C) 2018 Microchip Technology Inc. */

#ifndef _LAN743X_ETHTOOL_H
#define _LAN743X_ETHTOOL_H

#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_COMMON_REGS
};

enum {
	/* SGMII Register */
	ETH_SR_VSMMD_DEV_ID1,
	ETH_SR_VSMMD_DEV_ID2,
	ETH_SR_VSMMD_PCS_ID1,
	ETH_SR_VSMMD_PCS_ID2,
	ETH_SR_VSMMD_STS,
	ETH_SR_VSMMD_CTRL,
	ETH_SR_MII_CTRL,
	ETH_SR_MII_STS,
	ETH_SR_MII_DEV_ID1,
	ETH_SR_MII_DEV_ID2,
	ETH_SR_MII_AN_ADV,
	ETH_SR_MII_LP_BABL,
	ETH_SR_MII_EXPN,
	ETH_SR_MII_EXT_STS,
	ETH_SR_MII_TIME_SYNC_ABL,
	ETH_SR_MII_TIME_SYNC_TX_MAX_DLY_LWR,
	ETH_SR_MII_TIME_SYNC_TX_MAX_DLY_UPR,
	ETH_SR_MII_TIME_SYNC_TX_MIN_DLY_LWR,
	ETH_SR_MII_TIME_SYNC_TX_MIN_DLY_UPR,
	ETH_SR_MII_TIME_SYNC_RX_MAX_DLY_LWR,
	ETH_SR_MII_TIME_SYNC_RX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
	ETH_VR_MII_SNPS_CR_DATA,
	ETH_VR_MII_DIG_CTRL2,
	ETH_VR_MII_DIG_ERRCNT,

	/* Add new registers above */
	MAX_LAN743X_ETH_SGMII_REGS
};

extern const struct ethtool_ops lan743x_ethtool_ops;

#endif /* _LAN743X_ETHTOOL_H */