/* To gain access to the EEPROM, first we must obtain a hardware semaphore. Then for non-82573 hardware, set the EEPROM access request bit and wait for EEPROM access grant bit. If the access grant bit is not set, release hardware semaphore.  */
static s32 e1000_acquire_nvm_82571(struct e1000_hw *hw)
/* To gain access to the EEPROM, first we must obtain a hardware semaphore. Then for non-82573 hardware, set the EEPROM access request bit and wait for EEPROM access grant bit. If the access grant bit is not set, release hardware semaphore.  */
static s32 e1000_acquire_nvm_82571(struct e1000_hw *hw)
{
	s32 ret_val;
	ret_val = e1000_get_hw_semaphore_82571(hw);
	if (ret_val)
		return ret_val;
	switch (hw->mac.type) {
	case e1000_82573:
	case e1000_82574:
	case e1000_82583:
		break;
	default:
		ret_val = e1000e_acquire_nvm(hw);
		break;
	}
	if (ret_val)
		e1000_put_hw_semaphore_82571(hw);
	return ret_val;
}