*** dev/ic/wdc009.c Wed Jan 12 13:55:13 2000 --- dev/ic/wdc.c Sun Jan 16 12:46:17 2000 *************** *** 843,849 **** --- 843,851 ---- :"none", chp->channel), DEBUG_STATUS); chp->ch_error = 0; + #if 0 timeout = timeout * 1000 / WDCDELAY; /* delay uses microseconds */ + #endif for (;;) { #ifdef TEST_ALTSTS *************** *** 863,871 **** } if ((status & WDCS_BSY) == 0 && (status & mask) == bits) break; ! if (++time > timeout) { ! WDCDEBUG_PRINT(("wdcwait: timeout, status %x " ! "error %x\n", status, CHP_READ_REG(chp, wdr_error)), DEBUG_STATUSX | DEBUG_STATUS); return -1; --- 865,873 ---- } if ((status & WDCS_BSY) == 0 && (status & mask) == bits) break; ! if (++time > 10000 * 1000 / WDCDELAY) { ! WDCDEBUG_PRINT(("wdcwait: timeout %d status %x " ! "error %x\n", timeout, status, CHP_READ_REG(chp, wdr_error)), DEBUG_STATUSX | DEBUG_STATUS); return -1;