Unleashed v1.4
[unleashed.git] / share / man / man9f / scsi_hba_lookup_capstr.9f
blobe3054643930b5fb270381fdaedb46b2f2637ef94
1 '\" te
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"
7 .SH NAME
8 scsi_hba_lookup_capstr \- return index matching capability string
9 .SH SYNOPSIS
10 .LP
11 .nf
12 #include <sys/scsi/scsi.h>
16 \fBint\fR \fBscsi_hba_lookup_capstr\fR(\fBchar *\fR\fIcapstr\fR);
17 .fi
19 .SH INTERFACE LEVEL
20 .sp
21 .LP
22 Solaris architecture specific (Solaris DDI).
23 .SH PARAMETERS
24 .sp
25 .ne 2
26 .na
27 \fB\fIcapstr\fR\fR
28 .ad
29 .RS 10n
30 Pointer to a string
31 .RE
33 .SH DESCRIPTION
34 .sp
35 .LP
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.
39 .sp
40 .LP
41 The following indices are defined for the capability strings listed below.
42 .sp
43 .ne 2
44 .na
45 \fB\fBSCSI_CAP_DMA_MAX\fR\fR
46 .ad
47 .sp .6
48 .RS 4n
49 "\fBdma-max\fR" or "\fBdma_max\fR"
50 .RE
52 .sp
53 .ne 2
54 .na
55 \fB\fBSCSI_CAP_MSG_OUT\fR\fR
56 .ad
57 .sp .6
58 .RS 4n
59 "\fBmsg-out\fR" or "\fBmsg_out\fR"
60 .RE
62 .sp
63 .ne 2
64 .na
65 \fB\fBSCSI_CAP_DISCONNECT\fR\fR
66 .ad
67 .sp .6
68 .RS 4n
69 "\fBdisconnect\fR"
70 .RE
72 .sp
73 .ne 2
74 .na
75 \fB\fBSCSI_CAP_SYNCHRONOUS\fR\fR
76 .ad
77 .sp .6
78 .RS 4n
79 "\fBsynchronous\fR"
80 .RE
82 .sp
83 .ne 2
84 .na
85 \fB\fBSCSI_CAP_WIDE_XFER\fR\fR
86 .ad
87 .sp .6
88 .RS 4n
89 "\fBwide-xfer\fR" or "\fBwide_xfer\fR"
90 .RE
92 .sp
93 .ne 2
94 .na
95 \fB\fBSCSI_CAP_PARITY\fR\fR
96 .ad
97 .sp .6
98 .RS 4n
99 "\fBparity\fR"
103 .ne 2
105 \fB\fBSCSI_CAP_INITIATOR_ID\fR\fR
107 .sp .6
108 .RS 4n
109 "\fBinitiator-id\fR"
113 .ne 2
115 \fB\fBSCSI_CAP_UNTAGGED_QING\fR\fR
117 .sp .6
118 .RS 4n
119 "\fBuntagged-qing\fR"
123 .ne 2
125 \fB\fBSCSI_CAP_TAGGED_QING\fR\fR
127 .sp .6
128 .RS 4n
129 "\fBtagged-qing\fR"
133 .ne 2
135 \fB\fBSCSI_CAP_ARQ\fR\fR
137 .sp .6
138 .RS 4n
139 "\fBauto-rqsense\fR"
143 .ne 2
145 \fB\fBSCSI_CAP_LINKED_CMDS\fR\fR
147 .sp .6
148 .RS 4n
149 "\fBlinked-cmds\fR"
153 .ne 2
155 \fB\fBSCSI_CAP_SECTOR_SIZE\fR\fR
157 .sp .6
158 .RS 4n
159 "\fBsector-size\fR"
163 .ne 2
165 \fB\fBSCSI_CAP_TOTAL_SECTORS\fR\fR
167 .sp .6
168 .RS 4n
169 "\fBtotal-sectors\fR"
173 .ne 2
175 \fB\fBSCSI_CAP_GEOMETRY\fR\fR
177 .sp .6
178 .RS 4n
179 "\fBgeometry\fR"
183 .ne 2
185 \fB\fBSCSI_CAP_RESET_NOTIFICATION\fR\fR
187 .sp .6
188 .RS 4n
189 "\fBreset-notification\fR"
193 .ne 2
195 \fB\fBSCSI_CAP_QFULL_RETRIES\fR\fR
197 .sp .6
198 .RS 4n
199 "\fBqfull-retries\fR"
203 .ne 2
205 \fB\fBSCSI_CAP_QFULL_RETRY_INTERVAL\fR\fR
207 .sp .6
208 .RS 4n
209 "\fBqfull-retry-interval\fR"
213 .ne 2
215 \fB\fBSCSI_CAP_LUN_RESET\fR\fR
217 .sp .6
218 .RS 4n
219 "\fBlun-reset\fR"
223 .ne 2
225 \fB\fBSCSI_CAP_CDB_LEN\fR\fR
227 .sp .6
228 .RS 4n
229 "\fBmax-cdb-length\fR"
232 .SH RETURN VALUES
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.
238 .SH CONTEXT
241 The \fBscsi_hba_lookup_capstr()\fR function can be called from user, interrupt,
242 or kernel context.
243 .SH ATTRIBUTES
246 See \fBattributes\fR(5) for descriptions of the following attributes:
251 box;
252 c | c
253 l | l .
254 ATTRIBUTE TYPE  ATTRIBUTE VALUE
256 Interface Stability     Committed
259 .SH SEE ALSO
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