summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isa/wdc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/isa/wdc.c b/sys/dev/isa/wdc.c
index 1e141dbac30..0c4f1e2b64c 100644
--- a/sys/dev/isa/wdc.c
+++ b/sys/dev/isa/wdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wdc.c,v 1.6 1996/09/04 00:51:15 downsj Exp $ */
+/* $OpenBSD: wdc.c,v 1.7 1996/09/09 05:29:16 mickey Exp $ */
/* $NetBSD: wd.c,v 1.150 1996/05/12 23:54:03 mycroft Exp $ */
/*
@@ -590,7 +590,7 @@ wdc_atapi_start(wdc, xfer)
wdc->sc_flags |= WDCF_IRQ_WAIT;
return;
}
- if ((acp->flags & 0x0300) != ACAP_DRQ_INTR) {
+ if ((acp->flags & (ACAP_DRQ_INTR|ACAP_DRQ_ACCEL)) != ACAP_DRQ_INTR) {
int i, phase;
for (i=20000; i>0; --i) {
phase = (bus_io_read_1(bc, ioh, wd_ireason) &
@@ -603,6 +603,7 @@ wdc_atapi_start(wdc, xfer)
}
if (phase != PHASE_CMDOUT ) {
printf("wdc_atapi_start: timout waiting PHASE_CMDOUT");
+ printf("(0x%x)\n", phase);
acp->status = ERROR;
wdc_atapi_done(wdc, xfer);
return;