Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/igc/igc_i225.c
| Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | static s32 igc_init_phy_params_i225(struct igc_hw *hw) | ||||
| * other than the default of zero, which causes the PHY ID read to | * other than the default of zero, which causes the PHY ID read to | ||||
| * access something other than the intended register. | * access something other than the intended register. | ||||
| */ | */ | ||||
| ret_val = hw->phy.ops.reset(hw); | ret_val = hw->phy.ops.reset(hw); | ||||
| if (ret_val) | if (ret_val) | ||||
| goto out; | goto out; | ||||
| ret_val = igc_get_phy_id(hw); | ret_val = igc_get_phy_id(hw); | ||||
| /* Verify phy id and set remaining function pointers */ | |||||
| switch (phy->id) { | |||||
| case I225_I_PHY_ID: | |||||
| default: | |||||
| phy->type = igc_phy_i225; | phy->type = igc_phy_i225; | ||||
| phy->ops.set_d0_lplu_state = igc_set_d0_lplu_state_i225; | |||||
| phy->ops.set_d3_lplu_state = igc_set_d3_lplu_state_i225; | |||||
| /* TODO - complete with GPY PHY information */ | |||||
| break; | |||||
| } | |||||
| out: | out: | ||||
| return ret_val; | return ret_val; | ||||
| } | } | ||||
| /** | /** | ||||
| * igc_reset_hw_i225 - Reset hardware | * igc_reset_hw_i225 - Reset hardware | ||||
| * @hw: pointer to the HW structure | * @hw: pointer to the HW structure | ||||
| ▲ Show 20 Lines • Show All 1,036 Lines • Show Last 20 Lines | |||||