src/dpdk/drivers/net/ixgbe/base/ixgbe_x550.c
s32 ixgbe_write_iosf_sb_reg_x550a(struct ixgbe_hw *hw, u32 reg_addr,
				  u32 device_type, u32 data)
{
	struct ixgbe_hic_internal_phy_req write_cmd;
	s32 status;
	UNREFERENCED_1PARAMETER(device_type);

	memset(&write_cmd, 0, sizeof(write_cmd));
	write_cmd.hdr.cmd = FW_INT_PHY_REQ_CMD;
	write_cmd.hdr.buf_len = FW_INT_PHY_REQ_LEN;
	write_cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
	write_cmd.port_number = hw->bus.lan_id;
	write_cmd.command_type = FW_INT_PHY_REQ_WRITE;
	write_cmd.address = IXGBE_CPU_TO_BE16(reg_addr);
	write_cmd.write_data = IXGBE_CPU_TO_BE32(data);

	status = ixgbe_host_interface_command(hw, (u32 *)&write_cmd,
					      sizeof(write_cmd),
					      IXGBE_HI_COMMAND_TIMEOUT, false);

	return status;
}
/**
 * ixgbe_write_iosf_sb_reg_x550a - Writes a value to specified register
 * of the IOSF device
 * @hw: pointer to hardware structure
 * @reg_addr: 32 bit PHY register to write
 * @device_type: 3 bit device type
 * @data: Data to write to the register
 **/
Writes a value to specified register
of the IOSF device
@hw: pointer to hardware structure
@reg_addr: 32 bit PHY register to write
@device_type: 3 bit device type
@data: Data to write to the register
Writes a value to specified register of the IOSF device @hw : pointer to hardware structure @reg_addr : 32 bit PHY register to write @device_type : 3 bit device type @data : Data to write to the register
s32 ixgbe_write_iosf_sb_reg_x550a(struct ixgbe_hw *hw, u32 reg_addr,
				  u32 device_type, u32 data)
{
	struct ixgbe_hic_internal_phy_req write_cmd;
	s32 status;
	UNREFERENCED_1PARAMETER(device_type);
	memset(&write_cmd, 0, sizeof(write_cmd));
	write_cmd.hdr.cmd = FW_INT_PHY_REQ_CMD;
	write_cmd.hdr.buf_len = FW_INT_PHY_REQ_LEN;
	write_cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
	write_cmd.port_number = hw->bus.lan_id;
	write_cmd.command_type = FW_INT_PHY_REQ_WRITE;
	write_cmd.address = IXGBE_CPU_TO_BE16(reg_addr);
	write_cmd.write_data = IXGBE_CPU_TO_BE32(data);
	status = ixgbe_host_interface_command(hw, (u32 *)&write_cmd,
					      sizeof(write_cmd),
					      IXGBE_HI_COMMAND_TIMEOUT, false);
	return status;
}
s32 ixgbe_write_iosf_sb_reg_x550a ( struct ixgbe_hw * hw , u32 reg_addr , u32 device_type , u32 data ) { struct ixgbe_hic_internal_phy_req write_cmd ; s32 status ; UNREFERENCED_1PARAMETER ( device_type ) ; memset ( & write_cmd , 0 , sizeof ( write_cmd ) ) ; write_cmd . hdr . cmd = FW_INT_PHY_REQ_CMD ; write_cmd . hdr . buf_len = FW_INT_PHY_REQ_LEN ; write_cmd . hdr . checksum = FW_DEFAULT_CHECKSUM ; write_cmd . port_number = hw -> bus . lan_id ; write_cmd . command_type = FW_INT_PHY_REQ_WRITE ; write_cmd . address = IXGBE_CPU_TO_BE16 ( reg_addr ) ; write_cmd . write_data = IXGBE_CPU_TO_BE32 ( data ) ; status = ixgbe_host_interface_command ( hw , ( u32 * ) & write_cmd , sizeof ( write_cmd ) , IXGBE_HI_COMMAND_TIMEOUT , false ) ; return status ; }
ixgbe_write_iosf_sb_reg_x550a - Writes a value to specified register
 of the IOSF device
 @hw: pointer to hardware structure
 @reg_addr: 32 bit PHY register to write
 @device_type: 3 bit device type
 @data: Data to write to the register
ixgbe_write_iosf_sb_reg_x550a - Writes a value to specified register of the IOSF device @hw : pointer to hardware structure @reg_addr : 32 bit PHY register to write @device_type : 3 bit device type @data : Data to write to the register