FreeBSD/sys/dev/ste/if_ste.c
/*
 * The EEPROM is slow: give it time to come ready after issuing
 * it a command.
 */
The EEPROM is slow: give it time to come ready after issuing
it a command.
The EEPROM is slow : give it time to come ready after issuing it a command .
static int
ste_eeprom_wait(struct ste_softc *sc)
{
	int i;
	DELAY(1000);
	for (i = 0; i < 100; i++) {
		if (CSR_READ_2(sc, STE_EEPROM_CTL) & STE_EECTL_BUSY)
			DELAY(1000);
		else
			break;
	}
	if (i == 100) {
		device_printf(sc->ste_dev, "eeprom failed to come ready\n");
		return (1);
	}
	return (0);
}
static int ste_eeprom_wait ( struct ste_softc * sc ) { int i ; DELAY ( 1000 ) ; for ( i = 0 ; i < 100 ; i ++ ) { if ( CSR_READ_2 ( sc , STE_EEPROM_CTL ) & STE_EECTL_BUSY ) DELAY ( 1000 ) ; else break ; } if ( i == 100 ) { device_printf ( sc -> ste_dev , " \n " ) ; return ( 1 ) ; } return ( 0 ) ; }
The EEPROM is slow: give it time to come ready after issuing
 it a command.
The EEPROM is slow : give it time to come ready after issuing it a command .