te
Copyright (c) 2006, Sun Microsystems, Inc., All Rights Reserved
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]
SCSI_CAP_MSG_OUT
SCSI_CAP_DISCONNECT
SCSI_CAP_SYNCHRONOUS
SCSI_CAP_WIDE_XFER
SCSI_CAP_PARITY
SCSI_CAP_INITIATOR_ID
SCSI_CAP_UNTAGGED_QING
SCSI_CAP_TAGGED_QING
SCSI_CAP_ARQ
SCSI_CAP_LINKED_CMDS
SCSI_CAP_SECTOR_SIZE
SCSI_CAP_TOTAL_SECTORS
SCSI_CAP_GEOMETRY
SCSI_CAP_RESET_NOTIFICATION
SCSI_CAP_QFULL_RETRIES
SCSI_CAP_QFULL_RETRY_INTERVAL
SCSI_CAP_LUN_RESET
SCSI_CAP_CDB_LEN
Copyright (c) 2006, Sun Microsystems, Inc., All Rights Reserved
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]
SCSI_HBA_LOOKUP_CAPSTR 9F "May 13, 2006"
NAME
scsi_hba_lookup_capstr - return index matching capability string
SYNOPSIS
#include <sys/scsi/scsi.h> int scsi_hba_lookup_capstr(char *capstr);
INTERFACE LEVEL
illumos architecture specific (illumos DDI).
PARAMETERS
capstr
Pointer to a string
DESCRIPTION
The scsi_hba_lookup_capstr() function attempts to match capstr
against a known set of capability strings. If found, the defined index for the
matched capability is returned.
The following indices are defined for the capability strings listed below. SCSI_CAP_DMA_MAX
"dma-max" or "dma_max"
"msg-out" or "msg_out"
"disconnect"
"synchronous"
"wide-xfer" or "wide_xfer"
"parity"
"initiator-id"
"untagged-qing"
"tagged-qing"
"auto-rqsense"
"linked-cmds"
"sector-size"
"total-sectors"
"geometry"
"reset-notification"
"qfull-retries"
"qfull-retry-interval"
"lun-reset"
"max-cdb-length"
RETURN VALUES
The scsi_hba_lookup_capstr() function returns a non-negative index value
that corresponds to the capability string. If the string does not match a known
capability, -1 is returned.
CONTEXT
The scsi_hba_lookup_capstr() function can be called from user, interrupt,
or kernel context.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE ATTRIBUTE VALUE |
Interface Stability Committed |
SEE ALSO
tran_getcap(9E), tran_setcap(9E), scsi_ifgetcap(9F),
scsi_ifsetcap(9F), scsi_reset_notify(9F)
Writing Device Drivers