diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-10-26 11:14:10 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-10-26 11:14:10 +0000 |
commit | e356e3afcda855cb96df146e74804c2632e7f29f (patch) | |
tree | 4204219e926fb891c9b6a937048dd001aad2fdd2 /sys/arch/alpha | |
parent | 5e25f549413e750413ef750476f4b10cdc835384 (diff) |
Don't bomb if isadma is not configured.
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/pci/sio.c | 6 |
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 = ⁣ config_found(&sc->sc_dv, &sa.sa_iba, sioprint); } |