linux/include/linux/microchipphy.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (C) 2015 Microchip Technology
 */

#ifndef _MICROCHIPPHY_H
#define _MICROCHIPPHY_H

#define LAN88XX_INT_MASK
#define LAN88XX_INT_MASK_MDINTPIN_EN_
#define LAN88XX_INT_MASK_SPEED_CHANGE_
#define LAN88XX_INT_MASK_LINK_CHANGE_
#define LAN88XX_INT_MASK_FDX_CHANGE_
#define LAN88XX_INT_MASK_AUTONEG_ERR_
#define LAN88XX_INT_MASK_AUTONEG_DONE_
#define LAN88XX_INT_MASK_POE_DETECT_
#define LAN88XX_INT_MASK_SYMBOL_ERR_
#define LAN88XX_INT_MASK_FAST_LINK_FAIL_
#define LAN88XX_INT_MASK_WOL_EVENT_
#define LAN88XX_INT_MASK_EXTENDED_INT_
#define LAN88XX_INT_MASK_RESERVED_
#define LAN88XX_INT_MASK_FALSE_CARRIER_
#define LAN88XX_INT_MASK_LINK_SPEED_DS_
#define LAN88XX_INT_MASK_MASTER_SLAVE_DONE_
#define LAN88XX_INT_MASK_RX__ER_

#define LAN88XX_INT_STS
#define LAN88XX_INT_STS_INT_ACTIVE_
#define LAN88XX_INT_STS_SPEED_CHANGE_
#define LAN88XX_INT_STS_LINK_CHANGE_
#define LAN88XX_INT_STS_FDX_CHANGE_
#define LAN88XX_INT_STS_AUTONEG_ERR_
#define LAN88XX_INT_STS_AUTONEG_DONE_
#define LAN88XX_INT_STS_POE_DETECT_
#define LAN88XX_INT_STS_SYMBOL_ERR_
#define LAN88XX_INT_STS_FAST_LINK_FAIL_
#define LAN88XX_INT_STS_WOL_EVENT_
#define LAN88XX_INT_STS_EXTENDED_INT_
#define LAN88XX_INT_STS_RESERVED_
#define LAN88XX_INT_STS_FALSE_CARRIER_
#define LAN88XX_INT_STS_LINK_SPEED_DS_
#define LAN88XX_INT_STS_MASTER_SLAVE_DONE_
#define LAN88XX_INT_STS_RX_ER_

#define LAN88XX_EXT_PAGE_ACCESS
#define LAN88XX_EXT_PAGE_SPACE_0
#define LAN88XX_EXT_PAGE_SPACE_1
#define LAN88XX_EXT_PAGE_SPACE_2

/* Extended Register Page 1 space */
#define LAN88XX_EXT_MODE_CTRL
#define LAN88XX_EXT_MODE_CTRL_MDIX_MASK_
#define LAN88XX_EXT_MODE_CTRL_AUTO_MDIX_
#define LAN88XX_EXT_MODE_CTRL_MDI_
#define LAN88XX_EXT_MODE_CTRL_MDI_X_

/* MMD 3 Registers */
#define LAN88XX_MMD3_CHIP_ID
#define LAN88XX_MMD3_CHIP_REV

/* Registers specific to the LAN7800/LAN7850 embedded phy */
#define LAN78XX_PHY_LED_MODE_SELECT

/* DSP registers */
#define PHY_ARDENNES_MMD_DEV_3_PHY_CFG
#define PHY_ARDENNES_MMD_DEV_3_PHY_CFG_ZD_DLY_EN_
#define LAN88XX_EXT_PAGE_ACCESS_TR
#define LAN88XX_EXT_PAGE_TR_CR
#define LAN88XX_EXT_PAGE_TR_LOW_DATA
#define LAN88XX_EXT_PAGE_TR_HIGH_DATA

#endif /* _MICROCHIPPHY_H */