summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-16 10:32:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-16 10:32:33 +0000
commitedc65d0998c23329d5dca7fd242921fb3109f0a7 (patch)
tree6c767593fc073f41cff21a89a27ae7d57ae2fc8c /sys/dev
parent16fcdabf7cfb9357006f53ac1c5167fdbf249093 (diff)
if isadma does not exist, do not try to use it
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/if_le_isa.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/isa/if_le_isa.c b/sys/dev/isa/if_le_isa.c
index dd4e4dab35d..c734bde45e5 100644
--- a/sys/dev/isa/if_le_isa.c
+++ b/sys/dev/isa/if_le_isa.c
@@ -40,6 +40,7 @@
*/
#include "bpfilter.h"
+#include "isadma.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -121,6 +122,13 @@ le_isa_probe(parent, match, aux)
struct le_softc *lesc = match;
struct isa_attach_args *ia = aux;
+#if NISADMA == 0
+ if (ia->ia_drq != DRQUNK) {
+ printf("cannot support dma lance devices\n");
+ return 0;
+ }
+#endif
+
if (bicc_isa_probe(lesc, ia))
return (1);
if (ne2100_isa_probe(lesc, ia))
@@ -345,8 +353,10 @@ le_isa_attach(parent, self, aux)
printf("%s", sc->sc_dev.dv_xname);
am7990_config(sc);
+#if NISADMA > 0
if (ia->ia_drq != DRQUNK)
isa_dmacascade(ia->ia_drq);
+#endif
lesc->sc_ih = isa_intr_establish(ia->ia_ic, ia->ia_irq, IST_EDGE,
IPL_NET, le_isa_intredge, sc, sc->sc_dev.dv_xname);