summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/pci/sio.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-10-26 11:14:10 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-10-26 11:14:10 +0000
commite356e3afcda855cb96df146e74804c2632e7f29f (patch)
tree4204219e926fb891c9b6a937048dd001aad2fdd2 /sys/arch/alpha/pci/sio.c
parent5e25f549413e750413ef750476f4b10cdc835384 (diff)
Don't bomb if isadma is not configured.
Diffstat (limited to 'sys/arch/alpha/pci/sio.c')
-rw-r--r--sys/arch/alpha/pci/sio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/alpha/pci/sio.c b/sys/arch/alpha/pci/sio.c
index af0bb024cd9..ad86481302c 100644
--- a/sys/arch/alpha/pci/sio.c
+++ b/sys/arch/alpha/pci/sio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sio.c,v 1.25 2001/10/26 01:28:06 nate Exp $ */
+/* $OpenBSD: sio.c,v 1.26 2001/10/26 11:14:09 art Exp $ */
/* $NetBSD: sio.c,v 1.15 1996/12/05 01:39:36 cgd Exp $ */
/*
@@ -45,6 +45,8 @@
#include <alpha/pci/siovar.h>
+#include "isadma.h"
+
struct sio_softc {
struct device sc_dv;
@@ -203,8 +205,10 @@ sio_bridge_callback(v)
sa.sa_iba.iba_busname = "isa";
sa.sa_iba.iba_iot = sc->sc_iot;
sa.sa_iba.iba_memt = sc->sc_memt;
+#if NISADMA > 0
sa.sa_iba.iba_dmat =
alphabus_dma_get_tag(sc->sc_dmat, ALPHA_BUS_ISA);
+#endif
sa.sa_iba.iba_ic = &ic;
config_found(&sc->sc_dv, &sa.sa_iba, sioprint);
}