Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/sbus The sense of being able to sleep for DMA resour...



details:   https://anonhg.NetBSD.org/src/rev/675173ef61ae
branches:  trunk
changeset: 480345:675173ef61ae
user:      mjacob <mjacob%NetBSD.org@localhost>
date:      Sun Jan 09 18:44:40 2000 +0000

description:
The sense of being able to sleep for DMA resources was reversed. Oops.

diffstat:

 sys/dev/sbus/isp_sbus.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b665a4357036 -r 675173ef61ae sys/dev/sbus/isp_sbus.c
--- a/sys/dev/sbus/isp_sbus.c   Sun Jan 09 17:32:58 2000 +0000
+++ b/sys/dev/sbus/isp_sbus.c   Sun Jan 09 18:44:40 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_sbus.c,v 1.18 1999/12/20 00:49:58 mjacob Exp $ */
+/* $NetBSD: isp_sbus.c,v 1.19 2000/01/09 18:44:40 mjacob Exp $ */
 /*
  * SBus specific probe and attach routines for Qlogic ISP SCSI adapters.
  *
@@ -337,7 +337,7 @@
 {
        struct isp_sbussoftc *sbc = (struct isp_sbussoftc *) isp;
        bus_dmamap_t dmamap;
-       int dosleep = (xs->xs_control & XS_CTL_NOSLEEP) != 0;
+       int cansleep = (xs->xs_control & XS_CTL_NOSLEEP) == 0;
        int in = (xs->xs_control & XS_CTL_DATA_IN) != 0;
 
        if (xs->datalen == 0) {
@@ -351,7 +351,7 @@
                /* NOTREACHED */
        }
        if (bus_dmamap_load(sbc->sbus_dmatag, dmamap, xs->data, xs->datalen,
-           NULL, dosleep ? BUS_DMA_WAITOK : BUS_DMA_NOWAIT) != 0) {
+           NULL, cansleep? BUS_DMA_WAITOK : BUS_DMA_NOWAIT) != 0) {
                XS_SETERR(xs, HBA_BOTCH);
                return (CMD_COMPLETE);
        }



Home | Main Index | Thread Index | Old Index