#include <linux/pcs/pcs-xpcs.h>
#include <linux/mdio.h>
#include "pcs-xpcs.h"
#define TXGBE_PMA_MMD …
#define TXGBE_TX_GENCTL1 …
#define TXGBE_TX_GENCTL1_VBOOST_LVL …
#define TXGBE_TX_GENCTL1_VBOOST_EN0 …
#define TXGBE_TX_GEN_CTL2 …
#define TXGBE_TX_GEN_CTL2_TX0_WIDTH(v) …
#define TXGBE_TX_RATE_CTL …
#define TXGBE_TX_RATE_CTL_TX0_RATE(v) …
#define TXGBE_RX_GEN_CTL2 …
#define TXGBE_RX_GEN_CTL2_RX0_WIDTH(v) …
#define TXGBE_RX_GEN_CTL3 …
#define TXGBE_RX_GEN_CTL3_LOS_TRSHLD0 …
#define TXGBE_RX_RATE_CTL …
#define TXGBE_RX_RATE_CTL_RX0_RATE(v) …
#define TXGBE_RX_EQ_ATTN_CTL …
#define TXGBE_RX_EQ_ATTN_LVL0 …
#define TXGBE_RX_EQ_CTL0 …
#define TXGBE_RX_EQ_CTL0_VGA1_GAIN(v) …
#define TXGBE_RX_EQ_CTL0_VGA2_GAIN(v) …
#define TXGBE_RX_EQ_CTL0_CTLE_POLE(v) …
#define TXGBE_RX_EQ_CTL0_CTLE_BOOST(v) …
#define TXGBE_RX_EQ_CTL4 …
#define TXGBE_RX_EQ_CTL4_CONT_OFF_CAN0 …
#define TXGBE_RX_EQ_CTL4_CONT_ADAPT0 …
#define TXGBE_AFE_DFE_ENABLE …
#define TXGBE_DFE_EN_0 …
#define TXGBE_AFE_EN_0 …
#define TXGBE_DFE_TAP_CTL0 …
#define TXGBE_MPLLA_CTL0 …
#define TXGBE_MPLLA_CTL2 …
#define TXGBE_MPLLA_CTL2_DIV16P5_CLK_EN …
#define TXGBE_MPLLA_CTL2_DIV10_CLK_EN …
#define TXGBE_MPLLA_CTL3 …
#define TXGBE_MISC_CTL0 …
#define TXGBE_MISC_CTL0_PLL …
#define TXGBE_MISC_CTL0_CR_PARA_SEL …
#define TXGBE_MISC_CTL0_RX_VREF(v) …
#define TXGBE_VCO_CAL_LD0 …
#define TXGBE_VCO_CAL_REF0 …
static int txgbe_read_pma(struct dw_xpcs *xpcs, int reg)
{ … }
static int txgbe_write_pma(struct dw_xpcs *xpcs, int reg, u16 val)
{ … }
static void txgbe_pma_config_10gbaser(struct dw_xpcs *xpcs)
{ … }
static void txgbe_pma_config_1g(struct dw_xpcs *xpcs)
{ … }
static int txgbe_pcs_poll_power_up(struct dw_xpcs *xpcs)
{ … }
static int txgbe_pma_init_done(struct dw_xpcs *xpcs)
{ … }
static bool txgbe_xpcs_mode_quirk(struct dw_xpcs *xpcs)
{ … }
int txgbe_xpcs_switch_mode(struct dw_xpcs *xpcs, phy_interface_t interface)
{ … }