diff options
Diffstat (limited to 'sys/dev/isa')
-rw-r--r-- | sys/dev/isa/isapnp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/isa/isapnp.c b/sys/dev/isa/isapnp.c index 18c9a8e23eb..9363a402c38 100644 --- a/sys/dev/isa/isapnp.c +++ b/sys/dev/isa/isapnp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isapnp.c,v 1.33 2002/06/30 16:05:58 miod Exp $ */ +/* $OpenBSD: isapnp.c,v 1.34 2002/07/07 18:20:00 miod Exp $ */ /* $NetBSD: isapnp.c,v 1.9.4.3 1997/10/29 00:40:43 thorpej Exp $ */ /* @@ -48,6 +48,8 @@ #include <dev/isa/pnpdevs.h> +#include "isadma.h" + void isapnp_init(struct isapnp_softc *); static __inline u_char isapnp_shift_bit(struct isapnp_softc *); int isapnp_findcard(struct isapnp_softc *); @@ -259,6 +261,7 @@ isapnp_alloc_drq(isa, i) struct device *isa; struct isapnp_pin *i; { +#if NISADMA > 0 int b; if (i->bits == 0) { @@ -271,6 +274,7 @@ isapnp_alloc_drq(isa, i) i->num = b; return 0; } +#endif return EINVAL; } |