xref: /titanic_51/usr/src/uts/intel/io/scsi/targets/st.conf (revision 39d5b283b19bb4c2b286b4375d8338d921f6d654)
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
5*39d5b283Sstevel# Common Development and Distribution License (the "License").
6*39d5b283Sstevel# 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#
217c478bd9Sstevel@tonic-gate#
22*39d5b283Sstevel# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate#pragma ident	"%Z%%M%	%I%	%E% SMI"
287c478bd9Sstevel@tonic-gate#
297c478bd9Sstevel@tonic-gate
307c478bd9Sstevel@tonic-gate#
317c478bd9Sstevel@tonic-gate# The officially supported devices do not require a entry under
327c478bd9Sstevel@tonic-gate# tape-config-list as their configuration is built in to the driver.
337c478bd9Sstevel@tonic-gate#
347c478bd9Sstevel@tonic-gate#
357c478bd9Sstevel@tonic-gate# A non configured drive will say Unconfigured Drive: and have single quoted
36*39d5b283Sstevel# Vendor and Product strings displayed when its status is checked with mt.
377c478bd9Sstevel@tonic-gate#
387c478bd9Sstevel@tonic-gate# mt -f /dev/rmt/# status
397c478bd9Sstevel@tonic-gate# Unconfigured Drive: Vendor 'VENDOR  ' Product 'A Product ID    '
407c478bd9Sstevel@tonic-gate#	    sense key(0x0)= No Additional Sense   residual= 0   retries= 0
417c478bd9Sstevel@tonic-gate#	    file no= 0   block no= 0
427c478bd9Sstevel@tonic-gate#
437c478bd9Sstevel@tonic-gate# If your drive is displayed like this first check to see if a newer version
447c478bd9Sstevel@tonic-gate# of the st driver has added support for your drive.
457c478bd9Sstevel@tonic-gate#
467c478bd9Sstevel@tonic-gate# If your drive is not supported by Sun, check the drive manufacturer's
477c478bd9Sstevel@tonic-gate# documentation or web site for their recommended configuration strings.
487c478bd9Sstevel@tonic-gate#
497c478bd9Sstevel@tonic-gate# To configure a drive not supported by the driver, use the single quoted
507c478bd9Sstevel@tonic-gate# Vendor and Product strings to create a entry under tape-config-list.
517c478bd9Sstevel@tonic-gate#
527c478bd9Sstevel@tonic-gate# A starting point for your st.conf entry can be obtained by reading the
537c478bd9Sstevel@tonic-gate# current DEFAULT configuration from the driver using mt.
547c478bd9Sstevel@tonic-gate#
557c478bd9Sstevel@tonic-gate# mt -f /dev/rmt/# config
567c478bd9Sstevel@tonic-gate# "SONY    SDX-700C", "SONY    SDX-700C", "SONYSDX700C";
577c478bd9Sstevel@tonic-gate# SONYSDX700C = \
587c478bd9Sstevel@tonic-gate#    2,0x12,0,0x1865B,4,0x00,0x00,0x00,0x00,0,120,120,3600,3600,3600,3600,3600;
597c478bd9Sstevel@tonic-gate#
607c478bd9Sstevel@tonic-gate#
617c478bd9Sstevel@tonic-gate# Notes:
627c478bd9Sstevel@tonic-gate#	Any spaces in the Vendor field must be kept so that it is 8
637c478bd9Sstevel@tonic-gate#	characters long. Trailing spaces in the Product field can be removed.
647c478bd9Sstevel@tonic-gate#
657c478bd9Sstevel@tonic-gate#	To add this configuration information, first uncomment the
667c478bd9Sstevel@tonic-gate#	"tape-config-list=" line, and add the first configuration line
677c478bd9Sstevel@tonic-gate#	immediately afterward.  If there is more than one entry in the
687c478bd9Sstevel@tonic-gate#	tape-config-list, all entries but the last must end with a comma.
697c478bd9Sstevel@tonic-gate#	The last entry ends with a semicolon.
707c478bd9Sstevel@tonic-gate#
717c478bd9Sstevel@tonic-gate#	See the driver.conf(4) man page for general information on the conf
727c478bd9Sstevel@tonic-gate#	file format, and the st(7d) man page for information specific to st.conf.
737c478bd9Sstevel@tonic-gate#
747c478bd9Sstevel@tonic-gate# Example:
757c478bd9Sstevel@tonic-gate#tape-config-list=
767c478bd9Sstevel@tonic-gate# "VENDOR  A Product ID", "A Prettier Name to Display", "A-Config-Name",
777c478bd9Sstevel@tonic-gate# "VENDORB Other Product ID", "An Other Pretty Name", "Other-Config-Name";
787c478bd9Sstevel@tonic-gate#
797c478bd9Sstevel@tonic-gate# Then for each config-Name there must be a setup string that looks like this.
807c478bd9Sstevel@tonic-gate#
817c478bd9Sstevel@tonic-gate# A-Config-Name = \
827c478bd9Sstevel@tonic-gate#   2,0x34,0,0x18659,4,0x47,0x47,0x47,0x47,1,120,120,3600,3600,3600,3600,3600;
837c478bd9Sstevel@tonic-gate# Other-Config-Name = 1,0x3B,0,0x18659,4,0x40,0x40,0x40,0x40,3;
847c478bd9Sstevel@tonic-gate#
857c478bd9Sstevel@tonic-gate# For specific details for of values to use see the st(7D) man pages and
867c478bd9Sstevel@tonic-gate# drive vendor manuals.
877c478bd9Sstevel@tonic-gate#
887c478bd9Sstevel@tonic-gate
897c478bd9Sstevel@tonic-gate
907c478bd9Sstevel@tonic-gate
917c478bd9Sstevel@tonic-gatename="st" class="scsi" target=0 lun=0;
927c478bd9Sstevel@tonic-gatename="st" class="scsi" target=1 lun=0;
937c478bd9Sstevel@tonic-gatename="st" class="scsi" target=2 lun=0;
947c478bd9Sstevel@tonic-gatename="st" class="scsi" target=3 lun=0;
957c478bd9Sstevel@tonic-gatename="st" class="scsi" target=4 lun=0;
967c478bd9Sstevel@tonic-gatename="st" class="scsi" target=5 lun=0;
977c478bd9Sstevel@tonic-gatename="st" class="scsi" target=6 lun=0;
987c478bd9Sstevel@tonic-gate
997c478bd9Sstevel@tonic-gate#
1007c478bd9Sstevel@tonic-gate# In case there are wide tape drives, one can use these targets
1017c478bd9Sstevel@tonic-gate#
1027c478bd9Sstevel@tonic-gate#name="st" class="scsi" target=8 lun=0;
1037c478bd9Sstevel@tonic-gate#name="st" class="scsi" target=9 lun=0;
1047c478bd9Sstevel@tonic-gate#name="st" class="scsi" target=10 lun=0;
1057c478bd9Sstevel@tonic-gate#name="st" class="scsi" target=11 lun=0;
1067c478bd9Sstevel@tonic-gate#name="st" class="scsi" target=12 lun=0;
1077c478bd9Sstevel@tonic-gate#name="st" class="scsi" target=13 lun=0;
1087c478bd9Sstevel@tonic-gate#name="st" class="scsi" target=14 lun=0;
1097c478bd9Sstevel@tonic-gate#name="st" class="scsi" target=15 lun=0;
110