/*
* 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 _ISER_RESOURCE_H
#define _ISER_RESOURCE_H
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/iscsi_protocol.h>
/* Default message lengths */
/* Default data buffer length */
/*
* Definitions and functions related to set up buffer allocation from
* IBT memory regions and managment of work requessts.
*/
struct iser_hca_s;
/*
* Memory regions
*/
typedef struct iser_mr_s {
} iser_mr_t;
typedef struct iser_vmem_mr_pool_s {
#ifdef _LP64
#else
/* Memory is very limited on 32-bit kernels */
#endif
#ifdef _LP64
#else
#endif
/*
* iSER work request structure encodes an iSER Send Queue work request
* context, with pointers to relevant resources related to the work request.
* We hold a pointer to either an IDM PDU handle, an iSER message handle
* or an IDM buffer handle. These are allocated from a kmem_cache when
* we post send WR's, and freed back when the completion is polled.
*/
typedef enum {
typedef struct iser_wr_s {
} iser_wr_t;
iser_wr_t *iser_wr_get();
/*
* iSER message structure for iSCSI Control PDUs, constructor and
* destructor routines, and utility routines for allocating and
* freeing message handles.
*/
typedef struct iser_msg_s {
} iser_msg_t;
/*
* iSER data buffer structure for iSER RDMA operations, constructor and
* destructor routines, and utility routines for allocating and freeing
* buffer handles.
*/
typedef struct iser_buf_s {
} iser_buf_t;
/* Routines to register in-place memory passed on an existing idb */
#ifdef __cplusplus
}
#endif
#endif /* _ISER_RESOURCE_H */