dapl_tavor_wr.h revision 9e39c5ba00a55fa05777cc94b148296af305e135
/*
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _DAPL_TAVOR_WR_H
#define _DAPL_TAVOR_WR_H
/*
* Contains the definition of all structures that are used for
* doing the work request handling.
*/
#ifdef __cplusplus
extern "C" {
#endif
#include "dapl_osd.h"
#include "dapl_hash.h"
#include "dapl_tavor_ibtf.h"
#include "dapl_tavor_hw.h"
typedef struct dapls_tavor_workq_hdr_s dapls_tavor_workq_hdr_t;
typedef struct dapls_tavor_wrid_list_hdr_s dapls_tavor_wrid_list_hdr_t;
typedef struct dapls_tavor_wrid_entry_s dapls_tavor_wrid_entry_t;
typedef struct dapls_tavor_wrid_lock_s dapls_tavor_wrid_lock_t;
/*
* Defines the lock that protects the wrid list.
* For send queues and receive queues this is allocated with the workq header
* structure. For SRQs it is allocated with the wrid_list_hdr and the receive
* workq header points to it.
*/
struct dapls_tavor_wrid_lock_s {
};
/*
* Defines the workq header for each queue in the QP. This points to the
* dapls_tavor_wrid_list_hdr_t which has the work request id list.
*/
struct dapls_tavor_workq_hdr_s {
};
/* Type of the work queue */
#define TAVOR_WR_SEND 0x1
#define TAVOR_WR_RECV 0x0
/*
* Defines each work request id entry
*/
struct dapls_tavor_wrid_entry_s {
};
#define TAVOR_WRID_ENTRY_SIGNALED (1 << 0)
/*
* Defines each work request id list which has an array of wrid entries
*/
struct dapls_tavor_wrid_list_hdr_s {
/* For SRQ */
};
#ifdef __cplusplus
}
#endif
#endif /* _DAPL_TAVOR_WR_H */