summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1995-11-07 05:32:47 +0000
committergibbs <gibbs@FreeBSD.org>1995-11-07 05:32:47 +0000
commit49aa0cf82b4d0c2782148b955181b48bac1e088e (patch)
tree70fd725d0cbaf5c907e4dc263a43682b2071f608
parent846ff71f2fd6f7e83d3b94a36c9bbe496bedb08c (diff)
downloadFreeBSD-src-49aa0cf82b4d0c2782148b955181b48bac1e088e.zip
FreeBSD-src-49aa0cf82b4d0c2782148b955181b48bac1e088e.tar.gz
Properly print out the chip type again. ahc_init really needs a rewrite.
-rw-r--r--sys/i386/scsi/aic7xxx.c26
1 files changed, 19 insertions, 7 deletions
diff --git a/sys/i386/scsi/aic7xxx.c b/sys/i386/scsi/aic7xxx.c
index 1c89daf..e39d9b1 100644
--- a/sys/i386/scsi/aic7xxx.c
+++ b/sys/i386/scsi/aic7xxx.c
@@ -24,7 +24,7 @@
*
* commenced: Sun Sep 27 18:14:01 PDT 1992
*
- * $Id: aic7xxx.c,v 1.44 1995/11/05 04:50:48 gibbs Exp $
+ * $Id: aic7xxx.c,v 1.45 1995/11/06 05:21:13 gibbs Exp $
*/
/*
* TODO:
@@ -1501,8 +1501,9 @@ ahc_init(unit)
* can do 255 concurrent commands. Right now, we just ID the
* card until we can find out how this is done.
*/
- if(!(ahc->type & AHC_AIC78X0))
- {
+ switch(ahc->type & ~(AHC_TWIN | AHC_WIDE)) {
+ case AHC_AIC7770:
+ {
/*
* See if we have a Rev E or higher
* aic7770. Anything below a Rev E will
@@ -1525,13 +1526,24 @@ ahc_init(unit)
}
else
printf("aic7770 <= Rev C, ");
- }
- else if(ahc->type & AHC_AIC7880)
+ break;
+ }
+ case AHC_394U:
+ case AHC_294U:
+ case AHC_AIC7880:
printf("aic7880, ");
- else if(ahc->type & AHC_AIC7850)
+ break;
+ case AHC_AIC7850:
printf("aic7850, ");
- else
+ break;
+ case AHC_394:
+ case AHC_294:
+ case AHC_AIC7870:
printf("aic7870, ");
+ break;
+ default:
+ break;
+ }
if(ahc->flags & AHC_EXTSCB) {
/*
* This adapter has external SCB memory.
OpenPOWER on IntegriCloud