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).
This commit is contained in:
Rodney W. Grimes 1994-01-11 07:24:32 +00:00
parent 154f487097
commit 1660308965
2 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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);