#include <sys/cdefs.h>
#include <cxgb_include.h>
Go to the source code of this file.
|
| __FBSDID ("$FreeBSD$") |
|
static int | tn1010_reset (struct cphy *phy, int wait) |
|
static int | tn1010_power_down (struct cphy *phy, int enable) |
|
static int | tn1010_autoneg_enable (struct cphy *phy) |
|
static int | tn1010_autoneg_restart (struct cphy *phy) |
|
static int | tn1010_advertise (struct cphy *phy, unsigned int advert) |
|
static int | tn1010_get_link_status (struct cphy *phy, int *link_state, int *speed, int *duplex, int *fc) |
|
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) |
|
◆ ADVERTISE_10000FULL
#define ADVERTISE_10000FULL (1 << 12) |
◆ ADVERTISE_ENPAGE
#define ADVERTISE_ENPAGE (1 << 12) |
◆ ADVERTISE_LOOP_TIMING
#define ADVERTISE_LOOP_TIMING (1 << 0) |
◆ F_ANEG_MASTER
#define F_ANEG_MASTER (1 << 5) |
◆ F_ANEG_SPEED_1G
#define F_ANEG_SPEED_1G (1 << 4) |
◆ F_LINK_STAT
#define F_LINK_STAT (1 << 3) |
◆ F_PCS_BLK_LOCK
#define F_PCS_BLK_LOCK (1 << 1) |
◆ F_PMD_SIGNAL_OK
#define F_PMD_SIGNAL_OK (1 << 2) |
◆ F_XS_LANE_ALIGN_STAT
#define F_XS_LANE_ALIGN_STAT (1 << 0) |
◆ G_ANEG_STAT
◆ M_ANEG_STAT
◆ msleep
◆ S_ANEG_STAT
◆ anonymous enum
◆ anonymous enum
Enumerator |
---|
ANEG_ADVER | |
ANEG_LPA | |
ANEG_10G_CTRL | |
ANEG_10G_STAT | |
Definition at line 45 of file cxgb_tn1010.c.
◆ anonymous enum
Enumerator |
---|
ANEG_IN_PROGR | |
ANEG_COMPLETE | |
ANEG_FAILED | |
Definition at line 68 of file cxgb_tn1010.c.
◆ __FBSDID()
◆ t3_tn1010_phy_prep()
int t3_tn1010_phy_prep |
( |
pinfo_t * |
pinfo, |
|
|
int |
phy_addr, |
|
|
const struct mdio_ops * |
mdio_ops |
|
) |
| |
◆ tn1010_advertise()
static int tn1010_advertise |
( |
struct cphy * |
phy, |
|
|
unsigned int |
advert |
|
) |
| |
|
static |
Definition at line 112 of file cxgb_tn1010.c.
References ADVERTISE_10000FULL, ADVERTISE_CSMA, ADVERTISE_ENPAGE, ADVERTISE_LOOP_TIMING, ADVERTISE_NPAGE, ADVERTISE_PAUSE_ASYM, ADVERTISE_PAUSE_CAP, ADVERTISED_10000baseT_Full, ADVERTISED_1000baseT_Full, ADVERTISED_Asym_Pause, ADVERTISED_Pause, ANEG_10G_CTRL, ANEG_ADVER, MDIO_DEV_ANEG, mdio_write(), and phy.
◆ tn1010_autoneg_enable()
static int tn1010_autoneg_enable |
( |
struct cphy * |
phy | ) |
|
|
static |
◆ tn1010_autoneg_restart()
static int tn1010_autoneg_restart |
( |
struct cphy * |
phy | ) |
|
|
static |
◆ tn1010_get_link_status()
static int tn1010_get_link_status |
( |
struct cphy * |
phy, |
|
|
int * |
link_state, |
|
|
int * |
speed, |
|
|
int * |
duplex, |
|
|
int * |
fc |
|
) |
| |
|
static |
Definition at line 133 of file cxgb_tn1010.c.
References ADVERTISE_PAUSE_ASYM, ADVERTISE_PAUSE_CAP, ANEG_ADVER, ANEG_COMPLETE, ANEG_LPA, DUPLEX_FULL, F_ANEG_SPEED_1G, F_LINK_STAT, G_ANEG_STAT, MDIO_DEV_ANEG, MDIO_DEV_VEND1, mdio_read(), PAUSE_RX, PAUSE_TX, phy, PHY_LINK_DOWN, PHY_LINK_UP, SPEED_1000, SPEED_10000, and TN1010_VEND1_STAT.
◆ tn1010_power_down()
static int tn1010_power_down |
( |
struct cphy * |
phy, |
|
|
int |
enable |
|
) |
| |
|
static |
◆ tn1010_reset()
static int tn1010_reset |
( |
struct cphy * |
phy, |
|
|
int |
wait |
|
) |
| |
|
static |
◆ tn1010_set_speed_duplex()
static int tn1010_set_speed_duplex |
( |
struct cphy * |
phy, |
|
|
int |
speed, |
|
|
int |
duplex |
|
) |
| |
|
static |
◆ tn1010_ops
Initial value:= {
}
int t3_phy_lasi_intr_handler(struct cphy *phy)
int t3_phy_lasi_intr_clear(struct cphy *phy)
int t3_phy_lasi_intr_enable(struct cphy *phy)
int t3_phy_lasi_intr_disable(struct cphy *phy)
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)
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 int tn1010_set_speed_duplex(struct cphy *phy, int speed, int duplex)
Definition at line 199 of file cxgb_tn1010.c.
Referenced by t3_tn1010_phy_prep().