37#define msleep t3_os_sleep
52#define ADVERTISE_ENPAGE (1 << 12)
53#define ADVERTISE_10000FULL (1 << 12)
54#define ADVERTISE_LOOP_TIMING (1 << 0)
57#define F_XS_LANE_ALIGN_STAT (1 << 0)
58#define F_PCS_BLK_LOCK (1 << 1)
59#define F_PMD_SIGNAL_OK (1 << 2)
60#define F_LINK_STAT (1 << 3)
61#define F_ANEG_SPEED_1G (1 << 4)
62#define F_ANEG_MASTER (1 << 5)
65#define M_ANEG_STAT 0x3
66#define G_ANEG_STAT(x) (((x) >> S_ANEG_STAT) & M_ANEG_STAT)
87 BMCR_PDOWN, enable ? BMCR_PDOWN : 0);
134 int *speed,
int *duplex,
int *fc)
136 unsigned int status, lpa, adv;
137 int err, sp = -1, pause = 0;
183#ifdef C99_NOT_SUPPORTED
static int mdio_read(struct cphy *phy, int mmd, int reg, unsigned int *valp)
int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear, unsigned int set)
int t3_phy_reset(struct cphy *phy, int mmd, int wait)
int t3_phy_lasi_intr_handler(struct cphy *phy)
int t3_phy_lasi_intr_clear(struct cphy *phy)
static int mdio_write(struct cphy *phy, int mmd, int reg, unsigned int val)
int t3_phy_lasi_intr_enable(struct cphy *phy)
int t3_phy_lasi_intr_disable(struct cphy *phy)
static void cphy_init(struct cphy *phy, adapter_t *adapter, pinfo_t *pinfo, int phy_addr, struct cphy_ops *phy_ops, const struct mdio_ops *mdio_ops, unsigned int caps, const char *desc)
#define ADVERTISED_1000baseT_Full
#define ADVERTISED_10000baseT_Full
#define ADVERTISE_PAUSE_ASYM
#define SUPPORTED_10000baseT_Full
#define SUPPORTED_Autoneg
#define SUPPORTED_1000baseT_Full
#define ADVERTISED_Asym_Pause
#define ADVERTISE_PAUSE_CAP
#define ADVERTISE_10000FULL
static int tn1010_get_link_status(struct cphy *phy, int *link_state, int *speed, int *duplex, int *fc)
static int tn1010_autoneg_enable(struct cphy *phy)
#define ADVERTISE_LOOP_TIMING
static int tn1010_autoneg_restart(struct cphy *phy)
static int tn1010_reset(struct cphy *phy, int wait)
static int tn1010_advertise(struct cphy *phy, unsigned int advert)
static int tn1010_power_down(struct cphy *phy, int enable)
static struct cphy_ops tn1010_ops
static int tn1010_set_speed_duplex(struct cphy *phy, int speed, int duplex)
int t3_tn1010_phy_prep(pinfo_t *pinfo, int phy_addr, const struct mdio_ops *mdio_ops)
int(* reset)(struct cphy *phy, int wait)