summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/si.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-01-04 16:51:45 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-01-04 16:51:45 +0000
commita58ecce992ff21860c52e2951ce9648d4177b1cd (patch)
treeca15bab733475b3dc2569e7f68b4c707e0c54bd3 /sys/arch/sparc/dev/si.c
parent165fc38c9519f8f9acca8479e322a6f8944aa097 (diff)
Be silent when deciding that the last chunk of a DMA transfer will be done
in PIO mode.
Diffstat (limited to 'sys/arch/sparc/dev/si.c')
-rw-r--r--sys/arch/sparc/dev/si.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/si.c b/sys/arch/sparc/dev/si.c
index b85e8632edf..9aaebcc6607 100644
--- a/sys/arch/sparc/dev/si.c
+++ b/sys/arch/sparc/dev/si.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: si.c,v 1.30 2008/06/26 05:42:13 ray Exp $ */
+/* $OpenBSD: si.c,v 1.31 2009/01/04 16:51:44 miod Exp $ */
/* $NetBSD: si.c,v 1.38 1997/08/27 11:24:20 bouyer Exp $ */
/*-
@@ -1003,11 +1003,15 @@ si_vme_dma_stop(ncr_sc)
resid, ntrans);
}
#endif
+
if (ntrans < MIN_DMA_LEN) {
+#ifdef DEBUG
printf("si: fifo count: 0x%x\n", resid);
+#endif
ncr_sc->sc_state |= NCR_ABORTING;
goto out;
}
+
if (ntrans > ncr_sc->sc_datalen)
panic("si_dma_stop: excess transfer");