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