FreeBSD kernel CXGB device code
|
Go to the source code of this file.
Macros | |
#define | msleep t3_os_sleep |
#define | AQBIT(x) (1 << (0x##x)) |
#define | ADV_1G_FULL AQBIT(f) |
#define | ADV_1G_HALF AQBIT(e) |
#define | ADV_10G_FULL AQBIT(c) |
#define | AQ_WRITE_REGS(phy, regs) |
#define | AQ_READ_REGS(phy, regs) |
Enumerations | |
enum | { AQ_LINK_STAT = 0xe800 , AQ_XAUI_RX_CFG = 0xc400 , AQ_XAUI_KX_CFG = 0xc440 , AQ_XAUI_TX_CFG = 0xe400 , AQ_100M_CTRL = 0x0010 , AQ_10G_CTRL = 0x0020 , AQ_1G_CTRL = 0xc400 , AQ_ANEG_STAT = 0xc800 , AQ_FW_VERSION = 0x0020 , AQ_THERMAL_THR = 0xc421 , AQ_THERMAL1 = 0xc820 , AQ_THERMAL2 = 0xc821 , AQ_IFLAG_GLOBAL = 0xfc00 , AQ_IMASK_GLOBAL = 0xff00 } |
Functions | |
__FBSDID ("$FreeBSD$") | |
static int | aq100x_temperature (struct cphy *phy) |
static int | aq100x_set_defaults (struct cphy *phy) |
static int | aq100x_reset (struct cphy *phy, int wait) |
static int | aq100x_intr_enable (struct cphy *phy) |
static int | aq100x_intr_disable (struct cphy *phy) |
static int | aq100x_intr_clear (struct cphy *phy) |
static int | aq100x_vendor_intr (struct cphy *phy, int *rc) |
static int | aq100x_intr_handler (struct cphy *phy) |
static int | aq100x_power_down (struct cphy *phy, int off) |
static int | aq100x_autoneg_enable (struct cphy *phy) |
static int | aq100x_autoneg_restart (struct cphy *phy) |
static int | aq100x_advertise (struct cphy *phy, unsigned int advertise_map) |
static int | aq100x_set_loopback (struct cphy *phy, int mmd, int dir, int enable) |
static int | aq100x_set_speed_duplex (struct cphy *phy, int speed, int duplex) |
static int | aq100x_get_link_status (struct cphy *phy, int *link_state, int *speed, int *duplex, int *fc) |
int | t3_aq100x_phy_prep (pinfo_t *pinfo, int phy_addr, const struct mdio_ops *mdio_ops) |
Variables | |
static struct cphy_ops | aq100x_ops |
#define ADV_10G_FULL AQBIT(c) |
Definition at line 66 of file cxgb_aq100x.c.
#define ADV_1G_FULL AQBIT(f) |
Definition at line 64 of file cxgb_aq100x.c.
#define ADV_1G_HALF AQBIT(e) |
Definition at line 65 of file cxgb_aq100x.c.
#define AQ_READ_REGS | ( | phy, | |
regs | |||
) |
Definition at line 74 of file cxgb_aq100x.c.
#define AQ_WRITE_REGS | ( | phy, | |
regs | |||
) |
Definition at line 68 of file cxgb_aq100x.c.
#define AQBIT | ( | x | ) | (1 << (0x##x)) |
Definition at line 63 of file cxgb_aq100x.c.
#define msleep t3_os_sleep |
Definition at line 37 of file cxgb_aq100x.c.
anonymous enum |
Definition at line 39 of file cxgb_aq100x.c.
__FBSDID | ( | "$FreeBSD$" | ) |
|
static |
Definition at line 276 of file cxgb_aq100x.c.
References ADV_10G_FULL, ADV_1G_FULL, ADV_1G_HALF, ADVERTISE_100FULL, ADVERTISE_100HALF, ADVERTISE_PAUSE_ASYM, ADVERTISE_PAUSE_CAP, ADVERTISED_10000baseT_Full, ADVERTISED_1000baseT_Full, ADVERTISED_1000baseT_Half, ADVERTISED_100baseT_Full, ADVERTISED_100baseT_Half, ADVERTISED_Asym_Pause, ADVERTISED_Pause, AQ_100M_CTRL, AQ_10G_CTRL, AQ_1G_CTRL, MDIO_DEV_ANEG, phy, and t3_mdio_change_bits().
|
static |
Definition at line 257 of file cxgb_aq100x.c.
References aq100x_power_down(), BMCR_ANENABLE, BMCR_ANRESTART, MDIO_DEV_ANEG, phy, and t3_mdio_change_bits().
Referenced by aq100x_autoneg_restart().
|
static |
Definition at line 270 of file cxgb_aq100x.c.
References aq100x_autoneg_enable(), and phy.
|
static |
Definition at line 354 of file cxgb_aq100x.c.
References ADVERTISE_PAUSE_ASYM, ADVERTISE_PAUSE_CAP, AQ_100M_CTRL, AQ_ANEG_STAT, AQ_LINK_STAT, BMCR_ANENABLE, BMCR_SPEED100, BMCR_SPEED1000, DUPLEX_FULL, DUPLEX_HALF, MDIO_DEV_ANEG, MDIO_DEV_PMA_PMD, mdio_read(), PAUSE_RX, PAUSE_TX, phy, PHY_LINK_DOWN, PHY_LINK_UP, SPEED_10, SPEED_100, SPEED_1000, and SPEED_10000.
|
static |
Definition at line 152 of file cxgb_aq100x.c.
References AQ_IMASK_GLOBAL, AQ_READ_REGS, MDIO_DEV_VEND1, and phy.
|
static |
Definition at line 134 of file cxgb_aq100x.c.
References AQ_IMASK_GLOBAL, AQ_WRITE_REGS, MDIO_DEV_VEND1, and phy.
|
static |
Definition at line 116 of file cxgb_aq100x.c.
References AQ_IMASK_GLOBAL, AQ_WRITE_REGS, AQBIT, MDIO_DEV_VEND1, and phy.
|
static |
Definition at line 204 of file cxgb_aq100x.c.
References cphy::adapter, cphy::addr, aq100x_vendor_intr(), AQ_IFLAG_GLOBAL, AQBIT, CH_WARN, MDIO_DEV_VEND1, mdio_read(), and phy.
|
static |
Definition at line 228 of file cxgb_aq100x.c.
References cphy::adapter, cphy::addr, CH_WARN, MDIO_DEV_PMA_PMD, mdio_read(), msleep, phy, and t3_mdio_change_bits().
Referenced by aq100x_autoneg_enable().
|
static |
Definition at line 106 of file cxgb_aq100x.c.
References aq100x_set_defaults(), MDIO_DEV_PMA_PMD, phy, and t3_phy_reset().
|
static |
Definition at line 100 of file cxgb_aq100x.c.
References AQ_THERMAL_THR, MDIO_DEV_VEND1, mdio_write(), and phy.
Referenced by aq100x_reset(), and t3_aq100x_phy_prep().
|
static |
Definition at line 317 of file cxgb_aq100x.c.
References BMCR_LOOPBACK, MDIO_DEV_PMA_PMD, phy, and t3_mdio_change_bits().
|
static |
Definition at line 324 of file cxgb_aq100x.c.
References BMCR_ANENABLE, BMCR_ANRESTART, BMCR_SPEED100, BMCR_SPEED1000, DUPLEX_FULL, MDIO_DEV_ANEG, MDIO_DEV_PMA_PMD, phy, SPEED_100, SPEED_1000, SPEED_10000, and t3_mdio_change_bits().
|
static |
Definition at line 85 of file cxgb_aq100x.c.
References AQ_THERMAL1, AQ_THERMAL2, MDIO_DEV_VEND1, mdio_read(), and phy.
Referenced by aq100x_vendor_intr().
|
static |
Definition at line 168 of file cxgb_aq100x.c.
References A_T3DBG_GPIO_EN, cphy::adapter, cphy::addr, aq100x_temperature(), AQBIT, CH_WARN, cphy_cause_alarm, F_GPIO10_OUT_VAL, F_GPIO6_OUT_VAL, MDIO_DEV_VEND1, mdio_read(), phy, and t3_set_reg_field().
Referenced by aq100x_intr_handler().
Definition at line 465 of file cxgb_aq100x.c.
References A_T3DBG_GPIO_EN, port_info::adapter, aq100x_ops, aq100x_set_defaults(), AQ_FW_VERSION, AQ_XAUI_KX_CFG, AQ_XAUI_RX_CFG, AQ_XAUI_TX_CFG, CH_WARN, cphy_init(), F_GPIO10_OUT_VAL, F_GPIO6_OUT_VAL, MDIO_DEV_PMA_PMD, MDIO_DEV_VEND1, MDIO_DEV_XGXS, mdio_read(), msleep, phy, port_info::phy, cphy::pinfo, SUPPORTED_10000baseT_Full, SUPPORTED_1000baseT_Full, SUPPORTED_AUI, SUPPORTED_Autoneg, SUPPORTED_MISC_IRQ, SUPPORTED_TP, and t3_set_reg_field().
|
static |
Definition at line 449 of file cxgb_aq100x.c.
Referenced by t3_aq100x_phy_prep().