diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-11-06 09:43:11 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-11-06 09:43:11 +0000 |
commit | 2dfb7150273a6c69d62100a073861eca973e768c (patch) | |
tree | 71ca04071fe7c6e401a98481051964b41304101d /sys | |
parent | 914da8fb448b2861e50d0bbfa8d333f120360b24 (diff) |
Correct ISADMA condition. Now both amiga & arc can use IDE with >4k xfers
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/isa/wdc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/isa/wdc.c b/sys/dev/isa/wdc.c index 4dd2055f90f..869414c6297 100644 --- a/sys/dev/isa/wdc.c +++ b/sys/dev/isa/wdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wdc.c,v 1.12 1996/09/22 09:02:33 downsj Exp $ */ +/* $OpenBSD: wdc.c,v 1.13 1996/11/06 09:43:10 niklas Exp $ */ /* $NetBSD: wd.c,v 1.150 1996/05/12 23:54:03 mycroft Exp $ */ /* @@ -413,9 +413,12 @@ wdc_ata_start(wdc, xfer) else if (d_link->sc_mode != WDM_DMA) nblks = xfer->c_bcount / d_link->sc_lp->d_secsize; else -#endif nblks = min(xfer->c_bcount / d_link->sc_lp->d_secsize, 8); +#else + else + nblks = xfer->c_bcount / d_link->sc_lp->d_secsize; +#endif /* Check for bad sectors and adjust transfer, if necessary. */ if ((d_link->sc_lp->d_flags & D_BADSECT) != 0 |