Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/e1000/e1000_i210.c
Show First 20 Lines • Show All 768 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* e1000_init_hw_i210 - Init hw for I210/I211 | * e1000_init_hw_i210 - Init hw for I210/I211 | ||||
* @hw: pointer to the HW structure | * @hw: pointer to the HW structure | ||||
* | * | ||||
* Called to initialize hw for i210 hw family. | * Called to initialize hw for i210 hw family. | ||||
**/ | **/ | ||||
s32 e1000_init_hw_i210(struct e1000_hw *hw) | s32 e1000_init_hw_i210(struct e1000_hw *hw) | ||||
{ | { | ||||
struct e1000_mac_info *mac = &hw->mac; | |||||
s32 ret_val; | s32 ret_val; | ||||
DEBUGFUNC("e1000_init_hw_i210"); | DEBUGFUNC("e1000_init_hw_i210"); | ||||
if ((hw->mac.type >= e1000_i210) && | if ((hw->mac.type >= e1000_i210) && | ||||
!(e1000_get_flash_presence_i210(hw))) { | !(e1000_get_flash_presence_i210(hw))) { | ||||
ret_val = e1000_pll_workaround_i210(hw); | ret_val = e1000_pll_workaround_i210(hw); | ||||
if (ret_val != E1000_SUCCESS) | if (ret_val != E1000_SUCCESS) | ||||
return ret_val; | return ret_val; | ||||
} | } | ||||
hw->phy.ops.get_cfg_done = e1000_get_cfg_done_i210; | hw->phy.ops.get_cfg_done = e1000_get_cfg_done_i210; | ||||
/* Initialize identification LED */ | |||||
mac->ops.id_led_init(hw); | |||||
ret_val = e1000_init_hw_82575(hw); | ret_val = e1000_init_hw_82575(hw); | ||||
return ret_val; | return ret_val; | ||||
} | } |