xref: /onnv-gate/usr/src/uts/common/io/scsi/conf/scsi_confdata.c (revision 10696:cd0f390dd9e2)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * CDDL HEADER START
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
56640Scth  * Common Development and Distribution License (the "License").
66640Scth  * You may not use this file except in compliance with the License.
70Sstevel@tonic-gate  *
80Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate  * See the License for the specific language governing permissions
110Sstevel@tonic-gate  * and limitations under the License.
120Sstevel@tonic-gate  *
130Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate  *
190Sstevel@tonic-gate  * CDDL HEADER END
200Sstevel@tonic-gate  */
210Sstevel@tonic-gate /*
22*10696SDavid.Hollister@Sun.COM  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate  * Use is subject to license terms.
240Sstevel@tonic-gate  */
250Sstevel@tonic-gate 
260Sstevel@tonic-gate #ifdef	_KERNEL
270Sstevel@tonic-gate 
286640Scth #include <sys/scsi/scsi_types.h>
290Sstevel@tonic-gate 
300Sstevel@tonic-gate /*
310Sstevel@tonic-gate  * Autoconfiguration Dependent Data
320Sstevel@tonic-gate  */
330Sstevel@tonic-gate /*
340Sstevel@tonic-gate  * Many defines in this file have built in parallel bus assumption
350Sstevel@tonic-gate  * which might need to change as other interconnect evolve.
360Sstevel@tonic-gate  */
370Sstevel@tonic-gate 
380Sstevel@tonic-gate /*
390Sstevel@tonic-gate  * SCSI options word- defines are kept in <scsi/conf/autoconf.h>
400Sstevel@tonic-gate  *
410Sstevel@tonic-gate  * All this options word does is to enable such capabilities. Each
420Sstevel@tonic-gate  * implementation may disable this word, or ignore it entirely.
430Sstevel@tonic-gate  * Changing this word after system autoconfiguration is not guaranteed
440Sstevel@tonic-gate  * to cause any change in the operation of the system.
450Sstevel@tonic-gate  */
460Sstevel@tonic-gate 
470Sstevel@tonic-gate int scsi_options =
488017SChris.Horne@Sun.COM 	SCSI_OPTIONS_DR			|
498017SChris.Horne@Sun.COM 	SCSI_OPTIONS_LINK		|
508017SChris.Horne@Sun.COM 	SCSI_OPTIONS_SYNC		|
518017SChris.Horne@Sun.COM 	SCSI_OPTIONS_PARITY		|
528017SChris.Horne@Sun.COM 	SCSI_OPTIONS_TAG		|
538017SChris.Horne@Sun.COM 	SCSI_OPTIONS_FAST		|
548017SChris.Horne@Sun.COM 	SCSI_OPTIONS_WIDE		|
558017SChris.Horne@Sun.COM 	SCSI_OPTIONS_FAST20		|
568017SChris.Horne@Sun.COM 	SCSI_OPTIONS_FAST40		|
578017SChris.Horne@Sun.COM 	SCSI_OPTIONS_FAST80		|
588017SChris.Horne@Sun.COM 	SCSI_OPTIONS_FAST160		|
598017SChris.Horne@Sun.COM 	SCSI_OPTIONS_FAST320		|
608017SChris.Horne@Sun.COM 	SCSI_OPTIONS_NLUNS_DEFAULT	|
618017SChris.Horne@Sun.COM 	SCSI_OPTIONS_QAS		|
628017SChris.Horne@Sun.COM 	0;
630Sstevel@tonic-gate 
640Sstevel@tonic-gate /*
658017SChris.Horne@Sun.COM  * Scsi bus or device reset recovery time in milliseconds.
660Sstevel@tonic-gate  */
670Sstevel@tonic-gate unsigned int	scsi_reset_delay = SCSI_DEFAULT_RESET_DELAY;
680Sstevel@tonic-gate 
690Sstevel@tonic-gate /*
708017SChris.Horne@Sun.COM  * SCSI selection timeout in milliseconds.
710Sstevel@tonic-gate  */
720Sstevel@tonic-gate int	scsi_selection_timeout = SCSI_DEFAULT_SELECTION_TIMEOUT;
730Sstevel@tonic-gate 
740Sstevel@tonic-gate /*
750Sstevel@tonic-gate  * Default scsi host id.  Note, this variable is only used if the
760Sstevel@tonic-gate  * "scsi-initiator-id" cannot be retrieved from openproms.  This is only
770Sstevel@tonic-gate  * a problem with older platforms which don't have openproms and usage
780Sstevel@tonic-gate  * of the sport-8 with openproms 1.x.
790Sstevel@tonic-gate  */
800Sstevel@tonic-gate int	scsi_host_id = 7;
810Sstevel@tonic-gate 
820Sstevel@tonic-gate /*
830Sstevel@tonic-gate  * Maximum tag age limit.
840Sstevel@tonic-gate  * Note exceeding tag age limit of 2 is fairly common;
850Sstevel@tonic-gate  * refer to 1164758
860Sstevel@tonic-gate  */
870Sstevel@tonic-gate int	scsi_tag_age_limit = 2;
880Sstevel@tonic-gate 
890Sstevel@tonic-gate /*
900Sstevel@tonic-gate  * scsi watchdog tick (secs)
910Sstevel@tonic-gate  * Note: with tagged queueing, timeouts are highly inaccurate and therefore
920Sstevel@tonic-gate  *	 it doesn't make sense to monitor every second.
930Sstevel@tonic-gate  */
940Sstevel@tonic-gate int	scsi_watchdog_tick = 10;
950Sstevel@tonic-gate 
966640Scth /*
976640Scth  * default scsi target driver "fm-capable" property value
986640Scth  */
996640Scth int	scsi_fm_capable = DDI_FM_EREPORT_CAPABLE;
1006640Scth 
101*10696SDavid.Hollister@Sun.COM /*
102*10696SDavid.Hollister@Sun.COM  * SCSI enumeration options defines are kept in <scsi/conf/autoconf.h>.
103*10696SDavid.Hollister@Sun.COM  * When scsi_enumeration is enabled, driver.conf enumeration is unnecessary.
104*10696SDavid.Hollister@Sun.COM  *
105*10696SDavid.Hollister@Sun.COM  * The global variable "scsi_enumeration" is used as the default value of the
106*10696SDavid.Hollister@Sun.COM  * "scsi-enumeration" property. In addition to enabline/disabling enumeration
107*10696SDavid.Hollister@Sun.COM  * (bit 0), target and lun threading can be specified.
108*10696SDavid.Hollister@Sun.COM  *
109*10696SDavid.Hollister@Sun.COM  *	0	driver.conf enumeration
110*10696SDavid.Hollister@Sun.COM  *	1	dynamic enumeration with target/lun multi-threading.
111*10696SDavid.Hollister@Sun.COM  *	3	dynamic enumeration with lun multi-threading disabled.
112*10696SDavid.Hollister@Sun.COM  *	5	dynamic enumeration with target multi-threading disabled;
113*10696SDavid.Hollister@Sun.COM  *	7	dynamic enumeration with target/lun multi-threading disabled.
114*10696SDavid.Hollister@Sun.COM  *
115*10696SDavid.Hollister@Sun.COM  * Default is currently driver.conf enumeration (0).
116*10696SDavid.Hollister@Sun.COM  */
117*10696SDavid.Hollister@Sun.COM int	scsi_enumeration = 0;
118*10696SDavid.Hollister@Sun.COM 
1190Sstevel@tonic-gate #endif	/* _KERNEL */
120