/*
* 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 _DAPL_TAVOR_IBTI_H
#define _DAPL_TAVOR_IBTI_H
/*
* This header file defines various IB types that is used by the
* generic reference implementation. These IB types are mapped to
* IBTF types.
*/
#ifdef __cplusplus
extern "C" {
#endif
#include <daplt_if.h>
/*
* The InfiniBand Specification, Section 9.7.7, states that the
* upper bound on the maximum message size for an RC connection
* is 2^31 bytes. Implementations are free to support a smaller
* value. see dapli_ep_default_attrs
*/
#define true B_TRUE
#define false B_FALSE
/*
* Map private data constants to IBTF constants
*/
/*
* Definitions to map DTO OPs to IBTF definitions
*/
/*
* Definitions to map Memory OPs
*/
/*
* Definitions to map WR_BIND request flags -
* IBTF uses diff set of flags for the ibt_bind_flags_t
*/
/*
* MAP CQE status to IBT_WC_*
*/
/*
* CQ NOTIFICATION TYPE
*/
/*
* Connection Manager Defs
*/
#define IB_CME_CONNECTION_REQUEST_PENDING \
#define IB_CME_DESTINATION_REJECT_PRIVATE_DATA \
#define IB_CME_DESTINATION_UNREACHABLE \
#define IB_CME_TOO_MANY_CONNECTION_REQUESTS \
#define IB_CME_DISCONNECTED_ON_LINK_DOWN \
#define IB_CM_REJ_REASON_CONSUMER_REJ \
/*
* Typedefs to map generic 'ib' types to service provider implementation
*/
typedef char *IB_HCA_NAME;
struct tavor_hw_uar_s;
struct tavor_hw_cqe_s;
/* Function prototypes */
#ifdef __cplusplus
}
#endif
#endif /* _DAPL_TAVOR_IBTI_H */