Save inquiry flags in sc_link so low-level drivers can use it.
authorbriggs <briggs@openbsd.org>
Wed, 10 Jan 1996 19:08:04 +0000 (19:08 +0000)
committerbriggs <briggs@openbsd.org>
Wed, 10 Jan 1996 19:08:04 +0000 (19:08 +0000)
sys/scsi/scsiconf.c
sys/scsi/scsiconf.h

index f47f33c..756de6c 100644 (file)
@@ -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
         */
index b7258e3..e485370 100644 (file)
@@ -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. */