u_int32_t	status;
twe_complete(ccb)	struct twe_ccb *ccb;{	struct twe_softc *sc = ccb->ccb_sc;	struct scsi_xfer *xs = ccb->ccb_xs;	u_int32_t	status;	int i;	for (i = 100 * (xs? xs->timeout : 35000); i--; DELAY(10)) {		status = bus_space_read_4(sc->iot, sc->ioh, TWE_STATUS);		/* TWE_DPRINTF(TWE_D_CMD,  ("twe_intr stat=%b ",		    status & TWE_STAT_FLAGS, TWE_STAT_BITS)); */		while (!(status & TWE_STAT_RQE)) {			u_int32_t ready;			ready = bus_space_read_4(sc->iot, sc->ioh,			    TWE_READYQUEUE);			TWE_DPRINTF(TWE_D_CMD, ("ready=%x ", ready));			if (!twe_done(sc, TWE_READYID(ready)) &&			    ccb->ccb_state == TWE_CCB_FREE) {				TWE_DPRINTF(TWE_D_CMD, ("complete\n"));				return 0;			}			status = bus_space_read_4(sc->iot, sc->ioh, TWE_STATUS);			/* TWE_DPRINTF(TWE_D_CMD,  ("twe_intr stat=%b ",			    status & TWE_STAT_FLAGS, TWE_STAT_BITS)); */		}	}	return 1;}