summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2017-03-18 23:59:50 +0000
committertrasz <trasz@FreeBSD.org>2017-03-18 23:59:50 +0000
commit6513a58a94df98b5f03426aa320cb556fe7749f4 (patch)
tree35f123039047157c3941c24ed7c96a240d0aa11e /sys/cam
parent5da1142241ae59987ea64cc1495dfa8ceaac5f73 (diff)
downloadFreeBSD-src-6513a58a94df98b5f03426aa320cb556fe7749f4.zip
FreeBSD-src-6513a58a94df98b5f03426aa320cb556fe7749f4.tar.gz
MFC r312622:
Add SCSI descriptors for USB Mass Storage. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/ctl/ctl.c3
-rw-r--r--sys/cam/ctl/ctl.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c
index d1219de..ac4a258 100644
--- a/sys/cam/ctl/ctl.c
+++ b/sys/cam/ctl/ctl.c
@@ -10102,6 +10102,9 @@ ctl_inquiry_std(struct ctl_scsiio *ctsio)
} else if (port_type == CTL_PORT_SAS) {
/* SAS (no version claimed) */
scsi_ulto2b(0x0BE0, inq_ptr->version3);
+ } else if (port_type == CTL_PORT_UMASS) {
+ /* USB Mass Storage Class Bulk-Only Transport, Revision 1.0 */
+ scsi_ulto2b(0x1730, inq_ptr->version3);
}
if (lun == NULL) {
diff --git a/sys/cam/ctl/ctl.h b/sys/cam/ctl/ctl.h
index d9a4f5a..3370d15 100644
--- a/sys/cam/ctl/ctl.h
+++ b/sys/cam/ctl/ctl.h
@@ -53,6 +53,7 @@ typedef enum {
CTL_PORT_INTERNAL = 0x08,
CTL_PORT_ISCSI = 0x10,
CTL_PORT_SAS = 0x20,
+ CTL_PORT_UMASS = 0x40,
CTL_PORT_ALL = 0xff,
CTL_PORT_ISC = 0x100 // FC port for inter-shelf communication
} ctl_port_type;
OpenPOWER on IntegriCloud