diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-07-11 21:55:47 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-07-11 21:55:47 +0000 |
commit | 3d5c3b1920666af9ac7e6f67a9e31c87bc48649d (patch) | |
tree | 4d884f0af44f5201184f1c06af9846b75ea8a069 /sys/scsi | |
parent | a70def4707f35d41fa19634600aa14c3b2003cd9 (diff) |
the scsi_link structure contained a copy of the inquiry flags and the whole
inquiry. this removes the flags member and makes all its users refer to the
whole inquiry now.
ok miod@ krw@
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/scsiconf.c | 6 | ||||
-rw-r--r-- | sys/scsi/scsiconf.h | 5 | ||||
-rw-r--r-- | sys/scsi/sd.c | 4 |
3 files changed, 6 insertions, 9 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index 006231f02de..b1d5755773a 100644 --- a/sys/scsi/scsiconf.c +++ b/sys/scsi/scsiconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.c,v 1.104 2006/07/11 09:45:53 dlg Exp $ */ +/* $OpenBSD: scsiconf.c,v 1.105 2006/07/11 21:55:46 dlg Exp $ */ /* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */ /* @@ -556,7 +556,6 @@ scsi_probedev(struct scsibus_softc *scsi, struct scsi_inquiry_data *inqbuflun0, sc_link->target = target; sc_link->lun = lun; sc_link->device = &probe_switch; - sc_link->inquiry_flags = 0; SC_DEBUG(sc_link, SDEV_DB2, ("scsi_link created.\n")); @@ -655,9 +654,8 @@ scsi_probedev(struct scsibus_softc *scsi, struct scsi_inquiry_data *inqbuflun0, sc_link->scsi_version = inqbuf.version; /* - * Save INQUIRY "flags" (SID_Linked, etc.) for low-level drivers. + * Save INQUIRY. */ - sc_link->inquiry_flags = inqbuf.flags; memcpy(&sc_link->inqdata, &inqbuf, sizeof(sc_link->inqdata)); /* diff --git a/sys/scsi/scsiconf.h b/sys/scsi/scsiconf.h index 63e11813ff5..762392cb82a 100644 --- a/sys/scsi/scsiconf.h +++ b/sys/scsi/scsiconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.h,v 1.67 2006/07/06 00:41:37 dlg Exp $ */ +/* $OpenBSD: scsiconf.h,v 1.68 2006/07/11 21:55:46 dlg Exp $ */ /* $NetBSD: scsiconf.h,v 1.35 1997/04/02 02:29:38 mycroft Exp $ */ /* @@ -192,12 +192,11 @@ struct scsi_link { #define ADEV_NOTUR 0x1000 /* No TEST UNIT READY */ #define ADEV_NODOORLOCK 0x2000 /* can't lock door */ #define SDEV_ONLYBIG 0x4000 /* always use READ_BIG and WRITE_BIG */ - u_int8_t inquiry_flags; /* copy of flags from probe INQUIRY */ + u_char luns; 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. */ void *adapter_softc; /* needed for call to foo_scsi_cmd */ - u_char luns; struct scsi_inquiry_data inqdata; /* copy of INQUIRY data from probe */ }; diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index fc928eb261e..34f41f6a2ed 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.106 2006/05/18 00:10:05 krw Exp $ */ +/* $OpenBSD: sd.c,v 1.107 2006/07/11 21:55:46 dlg Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /*- @@ -192,7 +192,7 @@ sdattach(parent, self, aux) if ((sc_link->flags & SDEV_ATAPI) && (sc_link->flags & SDEV_REMOVABLE)) sc_link->quirks |= SDEV_NOSYNCCACHE; - if (!(sc_link->inquiry_flags & SID_RelAdr)) + if (!(sc_link->inqdata.flags & SID_RelAdr)) sc_link->quirks |= SDEV_ONLYBIG; /* |