/*
* 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
* 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
*/
/*
*/
#ifndef _STMF_IOCTL_H
#define _STMF_IOCTL_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct stmf_iocdata {
typedef struct slist_lu {
} slist_lu_t;
typedef struct slist_target_port {
typedef struct slist_scsi_session {
/* creation_time is really time_t. But time_t is defined as long. */
/*
* States for LUs and LPORTs
*/
#define STMF_STATE_OFFLINE 0
/*
* States for the STMF config.
*/
#define STMF_CONFIG_NONE 0
typedef struct sioc_lu_props {
typedef struct sioc_target_port_props {
/*
*/
typedef struct stmf_state_desc {
/*
* This struct is used for setting the alua state
*/
typedef struct stmf_alua_state_desc {
#define STMF_IOCERR_NONE 0
typedef struct stmf_group_name {
/*
*/
typedef struct stmf_ge_ident {
uint8_t ident[256];
typedef struct stmf_group_op_data {
uint8_t ident[260];
typedef struct stmf_view_op_entry {
typedef struct stmf_ppioctl_data {
typedef struct stmf_set_props {
/*
* SCSI device ID descriptor as per SPC3 7.6.3
*/
typedef struct scsi_devid_desc {
#ifdef _BIT_FIELDS_HTOL
#else
protocol_id:4;
association:2,
rsvd1:1,
piv:1;
#endif
uint8_t ident[1];
/*
* Protocol Identifier
*/
#define PROTOCOL_FIBRE_CHANNEL 0
/*
* Code set definitions
*/
/*
* Association values
*/
#define ID_IS_LOGICAL_UNIT 0
/*
* ident type
*/
#define ID_TYPE_VENDOR_SPECIFIC 0
void *obuf);
#ifdef __cplusplus
}
#endif
#endif /* _STMF_IOCTL_H */