Author: trasz
Date: Sun Jan 22 15:32:17 2017
New Revision: 312622
URL: https://svnweb.freebsd.org/changeset/base/312622

Log:
  Add SCSI descriptors for USB Mass Storage.
  
  MFC after:    2 weeks
  Sponsored by: The FreeBSD Foundation

Modified:
  head/sys/cam/ctl/ctl.c
  head/sys/cam/ctl/ctl.h

Modified: head/sys/cam/ctl/ctl.c
==============================================================================
--- head/sys/cam/ctl/ctl.c      Sun Jan 22 15:27:14 2017        (r312621)
+++ head/sys/cam/ctl/ctl.c      Sun Jan 22 15:32:17 2017        (r312622)
@@ -10103,6 +10103,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) {

Modified: head/sys/cam/ctl/ctl.h
==============================================================================
--- head/sys/cam/ctl/ctl.h      Sun Jan 22 15:27:14 2017        (r312621)
+++ head/sys/cam/ctl/ctl.h      Sun Jan 22 15:32:17 2017        (r312622)
@@ -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;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to