Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/igc/igc_api.c
Show First 20 Lines • Show All 530 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
if (hw->phy.ops.reset) | if (hw->phy.ops.reset) | ||||
return hw->phy.ops.reset(hw); | return hw->phy.ops.reset(hw); | ||||
return IGC_SUCCESS; | return IGC_SUCCESS; | ||||
} | } | ||||
/** | /** | ||||
* igc_phy_commit - Soft PHY reset | |||||
* @hw: pointer to the HW structure | |||||
* | |||||
* Performs a soft PHY reset on those that apply. This is a function pointer | |||||
* entry point called by drivers. | |||||
**/ | |||||
s32 igc_phy_commit(struct igc_hw *hw) | |||||
{ | |||||
if (hw->phy.ops.commit) | |||||
return hw->phy.ops.commit(hw); | |||||
return IGC_SUCCESS; | |||||
} | |||||
/** | |||||
* igc_set_d0_lplu_state - Sets low power link up state for D0 | * igc_set_d0_lplu_state - Sets low power link up state for D0 | ||||
* @hw: pointer to the HW structure | * @hw: pointer to the HW structure | ||||
* @active: boolean used to enable/disable lplu | * @active: boolean used to enable/disable lplu | ||||
* | * | ||||
* Success returns 0, Failure returns 1 | * Success returns 0, Failure returns 1 | ||||
* | * | ||||
* The low power link up (lplu) state is set to the power management level D0 | * The low power link up (lplu) state is set to the power management level D0 | ||||
* and SmartSpeed is disabled when active is true, else clear lplu for D0 | * and SmartSpeed is disabled when active is true, else clear lplu for D0 | ||||
▲ Show 20 Lines • Show All 174 Lines • Show Last 20 Lines |