summaryrefslogtreecommitdiff
path: root/sys/dev/isa/if_le_isa.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/isa/if_le_isa.c')
-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);