scsiconf.h:

Change the sc_link structure from 8 targets with 8 lun's to
16 targets with 8 lun's. Wide scsi and the ncr 825 does support 16 targets.
scsiconf.c:
move the addition of the trailing NUL's out of a then clause, they are also
needed in the else clause for an unknown device.
This commit is contained in:
Andreas Schulz 1994-11-14 23:39:33 +00:00
parent 7a82d2eb91
commit e9bc745de3
2 changed files with 6 additions and 6 deletions

View File

@ -14,7 +14,7 @@
*
* Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
*
* $Id: scsiconf.c,v 1.12 1994/10/23 21:27:55 wollman Exp $
* $Id: scsiconf.c,v 1.13 1994/11/12 17:13:23 ats Exp $
*/
#include <sys/types.h>
@ -734,11 +734,8 @@ scsi_probedev(sc_link, maybe_more)
desc = inqbuf.vendor;
desc[len - (desc - (char *) &inqbuf)] = 0;
strncpy(manu, inqbuf.vendor, 8);
manu[8] = 0;
strncpy(model, inqbuf.product, 16);
model[16] = 0;
strncpy(version, inqbuf.revision, 4);
version[4] = 0;
} else
/*
* If not advanced enough, use default values
@ -749,6 +746,9 @@ scsi_probedev(sc_link, maybe_more)
strncpy(model, "unknown", 16);
strncpy(version, "????", 4);
}
manu[8] = 0;
model[16] = 0;
version[4] = 0;
printf("%s%d targ %d lun %d: type %ld(%s) %s SCSI%d\n"
,scsi_adapter->name
,unit

View File

@ -14,7 +14,7 @@
*
* Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
*
* $Id: scsiconf.h,v 1.12 1994/10/19 01:49:23 wollman Exp $
* $Id: scsiconf.h,v 1.13 1994/10/23 21:27:56 wollman Exp $
*/
#ifndef SCSI_SCSICONF_H
#define SCSI_SCSICONF_H 1
@ -189,7 +189,7 @@ struct scsi_link
*/
struct scsibus_data {
struct scsi_link *adapter_link; /* prototype supplied by adapter */
struct scsi_link *sc_link[8][8];
struct scsi_link *sc_link[16][8];
};
/*