diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-03-23 09:00:20 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-03-23 09:00:20 +0000 |
commit | 76cc5d1e93a036428c82f154c92018a37d676d97 (patch) | |
tree | 8a9e5dd5d455522f7c5246d8c099dd2ace1c7403 /sys/i386/eisa | |
parent | 541129ef5cba3d394b351a2cca82a3b486fe979d (diff) | |
download | FreeBSD-src-76cc5d1e93a036428c82f154c92018a37d676d97.zip FreeBSD-src-76cc5d1e93a036428c82f154c92018a37d676d97.tar.gz |
Change MAX_SLOTS -> EISA_MAX_SLOTS and correct comments. Add this to
ultra14f.c and eliminate constants.
Correct EISA slot scan loops to look at slots 1 to 15 inclusive (off
by 1 errors all over the place). Other drivers need this, I will get
to it after a little more work.
Correct the ultrastore EISA probe so that it starts after the last
EISA slot probed instead of starting over from slot 0.
We need an eisa.h to move a lot of common constants into. I will
write it if someone tells me where it should go (sys/eisa?).
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 9ef2fdd..1511eeb 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.27 1994/11/26 23:10:03 ats Exp $ + * $Id: aha1742.c,v 1.28 1995/03/23 07:31:07 gibbs Exp $ */ #include <sys/types.h> @@ -275,7 +275,7 @@ void ahbminphys(); struct ecb *ahb_ecb_phys_kv(); u_int32 ahb_adapter_info(); -#define MAX_SLOTS 16 /* XXX should this be 16?? Need EISA spec */ +#define EISA_MAX_SLOTS 16 /* XXX This should go into a comon header */ static ahb_slot = 0; /* slot last board was found in */ static ahb_unit = 0; int ahb_debug = 0; @@ -447,7 +447,7 @@ ahbprobe(dev) u_char byte1, byte2, byte3; ahb_slot++; - while (ahb_slot <= MAX_SLOTS) { + while (ahb_slot < EISA_MAX_SLOTS) { port = 0x1000 * ahb_slot; byte1 = inb(port + HID0); byte2 = inb(port + HID1); |