src/dpdk/drivers/net/igc/base/igc_mac.c
s32 igc_get_auto_rd_done_generic(struct igc_hw *hw)
{
	s32 i = 0;

	DEBUGFUNC("igc_get_auto_rd_done_generic");

	while (i < AUTO_READ_DONE_TIMEOUT) {
		if (IGC_READ_REG(hw, IGC_EECD) & IGC_EECD_AUTO_RD)
			break;
		msec_delay(1);
		i++;
	}

	if (i == AUTO_READ_DONE_TIMEOUT) {
		DEBUGOUT("Auto read by HW from NVM has not completed.\n");
		return -IGC_ERR_RESET;
	}

	return IGC_SUCCESS;
}
/**
 *  igc_get_auto_rd_done_generic - Check for auto read completion
 *  @hw: pointer to the HW structure
 *
 *  Check EEPROM for Auto Read done bit.
 **/
Check for auto read completion
@hw: pointer to the HW structure

Check EEPROM for Auto Read done bit.
Check for auto read completion @hw : pointer to the HW structure Check EEPROM for Auto Read done bit .
s32 igc_get_auto_rd_done_generic(struct igc_hw *hw)
{
	s32 i = 0;
	DEBUGFUNC("igc_get_auto_rd_done_generic");
	while (i < AUTO_READ_DONE_TIMEOUT) {
		if (IGC_READ_REG(hw, IGC_EECD) & IGC_EECD_AUTO_RD)
			break;
		msec_delay(1);
		i++;
	}
	if (i == AUTO_READ_DONE_TIMEOUT) {
		DEBUGOUT("Auto read by HW from NVM has not completed.\n");
		return -IGC_ERR_RESET;
	}
	return IGC_SUCCESS;
}
s32 igc_get_auto_rd_done_generic ( struct igc_hw * hw ) { s32 i = 0 ; DEBUGFUNC ( " " ) ; while ( i < AUTO_READ_DONE_TIMEOUT ) { if ( IGC_READ_REG ( hw , IGC_EECD ) & IGC_EECD_AUTO_RD ) break ; msec_delay ( 1 ) ; i ++ ; } if ( i == AUTO_READ_DONE_TIMEOUT ) { DEBUGOUT ( " \n " ) ; return - IGC_ERR_RESET ; } return IGC_SUCCESS ; }
igc_get_auto_rd_done_generic - Check for auto read completion
  @hw: pointer to the HW structure
igc_get_auto_rd_done_generic - Check for auto read completion @hw : pointer to the HW structure