diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2002-07-07 18:20:01 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2002-07-07 18:20:01 +0000 |
commit | 4e9d0a42e0b4d66662ade9c02dc52502a1b6e4dd (patch) | |
tree | 5b391cb6538b00e73fe5daa6159c427c72513271 /sys/dev | |
parent | 03d5e6c6bdbff6d814cb7489cb21c6d6e77d028b (diff) |
Allow isapnp to compile without isadma configured. From NetBSD.
Diffstat (limited to 'sys/dev')
-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; } |