diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2006-02-09 15:26:18 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-02-27 23:24:09 -0600 |
commit | 1bfc5d9d5eb8e1a2efacc306bc55c248ed259a8e (patch) | |
tree | 503f6cd4f481e16db7c3b00326e07b0dca8942e8 /include/scsi/scsi_device.h | |
parent | 8cac814501677e9f6a824cf4d423122ac8d67fcb (diff) | |
download | blackbird-op-linux-1bfc5d9d5eb8e1a2efacc306bc55c248ed259a8e.tar.gz blackbird-op-linux-1bfc5d9d5eb8e1a2efacc306bc55c248ed259a8e.zip |
[SCSI] Recognize missing LUNs for non-standard devices
Some non-standard SCSI targets or protocols, such as USB UFI, report "no
LUN present" by setting the Peripheral Device Type to 0x1f and the
Peripheral Qualifier to 0 (not 3 as the standard requires) in the INQUIRY
response. This patch (as650b) adds a new target flag and code to
accomodate such targets.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi/scsi_device.h')
-rw-r--r-- | include/scsi/scsi_device.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index cde84b39bb65..8d77da932d2c 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h @@ -167,7 +167,10 @@ struct scsi_target { unsigned int channel; unsigned int id; /* target id ... replace * scsi_device.id eventually */ - unsigned long create:1; /* signal that it needs to be added */ + unsigned int create:1; /* signal that it needs to be added */ + unsigned int pdt_1f_for_no_lun; /* PDT = 0x1f */ + /* means no lun present */ + char scsi_level; void *hostdata; /* available to low-level driver */ unsigned long starget_data[0]; /* for the transport */ |