summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi/scsi_all.c
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2002-03-11 03:08:17 +0000
committersimokawa <simokawa@FreeBSD.org>2002-03-11 03:08:17 +0000
commit0b19b34b12f19deaea82cd29989feb30daf433c6 (patch)
tree41e35385e884ce7ce30f1003d797554ce0351aaa /sys/cam/scsi/scsi_all.c
parentaababfffd53cac2ef2f52367c14698f6e5710fd9 (diff)
downloadFreeBSD-src-0b19b34b12f19deaea82cd29989feb30daf433c6.zip
FreeBSD-src-0b19b34b12f19deaea82cd29989feb30daf433c6.tar.gz
Add support for Simplified Direct Access Device in scsi_op_desc().
Diffstat (limited to 'sys/cam/scsi/scsi_all.c')
-rw-r--r--sys/cam/scsi/scsi_all.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c
index 12cfa19..70b3afa 100644
--- a/sys/cam/scsi/scsi_all.c
+++ b/sys/cam/scsi/scsi_all.c
@@ -656,6 +656,10 @@ scsi_op_desc(u_int16_t opcode, struct scsi_inquiry_data *inq_data)
num_tables = 1;
}
+ /* RBC is 'Simplified' Direct Access Device */
+ if (pd_type == T_RBC)
+ pd_type = T_DIRECT;
+
opmask = 1 << pd_type;
for (j = 0; j < num_tables; j++) {
OpenPOWER on IntegriCloud