Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/e1000/e1000_api.c
Show First 20 Lines • Show All 377 Lines • ▼ Show 20 Lines | s32 e1000_set_mac_type(struct e1000_hw *hw) | ||||
case E1000_DEV_ID_I350_FIBER: | case E1000_DEV_ID_I350_FIBER: | ||||
case E1000_DEV_ID_I350_SERDES: | case E1000_DEV_ID_I350_SERDES: | ||||
case E1000_DEV_ID_I350_SGMII: | case E1000_DEV_ID_I350_SGMII: | ||||
case E1000_DEV_ID_I350_DA4: | case E1000_DEV_ID_I350_DA4: | ||||
mac->type = e1000_i350; | mac->type = e1000_i350; | ||||
break; | break; | ||||
case E1000_DEV_ID_I210_COPPER_FLASHLESS: | case E1000_DEV_ID_I210_COPPER_FLASHLESS: | ||||
case E1000_DEV_ID_I210_SERDES_FLASHLESS: | case E1000_DEV_ID_I210_SERDES_FLASHLESS: | ||||
case E1000_DEV_ID_I210_SGMII_FLASHLESS: | |||||
case E1000_DEV_ID_I210_COPPER: | case E1000_DEV_ID_I210_COPPER: | ||||
case E1000_DEV_ID_I210_COPPER_OEM1: | case E1000_DEV_ID_I210_COPPER_OEM1: | ||||
case E1000_DEV_ID_I210_COPPER_IT: | case E1000_DEV_ID_I210_COPPER_IT: | ||||
case E1000_DEV_ID_I210_FIBER: | case E1000_DEV_ID_I210_FIBER: | ||||
case E1000_DEV_ID_I210_SERDES: | case E1000_DEV_ID_I210_SERDES: | ||||
case E1000_DEV_ID_I210_SGMII: | case E1000_DEV_ID_I210_SGMII: | ||||
mac->type = e1000_i210; | mac->type = e1000_i210; | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 867 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 |