xref: /titanic_44/usr/src/uts/common/io/usb/scsa2usb/scsa2usb.conf (revision f0e308969424e7466232f0795ba1891698c3adf7)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
577e51571Sgongtian zhao - Sun Microsystems - Beijing China# Common Development and Distribution License (the "License").
677e51571Sgongtian zhao - Sun Microsystems - Beijing China# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
2177e51571Sgongtian zhao - Sun Microsystems - Beijing China# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
227c478bd9Sstevel@tonic-gate# Use is subject to license terms.
237c478bd9Sstevel@tonic-gate#
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate# scsa2usb.conf file
287c478bd9Sstevel@tonic-gate#
297c478bd9Sstevel@tonic-gate#       WARNING: This is an UNSTABLE configuration file. Its contents
307c478bd9Sstevel@tonic-gate#               may change at any time.
317c478bd9Sstevel@tonic-gate#
327c478bd9Sstevel@tonic-gate# Records in this file may be used to override the vendor-supplied subclass
337c478bd9Sstevel@tonic-gate# and protocol values for USB mass storage devices. Note: only non-class-
347c478bd9Sstevel@tonic-gate# compliant values for subclass and protocol (e.g. 0xff) will be overridden.
357c478bd9Sstevel@tonic-gate# If a device supplies legal, class-compliant values for these fields, those
367c478bd9Sstevel@tonic-gate# values will not be overridden.
377c478bd9Sstevel@tonic-gate#
387c478bd9Sstevel@tonic-gate# Records in this file may also be used to override the default power
397c478bd9Sstevel@tonic-gate# management behavior of USB mass storage devices.
407c478bd9Sstevel@tonic-gate#
417c478bd9Sstevel@tonic-gate# A record in this file has the following format:-
427c478bd9Sstevel@tonic-gate# "vid=vId pid=pId rev=revision subclass=override protocol=override pm=pmvalue
437c478bd9Sstevel@tonic-gate#	removable=remvalue modesense=modesensevalue"
447c478bd9Sstevel@tonic-gate#
457c478bd9Sstevel@tonic-gate# where:
467c478bd9Sstevel@tonic-gate#	vId/pId/revision: are obtained from
477c478bd9Sstevel@tonic-gate#	'prtconf -v' output for the device
487c478bd9Sstevel@tonic-gate#
497c478bd9Sstevel@tonic-gate#	vendorId is the hardware property 'usb-vendor-id'
507c478bd9Sstevel@tonic-gate#	productId is the hardware property 'usb-product-id'
517c478bd9Sstevel@tonic-gate#	revision is the hardware property 'usb-revision-id'
527c478bd9Sstevel@tonic-gate#
537c478bd9Sstevel@tonic-gate#	subclass override - could be either "ufi", "scsi", or "atapi"
547c478bd9Sstevel@tonic-gate#		where	"ufi" -> Device follows UFI transport
557c478bd9Sstevel@tonic-gate#			"atapi" -> Device follows ATAPI transport
567c478bd9Sstevel@tonic-gate#			"scsi" -> Device follows SCSI transport
577c478bd9Sstevel@tonic-gate#
587c478bd9Sstevel@tonic-gate#	These values are part of USB Interface descriptor for that device.
59*f0e30896Sguoqing zhu - Sun Microsystems - Beijing China#		bInterfaceSubClass	type
607c478bd9Sstevel@tonic-gate#		0x1			"scsi"
617c478bd9Sstevel@tonic-gate#		0x2			"atapi"
627c478bd9Sstevel@tonic-gate#		0x4			"ufi"
637c478bd9Sstevel@tonic-gate#		0x5			"atapi"
647c478bd9Sstevel@tonic-gate#		0x6			"scsi"
657c478bd9Sstevel@tonic-gate#
667c478bd9Sstevel@tonic-gate#	protocol override - could be either "cbi", "cb", or "bo"
677c478bd9Sstevel@tonic-gate#		where	"cbi" -> Control/Bulk/Interrupt device
687c478bd9Sstevel@tonic-gate#			"cb" -> Control/Bulk/Interrupt device with no
697c478bd9Sstevel@tonic-gate#				interrupt pipe status
707c478bd9Sstevel@tonic-gate#			"bo" -> Bulk Only device
717c478bd9Sstevel@tonic-gate#
727c478bd9Sstevel@tonic-gate#	These values are part of USB Interface descriptor for that device.
73*f0e30896Sguoqing zhu - Sun Microsystems - Beijing China#		bInterfaceProtocol	type
747c478bd9Sstevel@tonic-gate#		0x0			"cbi"
757c478bd9Sstevel@tonic-gate#		0x1			"cb"
767c478bd9Sstevel@tonic-gate#		0x2			"bo" - zip protocol
777c478bd9Sstevel@tonic-gate#		0x50			"bo"
787c478bd9Sstevel@tonic-gate#
797c478bd9Sstevel@tonic-gate#	pmvalue - "off" if device is not to be power managed.
807c478bd9Sstevel@tonic-gate#		This is the only legal value for this parameter.
817c478bd9Sstevel@tonic-gate#		This parameter is included because some devices
827c478bd9Sstevel@tonic-gate#		are not capable of being power-managed, i.e. they
837c478bd9Sstevel@tonic-gate#		will not respond after having their power lowered.
847c478bd9Sstevel@tonic-gate#		If this is the case, the device should have power
857c478bd9Sstevel@tonic-gate#		management disabled by setting this to "off".
867c478bd9Sstevel@tonic-gate#
870167b58cScg149915#	remvalue - "true" if the device's removable media information
880167b58cScg149915#		in its hardware inquiry data is to be overridden. This
890167b58cScg149915#		is the only legal value for this parameter.
900167b58cScg149915#
910167b58cScg149915#	NOTE: In previous releases, the removable media information
920167b58cScg149915#		was always overridden and the only legal value was "false".
930167b58cScg149915#
940167b58cScg149915#		There is a removable media status bit in the USB storage
950167b58cScg149915#		device's inquiry data to indicate if the device has a media
960167b58cScg149915#		that can be removed. Usually only devices like floppy drives
976d9a41ffSqz150045#		or CD/DVD drives that really have a removable media can
986d9a41ffSqz150045#		have this bit set and be called removable media devices.
990167b58cScg149915#		Solaris treats removable media devices and non-removable
1000167b58cScg149915#		media devices differently. Refer to "System	Administration
1010167b58cScg149915#		Guide: Devices and File Systems" - "Using USB Devices
1020167b58cScg149915#		(Tasks)" - "Using USB Mass Storage Devices" section for
1030167b58cScg149915#		the differences in system behavior of treating removable
1040167b58cScg149915#		media devices and non-removable	media devices.
1056d9a41ffSqz150045#
1060167b58cScg149915#		By default, Solaris will treat USB storage devices as
1070167b58cScg149915#		removable media devices depending on the removable media
1080167b58cScg149915#		bit value. In some cases this may be undesirable and the
1090167b58cScg149915#		behavior of the previous releases should be preserved. In
1100167b58cScg149915#		this case the removable media bit value should be overridden.
1110167b58cScg149915#		By setting "remvalue" to "true", the information provided
1120167b58cScg149915#		by the device is ignored. Consequently a USB hard disk
1130167b58cScg149915#		is treated as a removable media disk and will not show in
1140167b58cScg149915#		format(1M) disk list.
1157c478bd9Sstevel@tonic-gate#
1167c478bd9Sstevel@tonic-gate#	modesensevalue - "false" if the device cannot handle mode sense
1177c478bd9Sstevel@tonic-gate#		requests. This is the only legal value for this
1187c478bd9Sstevel@tonic-gate#		parameter. Some devices choke on mode sense requests
1197c478bd9Sstevel@tonic-gate#		and become unusable.
1207c478bd9Sstevel@tonic-gate#
1217c478bd9Sstevel@tonic-gate#	reduced-cmd-support	- "true" if the device cannot handle
1222115f0c6Ssl147100#		mode sense, or start/stop, or doorlock, or doesn not
1232115f0c6Ssl147100#		report correct residues on data transfers.
1242115f0c6Ssl147100#		This is the only legal value for this parameter. This
1252115f0c6Ssl147100#		setting is recommended for USB memory sticks and USB2.0
1262115f0c6Ssl147100#		enclosures which may not be USB Mass Storage spec
1272115f0c6Ssl147100#		compliant.
1287c478bd9Sstevel@tonic-gate#
1297c478bd9Sstevel@tonic-gate# NOTE: As a special case, "*" may be used as a wildcard which matches
1307c478bd9Sstevel@tonic-gate#	any field. This is useful in situations where more than one
1317c478bd9Sstevel@tonic-gate#	vendor produces a particular model of a product, one vendor
1327c478bd9Sstevel@tonic-gate#	produces more than one product with the same characteristics,
1337c478bd9Sstevel@tonic-gate#	or a product has more than one revision. The subclass and
1347c478bd9Sstevel@tonic-gate#	protocol override values may also contain "*" if one or the
1357c478bd9Sstevel@tonic-gate#	the other does not require an override value.
1367c478bd9Sstevel@tonic-gate#
1377c478bd9Sstevel@tonic-gate# For the properties to take effect, reboot the system.
1387c478bd9Sstevel@tonic-gate#
1397c478bd9Sstevel@tonic-gate# To create this list, first COPY the "attribute-override-list =" line
1407c478bd9Sstevel@tonic-gate# to the end of the file and uncomment it.
1417c478bd9Sstevel@tonic-gate#
1427c478bd9Sstevel@tonic-gate# Then COPY sample records and uncomment them or create new records.
1437c478bd9Sstevel@tonic-gate# The list consists of one or more records separated by commas and
1447c478bd9Sstevel@tonic-gate# terminated by a semicolon.
1457c478bd9Sstevel@tonic-gate#
1467c478bd9Sstevel@tonic-gate# IMPORTANT: CREATE THE LIST BY ENTERING NEW RECORDS AFTER THE LAST LINE
1477c478bd9Sstevel@tonic-gate# OF THE FILE. TO PREVENT CHANGES BEING LOST WHEN THIS FILE IS UPGRADED,
1487c478bd9Sstevel@tonic-gate# DO NOT UNCOMMENT LINES "IN PLACE."
1497c478bd9Sstevel@tonic-gate#
1507c478bd9Sstevel@tonic-gate#attribute-override-list =
1517c478bd9Sstevel@tonic-gate#
1527c478bd9Sstevel@tonic-gate# for Sony DSC-S85 USB Digital camera:
1537c478bd9Sstevel@tonic-gate# "vid=0x54c pid=0x10 rev=* subclass=ufi protocol=cb",
1547c478bd9Sstevel@tonic-gate#
1557c478bd9Sstevel@tonic-gate# for SanDisk SDDR-05a CF:
1567c478bd9Sstevel@tonic-gate# "vid=0x781 pid=1 rev=* subclass=ufi protocol=cb";
1577c478bd9Sstevel@tonic-gate#
1587c478bd9Sstevel@tonic-gate# to apply to all USB Mass Storage devices:
1597c478bd9Sstevel@tonic-gate# "vid=* reduced-cmd-support=true";
1607c478bd9Sstevel@tonic-gate#
1617c478bd9Sstevel@tonic-gate# (this is not recommended for CD and DVD reader/writers but may work
1627c478bd9Sstevel@tonic-gate# well with USB memory sticks)
1637c478bd9Sstevel@tonic-gate#
1647c478bd9Sstevel@tonic-gate# ANYTHING CHANGED BEFORE THIS POINT MAY BE OVERWRITTEN IN UPGRADE
165