From 2dfb7150273a6c69d62100a073861eca973e768c Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Wed, 6 Nov 1996 09:43:11 +0000 Subject: Correct ISADMA condition. Now both amiga & arc can use IDE with >4k xfers --- sys/dev/isa/wdc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/dev/isa') 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 -- cgit v1.2.3