/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SRP_H
#define _SRP_H
/*
* General SCSI RDMA Protocol generic defines
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
* The following defines and structures are based on revision 16A of
* the T10 Project 1415-D SRP Protocol specification.
*/
/* Protocol revsion information */
enum {
};
/* SRP memory descriptors; direct and indirect formats */
typedef struct srp_direct_desc_s {
#pragma pack(1)
typedef struct srp_indirect_desc_s {
#pragma pack()
enum {
};
/* General constants */
enum {
};
/* SRP IU types */
enum {
};
/* SRP Initiator Login IU, 64 bytes */
enum {
};
typedef struct srp_login_req_s {
/* SRP Task Management IU, 64 bytes. */
enum {
};
enum {
};
enum {
};
typedef struct srp_tsk_mgmt_s {
/* SRP Command Request IU, 48 bytes minimum */
enum {
SRP_DATA_DESC_NONE = 0,
};
#pragma pack(1)
typedef struct srp_cmd_req_s {
#pragma pack()
/* SRP Initiator Logout IU, 16 bytes */
typedef struct srp_i_logout_s {
/* SRP Login Response IU, 52 bytes */
enum {
};
typedef struct srp_login_rsp_s {
/* SRP Response IU, 36 byte minimum */
enum {
};
enum {
};
/* Additional response data used for task mgmt responses */
enum {
SRP_TM_SUCCESS = 0,
};
typedef struct srp_rsp_data_s {
typedef struct srp_rsp_s {
} srp_rsp_t;
/* SRP Login Reject IU, 32 bytes */
enum {
};
typedef struct srp_login_rej_s {
/* SRP Target Logout IU, 16 bytes */
enum {
};
typedef struct srp_t_logout_s {
#ifdef __cplusplus
}
#endif
#endif /* _SRP_H */