third_party/virtualbox/src/VBox/Devices/Network/DevE1000.cpp
/**
 * A callback used by PHY to indicate that the link needs to be updated due to
 * reset of PHY.
 *
 * @param   pPhy        A pointer to phy member of the device state structure.
 * @thread  any
 */
A callback used by PHY to indicate that the link needs to be updated due to
reset of PHY.

@param   pPhy        A pointer to phy member of the device state structure.
@thread  any
A callback used by PHY to indicate that the link needs to be updated due to reset of PHY . @param pPhy A pointer to phy member of the device state structure . @thread any
void e1kPhyLinkResetCallback(PPHY pPhy)
{
    PE1KSTATE pThis = RT_FROM_MEMBER(pPhy, E1KSTATE, phy);
    if (pThis->fCableConnected && (CTRL & CTRL_SLU))
        e1kArmTimer(pThis, pThis->CTX_SUFF(pLUTimer), E1K_INIT_LINKUP_DELAY_US);
}
void e1kPhyLinkResetCallback ( PPHY pPhy ) { PE1KSTATE pThis = RT_FROM_MEMBER ( pPhy , E1KSTATE , phy ) ; if ( pThis -> fCableConnected && ( CTRL & CTRL_SLU ) ) e1kArmTimer ( pThis , pThis -> CTX_SUFF ( pLUTimer ) , E1K_INIT_LINKUP_DELAY_US ) ; }
A callback used by PHY to indicate that the link needs to be updated due to
 reset of PHY.
A callback used by PHY to indicate that the link needs to be updated due to reset of PHY .
/* PHY is aggregated into e1000, get pThis from pPhy. */ /* Make sure we have cable connected and MAC can talk to PHY */