Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/sfxge/common/efx_port.c
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | efx_port_init( | ||||
/* Configure the MAC */ | /* Configure the MAC */ | ||||
if ((rc = efx_mac_select(enp)) != 0) | if ((rc = efx_mac_select(enp)) != 0) | ||||
goto fail1; | goto fail1; | ||||
epp->ep_emop->emo_reconfigure(enp); | epp->ep_emop->emo_reconfigure(enp); | ||||
/* Pick up current phy capababilities */ | /* Pick up current phy capababilities */ | ||||
efx_port_poll(enp, NULL); | (void) efx_port_poll(enp, NULL); | ||||
/* | /* | ||||
* Turn on the PHY if available, otherwise reset it, and | * Turn on the PHY if available, otherwise reset it, and | ||||
* reconfigure it with the current configuration. | * reconfigure it with the current configuration. | ||||
*/ | */ | ||||
if (epop->epo_power != NULL) { | if (epop->epo_power != NULL) { | ||||
if ((rc = epop->epo_power(enp, B_TRUE)) != 0) | if ((rc = epop->epo_power(enp, B_TRUE)) != 0) | ||||
goto fail2; | goto fail2; | ||||
▲ Show 20 Lines • Show All 182 Lines • Show Last 20 Lines |