Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/sfxge/common/ef10_phy.c
Show First 20 Lines • Show All 277 Lines • ▼ Show 20 Lines | |||||
ef10_phy_reconfigure( | ef10_phy_reconfigure( | ||||
__in efx_nic_t *enp) | __in efx_nic_t *enp) | ||||
{ | { | ||||
efx_port_t *epp = &(enp->en_port); | efx_port_t *epp = &(enp->en_port); | ||||
efx_mcdi_req_t req; | efx_mcdi_req_t req; | ||||
uint8_t payload[MAX(MC_CMD_SET_LINK_IN_LEN, | uint8_t payload[MAX(MC_CMD_SET_LINK_IN_LEN, | ||||
MC_CMD_SET_LINK_OUT_LEN)]; | MC_CMD_SET_LINK_OUT_LEN)]; | ||||
uint32_t cap_mask; | uint32_t cap_mask; | ||||
#if EFSYS_OPT_PHY_LED_CONTROL | |||||
unsigned int led_mode; | unsigned int led_mode; | ||||
#endif | |||||
unsigned int speed; | unsigned int speed; | ||||
boolean_t supported; | boolean_t supported; | ||||
efx_rc_t rc; | efx_rc_t rc; | ||||
if ((rc = efx_mcdi_link_control_supported(enp, &supported)) != 0) | if ((rc = efx_mcdi_link_control_supported(enp, &supported)) != 0) | ||||
goto fail1; | goto fail1; | ||||
if (supported == B_FALSE) | if (supported == B_FALSE) | ||||
goto out; | goto out; | ||||
▲ Show 20 Lines • Show All 340 Lines • Show Last 20 Lines |