/* Writes the data to PHY register at the offset using the serial gigabit media independent interface.  */
static s32 igb_write_phy_reg_sgmii_82575(struct e1000_hw *, u32, u16)
/* Writes the data to PHY register at the offset using the serial gigabit media independent interface.  */
static s32 igb_write_phy_reg_sgmii_82575(struct e1000_hw *, u32, u16)
{
	s32 ret_val = -E1000_ERR_PARAM;
	if (offset > E1000_MAX_SGMII_PHY_REG_ADDR) {
		hw_dbg("PHY Address %d is out of range\n", offset);
		goto out;
	}
	ret_val = hw->phy.ops.acquire(hw);
	if (ret_val)
		goto out;
	ret_val = igb_write_phy_reg_i2c(hw, offset, data);
	hw->phy.ops.release(hw);
out:
	return ret_val;
}