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

	DEBUGFUNC("ixgbe_init_ops_X550EM_x");

	/* Start with generic X550EM init */
	ret_val = ixgbe_init_ops_X550EM(hw);

	mac->ops.read_iosf_sb_reg = ixgbe_read_iosf_sb_reg_x550;
	mac->ops.write_iosf_sb_reg = ixgbe_write_iosf_sb_reg_x550;
	mac->ops.acquire_swfw_sync = ixgbe_acquire_swfw_sync_X550em;
	mac->ops.release_swfw_sync = ixgbe_release_swfw_sync_X550em;
	link->ops.read_link = ixgbe_read_i2c_combined_generic;
	link->ops.read_link_unlocked = ixgbe_read_i2c_combined_generic_unlocked;
	link->ops.write_link = ixgbe_write_i2c_combined_generic;
	link->ops.write_link_unlocked =
				      ixgbe_write_i2c_combined_generic_unlocked;
	link->addr = IXGBE_CS4227;

	if (hw->device_id == IXGBE_DEV_ID_X550EM_X_1G_T) {
		mac->ops.setup_fc = NULL;
		mac->ops.setup_eee = NULL;
		mac->ops.init_led_link_act = NULL;
	}

	return ret_val;
}
/**
*  ixgbe_init_ops_X550EM_x - Inits func ptrs and MAC type
*  @hw: pointer to hardware structure
*
*  Initialize the function pointers and for MAC type X550EM_x.
*  Does not touch the hardware.
**/
Inits func ptrs and MAC type
Inits func ptrs and MAC type
s32 ixgbe_init_ops_X550EM_x(struct ixgbe_hw *hw)
{
	struct ixgbe_mac_info *mac = &hw->mac;
	struct ixgbe_link_info *link = &hw->link;
	s32 ret_val;
	DEBUGFUNC("ixgbe_init_ops_X550EM_x");
	ret_val = ixgbe_init_ops_X550EM(hw);
	mac->ops.read_iosf_sb_reg = ixgbe_read_iosf_sb_reg_x550;
	mac->ops.write_iosf_sb_reg = ixgbe_write_iosf_sb_reg_x550;
	mac->ops.acquire_swfw_sync = ixgbe_acquire_swfw_sync_X550em;
	mac->ops.release_swfw_sync = ixgbe_release_swfw_sync_X550em;
	link->ops.read_link = ixgbe_read_i2c_combined_generic;
	link->ops.read_link_unlocked = ixgbe_read_i2c_combined_generic_unlocked;
	link->ops.write_link = ixgbe_write_i2c_combined_generic;
	link->ops.write_link_unlocked =
				      ixgbe_write_i2c_combined_generic_unlocked;
	link->addr = IXGBE_CS4227;
	if (hw->device_id == IXGBE_DEV_ID_X550EM_X_1G_T) {
		mac->ops.setup_fc = NULL;
		mac->ops.setup_eee = NULL;
		mac->ops.init_led_link_act = NULL;
	}
	return ret_val;
}
s32 ixgbe_init_ops_X550EM_x ( struct ixgbe_hw * hw ) { struct ixgbe_mac_info * mac = & hw -> mac ; struct ixgbe_link_info * link = & hw -> link ; s32 ret_val ; DEBUGFUNC ( " " ) ; ret_val = ixgbe_init_ops_X550EM ( hw ) ; mac -> ops . read_iosf_sb_reg = ixgbe_read_iosf_sb_reg_x550 ; mac -> ops . write_iosf_sb_reg = ixgbe_write_iosf_sb_reg_x550 ; mac -> ops . acquire_swfw_sync = ixgbe_acquire_swfw_sync_X550em ; mac -> ops . release_swfw_sync = ixgbe_release_swfw_sync_X550em ; link -> ops . read_link = ixgbe_read_i2c_combined_generic ; link -> ops . read_link_unlocked = ixgbe_read_i2c_combined_generic_unlocked ; link -> ops . write_link = ixgbe_write_i2c_combined_generic ; link -> ops . write_link_unlocked = ixgbe_write_i2c_combined_generic_unlocked ; link -> addr = IXGBE_CS4227 ; if ( hw -> device_id == IXGBE_DEV_ID_X550EM_X_1G_T ) { mac -> ops . setup_fc = NULL ; mac -> ops . setup_eee = NULL ; mac -> ops . init_led_link_act = NULL ; } return ret_val ; }
ixgbe_init_ops_X550EM_x - Inits func ptrs and MAC type
ixgbe_init_ops_X550EM_x - Inits func ptrs and MAC type
/* Start with generic X550EM init */