1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 1998,2002 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #pragma ident	"%Z%%M%	%I%	%E% SMI"
28 
29 #ifdef	_KERNEL
30 
31 #include <sys/scsi/conf/autoconf.h>
32 
33 /*
34  * Autoconfiguration Dependent Data
35  */
36 /*
37  * Many defines in this file have built in parallel bus assumption
38  * which might need to change as other interconnect evolve.
39  */
40 
41 /*
42  * SCSI options word- defines are kept in <scsi/conf/autoconf.h>
43  *
44  * All this options word does is to enable such capabilities. Each
45  * implementation may disable this word, or ignore it entirely.
46  * Changing this word after system autoconfiguration is not guaranteed
47  * to cause any change in the operation of the system.
48  */
49 
50 int scsi_options =
51 	SCSI_OPTIONS_PARITY	|
52 	SCSI_OPTIONS_SYNC	|
53 	SCSI_OPTIONS_LINK	|
54 	SCSI_OPTIONS_TAG	|
55 	SCSI_OPTIONS_DR		|
56 	SCSI_OPTIONS_FAST	|
57 	SCSI_OPTIONS_FAST20	|
58 	SCSI_OPTIONS_FAST40	|
59 	SCSI_OPTIONS_FAST80	|
60 	SCSI_OPTIONS_FAST160	|
61 	SCSI_OPTIONS_FAST320	|
62 	SCSI_OPTIONS_QAS	|
63 	SCSI_OPTIONS_WIDE;
64 
65 /*
66  * Scsi bus or device reset recovery time (milli secondss.)
67  */
68 unsigned int	scsi_reset_delay = SCSI_DEFAULT_RESET_DELAY;
69 
70 /*
71  * SCSI selection timeout in milli secondss.
72  */
73 int	scsi_selection_timeout = SCSI_DEFAULT_SELECTION_TIMEOUT;
74 
75 /*
76  * Default scsi host id.  Note, this variable is only used if the
77  * "scsi-initiator-id" cannot be retrieved from openproms.  This is only
78  * a problem with older platforms which don't have openproms and usage
79  * of the sport-8 with openproms 1.x.
80  */
81 int	scsi_host_id = 7;
82 
83 /*
84  * Maximum tag age limit.
85  * Note exceeding tag age limit of 2 is fairly common;
86  * refer to 1164758
87  */
88 int	scsi_tag_age_limit = 2;
89 
90 /*
91  * scsi watchdog tick (secs)
92  * Note: with tagged queueing, timeouts are highly inaccurate and therefore
93  *	 it doesn't make sense to monitor every second.
94  */
95 int	scsi_watchdog_tick = 10;
96 
97 #endif	/* _KERNEL */
98