diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1994-01-11 07:24:32 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1994-01-11 07:24:32 +0000 |
commit | 1f91bd67edeba1629c22cff3f8b39214f64e9643 (patch) | |
tree | 4e90c99fcfbdb033f0fbd2985b8e259eebefbaf8 /sys/i386/eisa | |
parent | 249b4a6ddc038a8be703982bd1075166ade3597c (diff) | |
download | FreeBSD-src-1f91bd67edeba1629c22cff3f8b39214f64e9643.zip FreeBSD-src-1f91bd67edeba1629c22cff3f8b39214f64e9643.tar.gz |
Add comment to MAX_SLOTS that it may need to be 16 and to check against
EISA spec. Fixed off by one error in ahbprobe so that it can find an
aha1742 in slot 8 (now uses slot <= MAX_SLOT, instead of slot < 8).
Diffstat (limited to 'sys/i386/eisa')
-rw-r--r-- | sys/i386/eisa/aha1742.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/eisa/aha1742.c b/sys/i386/eisa/aha1742.c index 991f580..66bb062 100644 --- a/sys/i386/eisa/aha1742.c +++ b/sys/i386/eisa/aha1742.c @@ -14,7 +14,7 @@ * * commenced: Sun Sep 27 18:14:01 PDT 1992 * - * $Id: aha1742.c,v 1.12 1993/11/25 01:31:25 wollman Exp $ + * $Id: aha1742.c,v 1.13 1993/12/19 00:50:27 wollman Exp $ */ #include <sys/types.h> @@ -282,7 +282,7 @@ void ahbminphys(); struct ecb *ahb_ecb_phys_kv(); u_int32 ahb_adapter_info(); -#define MAX_SLOTS 8 +#define MAX_SLOTS 8 /* XXX should this be 16?? Need EISA spec */ static ahb_slot = 0; /* slot last board was found in */ static ahb_unit = 0; int ahb_debug = 0; @@ -432,7 +432,7 @@ ahbprobe(dev) u_char byte1, byte2, byte3; ahb_slot++; - while (ahb_slot < 8) { + while (ahb_slot <= MAX_SLOTS) { port = 0x1000 * ahb_slot; byte1 = inb(port + HID0); byte2 = inb(port + HID1); |