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
5602ca9eaScth  * Common Development and Distribution License (the "License").
6602ca9eaScth  * 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*4c06356bSdh  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
247c478bd9Sstevel@tonic-gate  */
257c478bd9Sstevel@tonic-gate 
267c478bd9Sstevel@tonic-gate #ifdef	_KERNEL
277c478bd9Sstevel@tonic-gate 
28602ca9eaScth #include <sys/scsi/scsi_types.h>
297c478bd9Sstevel@tonic-gate 
307c478bd9Sstevel@tonic-gate /*
317c478bd9Sstevel@tonic-gate  * Autoconfiguration Dependent Data
327c478bd9Sstevel@tonic-gate  */
337c478bd9Sstevel@tonic-gate /*
347c478bd9Sstevel@tonic-gate  * Many defines in this file have built in parallel bus assumption
357c478bd9Sstevel@tonic-gate  * which might need to change as other interconnect evolve.
367c478bd9Sstevel@tonic-gate  */
377c478bd9Sstevel@tonic-gate 
387c478bd9Sstevel@tonic-gate /*
397c478bd9Sstevel@tonic-gate  * SCSI options word- defines are kept in <scsi/conf/autoconf.h>
407c478bd9Sstevel@tonic-gate  *
417c478bd9Sstevel@tonic-gate  * All this options word does is to enable such capabilities. Each
427c478bd9Sstevel@tonic-gate  * implementation may disable this word, or ignore it entirely.
437c478bd9Sstevel@tonic-gate  * Changing this word after system autoconfiguration is not guaranteed
447c478bd9Sstevel@tonic-gate  * to cause any change in the operation of the system.
457c478bd9Sstevel@tonic-gate  */
467c478bd9Sstevel@tonic-gate 
477c478bd9Sstevel@tonic-gate int scsi_options =
48d91393a8SChris Horne 	SCSI_OPTIONS_DR			|
49d91393a8SChris Horne 	SCSI_OPTIONS_LINK		|
50d91393a8SChris Horne 	SCSI_OPTIONS_SYNC		|
51d91393a8SChris Horne 	SCSI_OPTIONS_PARITY		|
52d91393a8SChris Horne 	SCSI_OPTIONS_TAG		|
53d91393a8SChris Horne 	SCSI_OPTIONS_FAST		|
54d91393a8SChris Horne 	SCSI_OPTIONS_WIDE		|
55d91393a8SChris Horne 	SCSI_OPTIONS_FAST20		|
56d91393a8SChris Horne 	SCSI_OPTIONS_FAST40		|
57d91393a8SChris Horne 	SCSI_OPTIONS_FAST80		|
58d91393a8SChris Horne 	SCSI_OPTIONS_FAST160		|
59d91393a8SChris Horne 	SCSI_OPTIONS_FAST320		|
60d91393a8SChris Horne 	SCSI_OPTIONS_NLUNS_DEFAULT	|
61d91393a8SChris Horne 	SCSI_OPTIONS_QAS		|
62d91393a8SChris Horne 	0;
637c478bd9Sstevel@tonic-gate 
647c478bd9Sstevel@tonic-gate /*
65d91393a8SChris Horne  * Scsi bus or device reset recovery time in milliseconds.
667c478bd9Sstevel@tonic-gate  */
677c478bd9Sstevel@tonic-gate unsigned int	scsi_reset_delay = SCSI_DEFAULT_RESET_DELAY;
687c478bd9Sstevel@tonic-gate 
697c478bd9Sstevel@tonic-gate /*
70d91393a8SChris Horne  * SCSI selection timeout in milliseconds.
717c478bd9Sstevel@tonic-gate  */
727c478bd9Sstevel@tonic-gate int	scsi_selection_timeout = SCSI_DEFAULT_SELECTION_TIMEOUT;
737c478bd9Sstevel@tonic-gate 
747c478bd9Sstevel@tonic-gate /*
757c478bd9Sstevel@tonic-gate  * Default scsi host id.  Note, this variable is only used if the
767c478bd9Sstevel@tonic-gate  * "scsi-initiator-id" cannot be retrieved from openproms.  This is only
777c478bd9Sstevel@tonic-gate  * a problem with older platforms which don't have openproms and usage
787c478bd9Sstevel@tonic-gate  * of the sport-8 with openproms 1.x.
797c478bd9Sstevel@tonic-gate  */
807c478bd9Sstevel@tonic-gate int	scsi_host_id = 7;
817c478bd9Sstevel@tonic-gate 
827c478bd9Sstevel@tonic-gate /*
837c478bd9Sstevel@tonic-gate  * Maximum tag age limit.
847c478bd9Sstevel@tonic-gate  * Note exceeding tag age limit of 2 is fairly common;
857c478bd9Sstevel@tonic-gate  * refer to 1164758
867c478bd9Sstevel@tonic-gate  */
877c478bd9Sstevel@tonic-gate int	scsi_tag_age_limit = 2;
887c478bd9Sstevel@tonic-gate 
897c478bd9Sstevel@tonic-gate /*
907c478bd9Sstevel@tonic-gate  * scsi watchdog tick (secs)
917c478bd9Sstevel@tonic-gate  * Note: with tagged queueing, timeouts are highly inaccurate and therefore
927c478bd9Sstevel@tonic-gate  *	 it doesn't make sense to monitor every second.
937c478bd9Sstevel@tonic-gate  */
947c478bd9Sstevel@tonic-gate int	scsi_watchdog_tick = 10;
957c478bd9Sstevel@tonic-gate 
96602ca9eaScth /*
97602ca9eaScth  * default scsi target driver "fm-capable" property value
98602ca9eaScth  */
99602ca9eaScth int	scsi_fm_capable = DDI_FM_EREPORT_CAPABLE;
100602ca9eaScth 
101*4c06356bSdh /*
102*4c06356bSdh  * SCSI enumeration options defines are kept in <scsi/conf/autoconf.h>.
103*4c06356bSdh  * When scsi_enumeration is enabled, driver.conf enumeration is unnecessary.
104*4c06356bSdh  *
105*4c06356bSdh  * The global variable "scsi_enumeration" is used as the default value of the
106*4c06356bSdh  * "scsi-enumeration" property. In addition to enabline/disabling enumeration
107*4c06356bSdh  * (bit 0), target and lun threading can be specified.
108*4c06356bSdh  *
109*4c06356bSdh  *	0	driver.conf enumeration
110*4c06356bSdh  *	1	dynamic enumeration with target/lun multi-threading.
111*4c06356bSdh  *	3	dynamic enumeration with lun multi-threading disabled.
112*4c06356bSdh  *	5	dynamic enumeration with target multi-threading disabled;
113*4c06356bSdh  *	7	dynamic enumeration with target/lun multi-threading disabled.
114*4c06356bSdh  *
115*4c06356bSdh  * Default is currently driver.conf enumeration (0).
116*4c06356bSdh  */
117*4c06356bSdh int	scsi_enumeration = 0;
118*4c06356bSdh 
1197c478bd9Sstevel@tonic-gate #endif	/* _KERNEL */
120