summaryrefslogtreecommitdiffstats
path: root/sys/i386/eisa
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1995-03-31 13:36:57 +0000
committergibbs <gibbs@FreeBSD.org>1995-03-31 13:36:57 +0000
commitd543732b8ea8b041cc160d0d4a8b1dd8b8cebf33 (patch)
treebe6811292b4dac336c3852837857f32143dc6b69 /sys/i386/eisa
parent4eaa6129d2fcd985ec513d0b9df69abe28f9c708 (diff)
downloadFreeBSD-src-d543732b8ea8b041cc160d0d4a8b1dd8b8cebf33.zip
FreeBSD-src-d543732b8ea8b041cc160d0d4a8b1dd8b8cebf33.tar.gz
Use EISA_MAX_SLOTS to be consistent with other EISA drivers.
Fix off by one error in slot probe. Update some comments. Submitted by: rgrimes@FreeBSD.org
Diffstat (limited to 'sys/i386/eisa')
-rw-r--r--sys/i386/eisa/aic7770.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/i386/eisa/aic7770.c b/sys/i386/eisa/aic7770.c
index 5e1137e..0fde1ed 100644
--- a/sys/i386/eisa/aic7770.c
+++ b/sys/i386/eisa/aic7770.c
@@ -19,7 +19,7 @@
* 4. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id: aic7770.c,v 1.10 1995/01/16 16:31:34 gibbs Exp $
+ * $Id: aic7770.c,v 1.11 1995/03/07 08:58:22 gibbs Exp $
*/
#include <sys/param.h>
@@ -48,7 +48,7 @@ int aic7770_attach __P((struct isa_device *dev));
#define CHAR2(B1,B2) (((B1<<3) & 0x18) | ((B2>>5) & 0x7)|'@')
#define CHAR3(B1,B2) ((B2 & 0x1F) | '@')
-#define MAX_SLOTS 16 /* max slots on the EISA bus */
+#define EISA_MAX_SLOTS 16 /* XXX should be defined in a common header */
static ahc_slot = 0; /* slot last board was found in */
struct isa_driver ahcdriver = {aic7770probe, aic7770_attach, "ahc"};
@@ -88,15 +88,15 @@ aic7770probe(struct isa_device *dev)
aic7770_sig valid_ids[] = {
/* Entries of other tested adaptors should be added here */
- { AHC_274, 0x71 }, /*274x, Card*/
- { AHC_274, 0x70 }, /*274x, Motherboard*/
+ { AHC_274, 0x71 }, /*274x*/
+ { AHC_274, 0x70 }, /*aic7770 on Motherboard*/
{ AHC_284, 0x56 }, /*284x, BIOS enabled*/
{ AHC_284, 0x57 } /*284x, BIOS disabled*/
};
ahc_slot++;
- while (ahc_slot <= MAX_SLOTS) {
+ while (ahc_slot < EISA_MAX_SLOTS) {
port = 0x1000 * ahc_slot;
for( i = 0; i < sizeof(sig_id); i++ )
{
OpenPOWER on IntegriCloud