/* Release the SW/FW semaphore used to access the PHY or NVM. The mask will also specify which port we're releasing the lock for.  */
static void igb_release_swfw_sync_82575(struct e1000_hw *, u16)
/* Release the SW/FW semaphore used to access the PHY or NVM. The mask will also specify which port we're releasing the lock for.  */
static void igb_release_swfw_sync_82575(struct e1000_hw *, u16)
{
	u32 swfw_sync;
	while (igb_get_hw_semaphore(hw) != 0);
	swfw_sync = rd32(E1000_SW_FW_SYNC);
	swfw_sync &= ~mask;
	wr32(E1000_SW_FW_SYNC, swfw_sync);
	igb_put_hw_semaphore(hw);
}