src/dpdk/drivers/net/ixgbe/base/ixgbe_x550.c
s32 ixgbe_init_ops_X550(struct ixgbe_hw *hw)
{
	struct ixgbe_mac_info *mac = &hw->mac;
	struct ixgbe_eeprom_info *eeprom = &hw->eeprom;
	s32 ret_val;

	DEBUGFUNC("ixgbe_init_ops_X550");

	ret_val = ixgbe_init_ops_X540(hw);
	mac->ops.dmac_config = ixgbe_dmac_config_X550;
	mac->ops.dmac_config_tcs = ixgbe_dmac_config_tcs_X550;
	mac->ops.dmac_update_tcs = ixgbe_dmac_update_tcs_X550;
	mac->ops.setup_eee = NULL;
	mac->ops.set_source_address_pruning =
			ixgbe_set_source_address_pruning_X550;
	mac->ops.set_ethertype_anti_spoofing =
			ixgbe_set_ethertype_anti_spoofing_X550;

	mac->ops.get_rtrup2tc = ixgbe_dcb_get_rtrup2tc_generic;
	eeprom->ops.init_params = ixgbe_init_eeprom_params_X550;
	eeprom->ops.calc_checksum = ixgbe_calc_eeprom_checksum_X550;
	eeprom->ops.read = ixgbe_read_ee_hostif_X550;
	eeprom->ops.read_buffer = ixgbe_read_ee_hostif_buffer_X550;
	eeprom->ops.write = ixgbe_write_ee_hostif_X550;
	eeprom->ops.write_buffer = ixgbe_write_ee_hostif_buffer_X550;
	eeprom->ops.update_checksum = ixgbe_update_eeprom_checksum_X550;
	eeprom->ops.validate_checksum = ixgbe_validate_eeprom_checksum_X550;

	mac->ops.disable_mdd = ixgbe_disable_mdd_X550;
	mac->ops.enable_mdd = ixgbe_enable_mdd_X550;
	mac->ops.mdd_event = ixgbe_mdd_event_X550;
	mac->ops.restore_mdd_vf = ixgbe_restore_mdd_vf_X550;
	mac->ops.fw_recovery_mode = ixgbe_fw_recovery_mode_X550;
	mac->ops.disable_rx = ixgbe_disable_rx_x550;
	/* Manageability interface */
	mac->ops.set_fw_drv_ver = ixgbe_set_fw_drv_ver_x550;
	switch (hw->device_id) {
	case IXGBE_DEV_ID_X550EM_X_1G_T:
		hw->mac.ops.led_on = NULL;
		hw->mac.ops.led_off = NULL;
		break;
	case IXGBE_DEV_ID_X550EM_X_10G_T:
	case IXGBE_DEV_ID_X550EM_A_10G_T:
		hw->mac.ops.led_on = ixgbe_led_on_t_X550em;
		hw->mac.ops.led_off = ixgbe_led_off_t_X550em;
		break;
	default:
		break;
	}
	return ret_val;
}
/**
 * ixgbe_init_ops_X550 - Inits func ptrs and MAC type
 * @hw: pointer to hardware structure
 *
 * Initialize the function pointers and assign the MAC type for X550.
 * Does not touch the hardware.
 **/
Inits func ptrs and MAC type
@hw: pointer to hardware structure

Initialize the function pointers and assign the MAC type for X550.
Does not touch the hardware.
Inits func ptrs and MAC type @hw : pointer to hardware structure Initialize the function pointers and assign the MAC type for X550 . Does not touch the hardware .
s32 ixgbe_init_ops_X550(struct ixgbe_hw *hw)
{
	struct ixgbe_mac_info *mac = &hw->mac;
	struct ixgbe_eeprom_info *eeprom = &hw->eeprom;
	s32 ret_val;
	DEBUGFUNC("ixgbe_init_ops_X550");
	ret_val = ixgbe_init_ops_X540(hw);
	mac->ops.dmac_config = ixgbe_dmac_config_X550;
	mac->ops.dmac_config_tcs = ixgbe_dmac_config_tcs_X550;
	mac->ops.dmac_update_tcs = ixgbe_dmac_update_tcs_X550;
	mac->ops.setup_eee = NULL;
	mac->ops.set_source_address_pruning =
			ixgbe_set_source_address_pruning_X550;
	mac->ops.set_ethertype_anti_spoofing =
			ixgbe_set_ethertype_anti_spoofing_X550;
	mac->ops.get_rtrup2tc = ixgbe_dcb_get_rtrup2tc_generic;
	eeprom->ops.init_params = ixgbe_init_eeprom_params_X550;
	eeprom->ops.calc_checksum = ixgbe_calc_eeprom_checksum_X550;
	eeprom->ops.read = ixgbe_read_ee_hostif_X550;
	eeprom->ops.read_buffer = ixgbe_read_ee_hostif_buffer_X550;
	eeprom->ops.write = ixgbe_write_ee_hostif_X550;
	eeprom->ops.write_buffer = ixgbe_write_ee_hostif_buffer_X550;
	eeprom->ops.update_checksum = ixgbe_update_eeprom_checksum_X550;
	eeprom->ops.validate_checksum = ixgbe_validate_eeprom_checksum_X550;
	mac->ops.disable_mdd = ixgbe_disable_mdd_X550;
	mac->ops.enable_mdd = ixgbe_enable_mdd_X550;
	mac->ops.mdd_event = ixgbe_mdd_event_X550;
	mac->ops.restore_mdd_vf = ixgbe_restore_mdd_vf_X550;
	mac->ops.fw_recovery_mode = ixgbe_fw_recovery_mode_X550;
	mac->ops.disable_rx = ixgbe_disable_rx_x550;
	mac->ops.set_fw_drv_ver = ixgbe_set_fw_drv_ver_x550;
	switch (hw->device_id) {
	case IXGBE_DEV_ID_X550EM_X_1G_T:
		hw->mac.ops.led_on = NULL;
		hw->mac.ops.led_off = NULL;
		break;
	case IXGBE_DEV_ID_X550EM_X_10G_T:
	case IXGBE_DEV_ID_X550EM_A_10G_T:
		hw->mac.ops.led_on = ixgbe_led_on_t_X550em;
		hw->mac.ops.led_off = ixgbe_led_off_t_X550em;
		break;
	default:
		break;
	}
	return ret_val;
}
s32 ixgbe_init_ops_X550 ( struct ixgbe_hw * hw ) { struct ixgbe_mac_info * mac = & hw -> mac ; struct ixgbe_eeprom_info * eeprom = & hw -> eeprom ; s32 ret_val ; DEBUGFUNC ( " " ) ; ret_val = ixgbe_init_ops_X540 ( hw ) ; mac -> ops . dmac_config = ixgbe_dmac_config_X550 ; mac -> ops . dmac_config_tcs = ixgbe_dmac_config_tcs_X550 ; mac -> ops . dmac_update_tcs = ixgbe_dmac_update_tcs_X550 ; mac -> ops . setup_eee = NULL ; mac -> ops . set_source_address_pruning = ixgbe_set_source_address_pruning_X550 ; mac -> ops . set_ethertype_anti_spoofing = ixgbe_set_ethertype_anti_spoofing_X550 ; mac -> ops . get_rtrup2tc = ixgbe_dcb_get_rtrup2tc_generic ; eeprom -> ops . init_params = ixgbe_init_eeprom_params_X550 ; eeprom -> ops . calc_checksum = ixgbe_calc_eeprom_checksum_X550 ; eeprom -> ops . read = ixgbe_read_ee_hostif_X550 ; eeprom -> ops . read_buffer = ixgbe_read_ee_hostif_buffer_X550 ; eeprom -> ops . write = ixgbe_write_ee_hostif_X550 ; eeprom -> ops . write_buffer = ixgbe_write_ee_hostif_buffer_X550 ; eeprom -> ops . update_checksum = ixgbe_update_eeprom_checksum_X550 ; eeprom -> ops . validate_checksum = ixgbe_validate_eeprom_checksum_X550 ; mac -> ops . disable_mdd = ixgbe_disable_mdd_X550 ; mac -> ops . enable_mdd = ixgbe_enable_mdd_X550 ; mac -> ops . mdd_event = ixgbe_mdd_event_X550 ; mac -> ops . restore_mdd_vf = ixgbe_restore_mdd_vf_X550 ; mac -> ops . fw_recovery_mode = ixgbe_fw_recovery_mode_X550 ; mac -> ops . disable_rx = ixgbe_disable_rx_x550 ; mac -> ops . set_fw_drv_ver = ixgbe_set_fw_drv_ver_x550 ; switch ( hw -> device_id ) { case IXGBE_DEV_ID_X550EM_X_1G_T : hw -> mac . ops . led_on = NULL ; hw -> mac . ops . led_off = NULL ; break ; case IXGBE_DEV_ID_X550EM_X_10G_T : case IXGBE_DEV_ID_X550EM_A_10G_T : hw -> mac . ops . led_on = ixgbe_led_on_t_X550em ; hw -> mac . ops . led_off = ixgbe_led_off_t_X550em ; break ; default : break ; } return ret_val ; }
ixgbe_init_ops_X550 - Inits func ptrs and MAC type
 @hw: pointer to hardware structure
ixgbe_init_ops_X550 - Inits func ptrs and MAC type @hw : pointer to hardware structure
/* Manageability interface */