summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-09-29 09:55:49 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-09-29 09:55:49 +0000
commit49c5f0d514fb01a577e2531f882c1b8edd345b33 (patch)
treefba918afea11e70f6f5ea19be38dd2156d4668f6
parentf55afa5a0c1e5ff4707a5cf2792ad64821f82844 (diff)
Reduce openings when DMA is used.
-rw-r--r--sys/arch/hp300/dev/mb89352.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/hp300/dev/mb89352.c b/sys/arch/hp300/dev/mb89352.c
index dcda7432de3..ec504e94146 100644
--- a/sys/arch/hp300/dev/mb89352.c
+++ b/sys/arch/hp300/dev/mb89352.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mb89352.c,v 1.7 2004/08/30 17:01:43 miod Exp $ */
+/* $OpenBSD: mb89352.c,v 1.8 2004/09/29 09:55:48 miod Exp $ */
/* $NetBSD: mb89352.c,v 1.5 2000/03/23 07:01:31 thorpej Exp $ */
/* NecBSD: mb89352.c,v 1.4 1998/03/14 07:31:20 kmatsuda Exp */
@@ -211,7 +211,10 @@ spc_attach(struct spc_softc *sc)
sc->sc_link.adapter_target = sc->sc_initiator;
sc->sc_link.adapter = &spc_switch;
sc->sc_link.device = &spc_dev;
- sc->sc_link.openings = 2;
+ if (sc->sc_dma_start != NULL)
+ sc->sc_link.openings = 1;
+ else
+ sc->sc_link.openings = 2;
/*
* ask the adapter what subunits are present