summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2009-01-04 16:51:44 +0000
committermiod <miod@openbsd.org>2009-01-04 16:51:44 +0000
commita11591f364ae58eb0fa3d6e9fd25940d5a21b76f (patch)
tree1de6a4731d215be74b636952ca0e8d2d6d4f0a28
parentIn x[dy]dummystrat, do not clear B_BUSY from the buffer. (diff)
downloadwireguard-openbsd-a11591f364ae58eb0fa3d6e9fd25940d5a21b76f.tar.xz
wireguard-openbsd-a11591f364ae58eb0fa3d6e9fd25940d5a21b76f.zip
Be silent when deciding that the last chunk of a DMA transfer will be done
in PIO mode.
-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");