summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io/scsi/conf/scsi_confdata.c
blob: c229aca6ae4e92a024af28a0524647effe290838 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/*
 * CDDL HEADER START
 *
 * The contents of this file are subject to the terms of the
 * Common Development and Distribution License (the "License").
 * You may not use this file except in compliance with the License.
 *
 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
 * or http://www.opensolaris.org/os/licensing.
 * See the License for the specific language governing permissions
 * and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL HEADER in each
 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
 * If applicable, add the following below this CDDL HEADER, with the
 * fields enclosed by brackets "[]" replaced with your own identifying
 * information: Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
 */
/*
 * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 * Use is subject to license terms.
 */

#ifdef	_KERNEL

#include <sys/scsi/scsi_types.h>

/*
 * Autoconfiguration Dependent Data
 */
/*
 * Many defines in this file have built in parallel bus assumption
 * which might need to change as other interconnect evolve.
 */

/*
 * SCSI options word- defines are kept in <scsi/conf/autoconf.h>
 *
 * All this options word does is to enable such capabilities. Each
 * implementation may disable this word, or ignore it entirely.
 * Changing this word after system autoconfiguration is not guaranteed
 * to cause any change in the operation of the system.
 */

int scsi_options =
	SCSI_OPTIONS_DR			|
	SCSI_OPTIONS_LINK		|
	SCSI_OPTIONS_SYNC		|
	SCSI_OPTIONS_PARITY		|
	SCSI_OPTIONS_TAG		|
	SCSI_OPTIONS_FAST		|
	SCSI_OPTIONS_WIDE		|
	SCSI_OPTIONS_FAST20		|
	SCSI_OPTIONS_FAST40		|
	SCSI_OPTIONS_FAST80		|
	SCSI_OPTIONS_FAST160		|
	SCSI_OPTIONS_FAST320		|
	SCSI_OPTIONS_NLUNS_DEFAULT	|
	SCSI_OPTIONS_QAS		|
	0;

/*
 * Scsi bus or device reset recovery time in milliseconds.
 */
unsigned int	scsi_reset_delay = SCSI_DEFAULT_RESET_DELAY;

/*
 * SCSI selection timeout in milliseconds.
 */
int	scsi_selection_timeout = SCSI_DEFAULT_SELECTION_TIMEOUT;

/*
 * Default scsi host id.  Note, this variable is only used if the
 * "scsi-initiator-id" cannot be retrieved from openproms.  This is only
 * a problem with older platforms which don't have openproms and usage
 * of the sport-8 with openproms 1.x.
 */
int	scsi_host_id = 7;

/*
 * Maximum tag age limit.
 * Note exceeding tag age limit of 2 is fairly common;
 * refer to 1164758
 */
int	scsi_tag_age_limit = 2;

/*
 * scsi watchdog tick (secs)
 * Note: with tagged queueing, timeouts are highly inaccurate and therefore
 *	 it doesn't make sense to monitor every second.
 */
int	scsi_watchdog_tick = 10;

/*
 * default scsi target driver "fm-capable" property value
 */
int	scsi_fm_capable = DDI_FM_EREPORT_CAPABLE;

/*
 * SCSI enumeration options defines are kept in <scsi/conf/autoconf.h>.
 * When scsi_enumeration is enabled, driver.conf enumeration is unnecessary.
 *
 * The global variable "scsi_enumeration" is used as the default value of the
 * "scsi-enumeration" property. In addition to enabline/disabling enumeration
 * (bit 0), target and lun threading can be specified.
 *
 *	0	driver.conf enumeration
 *	1	dynamic enumeration with target/lun multi-threading.
 *	3	dynamic enumeration with lun multi-threading disabled.
 *	5	dynamic enumeration with target multi-threading disabled;
 *	7	dynamic enumeration with target/lun multi-threading disabled.
 *
 * Default is currently driver.conf enumeration (0).
 */
int	scsi_enumeration = 0;

#endif	/* _KERNEL */