Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/e1000/e1000_api.c
Show First 20 Lines • Show All 293 Lines • ▼ Show 20 Lines | s32 e1000_set_mac_type(struct e1000_hw *hw) | ||||
case E1000_DEV_ID_PCH_LPTLP_I218_LM: | case E1000_DEV_ID_PCH_LPTLP_I218_LM: | ||||
case E1000_DEV_ID_PCH_LPTLP_I218_V: | case E1000_DEV_ID_PCH_LPTLP_I218_V: | ||||
case E1000_DEV_ID_PCH_I218_LM2: | case E1000_DEV_ID_PCH_I218_LM2: | ||||
case E1000_DEV_ID_PCH_I218_V2: | case E1000_DEV_ID_PCH_I218_V2: | ||||
case E1000_DEV_ID_PCH_I218_LM3: | case E1000_DEV_ID_PCH_I218_LM3: | ||||
case E1000_DEV_ID_PCH_I218_V3: | case E1000_DEV_ID_PCH_I218_V3: | ||||
mac->type = e1000_pch_lpt; | mac->type = e1000_pch_lpt; | ||||
break; | break; | ||||
case E1000_DEV_ID_PCH_SPT_I219_LM: | |||||
case E1000_DEV_ID_PCH_SPT_I219_V: | |||||
case E1000_DEV_ID_PCH_SPT_I219_LM2: | |||||
case E1000_DEV_ID_PCH_SPT_I219_V2: | |||||
mac->type = e1000_pch_spt; | |||||
break; | |||||
case E1000_DEV_ID_82575EB_COPPER: | case E1000_DEV_ID_82575EB_COPPER: | ||||
case E1000_DEV_ID_82575EB_FIBER_SERDES: | case E1000_DEV_ID_82575EB_FIBER_SERDES: | ||||
case E1000_DEV_ID_82575GB_QUAD_COPPER: | case E1000_DEV_ID_82575GB_QUAD_COPPER: | ||||
mac->type = e1000_82575; | mac->type = e1000_82575; | ||||
break; | break; | ||||
case E1000_DEV_ID_82576: | case E1000_DEV_ID_82576: | ||||
case E1000_DEV_ID_82576_FIBER: | case E1000_DEV_ID_82576_FIBER: | ||||
case E1000_DEV_ID_82576_SERDES: | case E1000_DEV_ID_82576_SERDES: | ||||
▲ Show 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | case e1000_80003es2lan: | ||||
e1000_init_function_pointers_80003es2lan(hw); | e1000_init_function_pointers_80003es2lan(hw); | ||||
break; | break; | ||||
case e1000_ich8lan: | case e1000_ich8lan: | ||||
case e1000_ich9lan: | case e1000_ich9lan: | ||||
case e1000_ich10lan: | case e1000_ich10lan: | ||||
case e1000_pchlan: | case e1000_pchlan: | ||||
case e1000_pch2lan: | case e1000_pch2lan: | ||||
case e1000_pch_lpt: | case e1000_pch_lpt: | ||||
case e1000_pch_spt: | |||||
e1000_init_function_pointers_ich8lan(hw); | e1000_init_function_pointers_ich8lan(hw); | ||||
break; | break; | ||||
case e1000_82575: | case e1000_82575: | ||||
case e1000_82576: | case e1000_82576: | ||||
case e1000_82580: | case e1000_82580: | ||||
case e1000_i350: | case e1000_i350: | ||||
case e1000_i354: | case e1000_i354: | ||||
e1000_init_function_pointers_82575(hw); | e1000_init_function_pointers_82575(hw); | ||||
▲ Show 20 Lines • Show All 464 Lines • ▼ Show 20 Lines | |||||
* in case of previous command is not completed. | * in case of previous command is not completed. | ||||
**/ | **/ | ||||
s32 e1000_mng_enable_host_if(struct e1000_hw *hw) | s32 e1000_mng_enable_host_if(struct e1000_hw *hw) | ||||
{ | { | ||||
return e1000_mng_enable_host_if_generic(hw); | return e1000_mng_enable_host_if_generic(hw); | ||||
} | } | ||||
/** | /** | ||||
* e1000_set_obff_timer - Set Optimized Buffer Flush/Fill timer | |||||
* @hw: pointer to the HW structure | |||||
* @itr: u32 indicating itr value | |||||
* | |||||
* Set the OBFF timer based on the given interrupt rate. | |||||
**/ | |||||
s32 e1000_set_obff_timer(struct e1000_hw *hw, u32 itr) | |||||
{ | |||||
if (hw->mac.ops.set_obff_timer) | |||||
return hw->mac.ops.set_obff_timer(hw, itr); | |||||
return E1000_SUCCESS; | |||||
} | |||||
/** | |||||
* e1000_check_reset_block - Verifies PHY can be reset | * e1000_check_reset_block - Verifies PHY can be reset | ||||
* @hw: pointer to the HW structure | * @hw: pointer to the HW structure | ||||
* | * | ||||
* Checks if the PHY is in a state that can be reset or if manageability | * Checks if the PHY is in a state that can be reset or if manageability | ||||
* has it tied up. This is a function pointer entry point called by drivers. | * has it tied up. This is a function pointer entry point called by drivers. | ||||
**/ | **/ | ||||
s32 e1000_check_reset_block(struct e1000_hw *hw) | s32 e1000_check_reset_block(struct e1000_hw *hw) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 253 Lines • ▼ Show 20 Lines | |||||
* Reads the product board assembly (PBA) number length from the EEPROM and | * Reads the product board assembly (PBA) number length from the EEPROM and | ||||
* stores the value in pba_num. | * stores the value in pba_num. | ||||
* Currently no func pointer exists and all implementations are handled in the | * Currently no func pointer exists and all implementations are handled in the | ||||
* generic version of this function. | * generic version of this function. | ||||
**/ | **/ | ||||
s32 e1000_read_pba_length(struct e1000_hw *hw, u32 *pba_num_size) | s32 e1000_read_pba_length(struct e1000_hw *hw, u32 *pba_num_size) | ||||
{ | { | ||||
return e1000_read_pba_length_generic(hw, pba_num_size); | return e1000_read_pba_length_generic(hw, pba_num_size); | ||||
} | |||||
/** | |||||
* e1000_read_pba_num - Read device part number | |||||
* @hw: pointer to the HW structure | |||||
* @pba_num: pointer to device part number | |||||
* | |||||
* Reads the product board assembly (PBA) number from the EEPROM and stores | |||||
* the value in pba_num. | |||||
* Currently no func pointer exists and all implementations are handled in the | |||||
* generic version of this function. | |||||
**/ | |||||
s32 e1000_read_pba_num(struct e1000_hw *hw, u32 *pba_num) | |||||
{ | |||||
return e1000_read_pba_num_generic(hw, pba_num); | |||||
} | } | ||||
/** | /** | ||||
* e1000_validate_nvm_checksum - Verifies NVM (EEPROM) checksum | * e1000_validate_nvm_checksum - Verifies NVM (EEPROM) checksum | ||||
* @hw: pointer to the HW structure | * @hw: pointer to the HW structure | ||||
* | * | ||||
* Validates the NVM checksum is correct. This is a function pointer entry | * Validates the NVM checksum is correct. This is a function pointer entry | ||||
* point called by drivers. | * point called by drivers. | ||||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |