for (i = WI_TIMEOUT; i--; DELAY(10))
for (i = WI_TIMEOUT; i--; DELAY(1))
wi_seek(sc, id, off, chan)	struct wi_softc		*sc;	int			id, off, chan;{	int			i;	int			selreg, offreg;	switch (chan) {	case WI_BAP0:		selreg = WI_SEL0;		offreg = WI_OFF0;		break;	case WI_BAP1:		selreg = WI_SEL1;		offreg = WI_OFF1;		break;	default:		printf(WI_PRT_FMT ": invalid data path: %x\n", WI_PRT_ARG(sc),		    chan);		return(EIO);	}	CSR_WRITE_2(sc, selreg, id);	CSR_WRITE_2(sc, offreg, off);	for (i = WI_TIMEOUT; i--; DELAY(10))		if (!(CSR_READ_2(sc, offreg) & (WI_OFF_BUSY|WI_OFF_ERR)))			break;	if (i < 0)		return(ETIMEDOUT);	return(0);}