/* Writes data to MDI control register in the PHY at offset.  */
static s32 igb_write_phy_reg_82580(struct e1000_hw *, u32, u16)
/* Writes data to MDI control register in the PHY at offset.  */
static s32 igb_write_phy_reg_82580(struct e1000_hw *, u32, u16)
{
	u32 mdicnfg = 0;
	s32 ret_val;
	ret_val = hw->phy.ops.acquire(hw);
	if (ret_val)
		goto out;
	mdicnfg = (hw->phy.addr << E1000_MDIC_PHY_SHIFT);
	wr32(E1000_MDICNFG, mdicnfg);
	ret_val = igb_write_phy_reg_mdic(hw, offset, data);
	hw->phy.ops.release(hw);
out:
	return ret_val;
}