/*
* 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
*/
/*
*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
#ifndef _SBD_IMPL_H
#define _SBD_IMPL_H
#ifdef __cplusplus
extern "C" {
#endif
struct register_lu_cmd;
struct modify_lu_cmd;
struct sbd_lu_attr;
struct sbd_it_data;
/*
* sms endianess
*/
#ifdef _BIG_ENDIAN
#else
#endif
/* Test if one of the BitOrder definitions exists */
#ifdef _BIT_FIELDS_LTOH
#elif defined(_BIT_FIELDS_HTOL)
#else
#endif
typedef struct sbd_v0_meta_start {
typedef struct sbd_meta_start {
typedef struct sm_v0_section_hdr {
/*
* sbd_it_flags
*/
/*
* PGR flags
*/
/*
* PGR key flags
*/
typedef struct sbd_pgr_key_info {
/* scsi_devid_desc of local port */
typedef struct sbd_pgr_info {
#ifdef _BIT_FIELDS_LTOH
#else
#endif
typedef struct sbd_pgr_key {
typedef struct sbd_pgr {
} sbd_pgr_t;
typedef struct sbd_v0_lu_info {
typedef struct sbd_lu_info {
/*
* sl_flags
*/
typedef struct sbd_cmd {
} sbd_cmd_t;
/*
* flags for sbd_cmd
*/
/*
* cmd types
*/
typedef struct sbd_it_data {
typedef struct sbd_create_standby_lu {
/*
* Different UA conditions
*/
/*
* sbd_it_flags
*/
/*
* dbuf private data needed for direct zvol data transfers
*
* To further isolate the zvol knowledge, the object handles
* needed to call into zfs are declared void * here.
*/
typedef struct sbd_zvol_io {
#define ZVIO_DEFAULT 0
/*
* zvol data path functions
*/
#ifdef __cplusplus
}
#endif
#endif /* _SBD_IMPL_H */