2 .\" Copyright (c) 2006, Sun Microsystems, Inc., All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH SCSI_HBA_LOOKUP_CAPSTR 9F "May 13, 2006"
8 scsi_hba_lookup_capstr \- return index matching capability string
12 #include <sys/scsi/scsi.h>
16 \fBint\fR \fBscsi_hba_lookup_capstr\fR(\fBchar *\fR\fIcapstr\fR);
22 Solaris architecture specific (Solaris DDI).
36 The \fBscsi_hba_lookup_capstr()\fR function attempts to match \fIcapstr\fR
37 against a known set of capability strings. If found, the defined index for the
38 matched capability is returned.
41 The following indices are defined for the capability strings listed below.
45 \fB\fBSCSI_CAP_DMA_MAX\fR\fR
49 "\fBdma-max\fR" or "\fBdma_max\fR"
55 \fB\fBSCSI_CAP_MSG_OUT\fR\fR
59 "\fBmsg-out\fR" or "\fBmsg_out\fR"
65 \fB\fBSCSI_CAP_DISCONNECT\fR\fR
75 \fB\fBSCSI_CAP_SYNCHRONOUS\fR\fR
85 \fB\fBSCSI_CAP_WIDE_XFER\fR\fR
89 "\fBwide-xfer\fR" or "\fBwide_xfer\fR"
95 \fB\fBSCSI_CAP_PARITY\fR\fR
105 \fB\fBSCSI_CAP_INITIATOR_ID\fR\fR
115 \fB\fBSCSI_CAP_UNTAGGED_QING\fR\fR
119 "\fBuntagged-qing\fR"
125 \fB\fBSCSI_CAP_TAGGED_QING\fR\fR
135 \fB\fBSCSI_CAP_ARQ\fR\fR
145 \fB\fBSCSI_CAP_LINKED_CMDS\fR\fR
155 \fB\fBSCSI_CAP_SECTOR_SIZE\fR\fR
165 \fB\fBSCSI_CAP_TOTAL_SECTORS\fR\fR
169 "\fBtotal-sectors\fR"
175 \fB\fBSCSI_CAP_GEOMETRY\fR\fR
185 \fB\fBSCSI_CAP_RESET_NOTIFICATION\fR\fR
189 "\fBreset-notification\fR"
195 \fB\fBSCSI_CAP_QFULL_RETRIES\fR\fR
199 "\fBqfull-retries\fR"
205 \fB\fBSCSI_CAP_QFULL_RETRY_INTERVAL\fR\fR
209 "\fBqfull-retry-interval\fR"
215 \fB\fBSCSI_CAP_LUN_RESET\fR\fR
225 \fB\fBSCSI_CAP_CDB_LEN\fR\fR
229 "\fBmax-cdb-length\fR"
235 The \fBscsi_hba_lookup_capstr()\fR function returns a non-negative index value
236 that corresponds to the capability string. If the string does not match a known
237 capability, \fB-1\fR is returned.
241 The \fBscsi_hba_lookup_capstr()\fR function can be called from user, interrupt,
246 See \fBattributes\fR(5) for descriptions of the following attributes:
254 ATTRIBUTE TYPE ATTRIBUTE VALUE
256 Interface Stability Committed
262 \fBtran_getcap\fR(9E), \fBtran_setcap\fR(9E), \fBscsi_ifgetcap\fR(9F),
263 \fBscsi_ifsetcap\fR(9F), \fBscsi_reset_notify\fR(9F)
266 \fIWriting Device Drivers\fR