From: briggs Date: Wed, 10 Jan 1996 19:08:04 +0000 (+0000) Subject: Save inquiry flags in sc_link so low-level drivers can use it. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3bb7591913672d139dbd1dbafdc18d49c3b76e5b;p=openbsd Save inquiry flags in sc_link so low-level drivers can use it. --- diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index f47f33c5ead..756de6ce38d 100644 --- a/sys/scsi/scsiconf.c +++ b/sys/scsi/scsiconf.c @@ -386,6 +386,7 @@ scsi_probedev(scsi, target, lun) sc_link->target = target; sc_link->lun = lun; sc_link->device = &probe_switch; + sc_link->inquiry_flags = 0; /* * Ask the device what it is @@ -430,6 +431,11 @@ scsi_probedev(scsi, target, lun) if ((sc_link->quirks & SDEV_NOLUNS) == 0) scsi->moreluns |= (1 << target); + /* + * Save INQUIRY "flags" (SID_Linked, etc.) for low-level drivers. + */ + sc_link->inquiry_flags = inqbuf.flags; + /* * note what BASIC type of device it is */ diff --git a/sys/scsi/scsiconf.h b/sys/scsi/scsiconf.h index b7258e3027c..e48537042db 100644 --- a/sys/scsi/scsiconf.h +++ b/sys/scsi/scsiconf.h @@ -141,6 +141,7 @@ struct scsi_link { #define SDEV_NOSYNCWIDE 0x02 /* does not grok SDTR or WDTR */ #define SDEV_NOLUNS 0x04 /* does not grok LUNs */ #define SDEV_FORCELUNS 0x08 /* prehistoric drive/ctlr groks LUNs */ + u_int8_t inquiry_flags; /* copy of flags from probe INQUIRY */ struct scsi_device *device; /* device entry points etc. */ void *device_softc; /* needed for call to foo_start */ struct scsi_adapter *adapter; /* adapter entry points etc. */