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