summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>1998-04-15 01:53:47 +0000
committerthorpej <thorpej@NetBSD.org>1998-04-15 01:53:47 +0000
commit6ea0ab26e2adb4bfc4ef29d9302ecd23fa445396 (patch)
tree9bd3add907a94ad139a14b3942f05f52350a668e /sys
parent21431cfbea84eb1dd0977df686e300ebc63e8574 (diff)
Don't reference functions defined in isadma.c if we don't have to,
since we might not have any ISA DMA-using devices configured, thus isadma.c won't be compiled. Fixes a problem reported by Kevin Lahey. Also, since there are only 8 DMA channels, don't bother checking DRQs 8 - 15.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isapnp/isapnp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/isapnp/isapnp.c b/sys/dev/isapnp/isapnp.c
index cab9eff5dd5..eeb1e75b89b 100644
--- a/sys/dev/isapnp/isapnp.c
+++ b/sys/dev/isapnp/isapnp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: isapnp.c,v 1.15 1998/01/12 09:27:14 thorpej Exp $ */
+/* $NetBSD: isapnp.c,v 1.16 1998/04/15 01:53:47 thorpej Exp $ */
/*
* Copyright (c) 1996 Christos Zoulas. All rights reserved.
@@ -258,8 +258,8 @@ isapnp_alloc_drq(isa, i)
return 0;
}
- for (b = 0; b < 16; b++)
- if ((i->bits & (1 << b)) && isa_drq_isfree(isa, b)) {
+ for (b = 0; b < 7; b++)
+ if ((i->bits & (1 << b)) && ISA_DRQ_ISFREE(isa, b)) {
i->num = b;
return 0;
}