ibvti.h revision 24b28d0419f5763eb5a6bad72f99ae67fa2a8921
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * CDDL HEADER START
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * The contents of this file are subject to the terms of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * Common Development and Distribution License, Version 1.0 only
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * (the "License"). You may not use this file except in compliance
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * with the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * See the License for the specific language governing permissions
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * and limitations under the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * When distributing Covered Code, include this CDDL HEADER in each
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * If applicable, add the following below this CDDL HEADER, with the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * fields enclosed by brackets "[]" replaced with your own identifying
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * information: Portions Copyright [yyyy] [name of copyright owner]
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * CDDL HEADER END
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * Use is subject to license terms.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#pragma ident "%Z%%M% %I% %E% SMI"
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * This file contains private verbs level transport interface extensions.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define IBT_CM_NO_QP IBT_CM_NO_CHAN /* ibt_cm_reason_t */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define IBT_CM_SREP_QPN_VALID IBT_CM_SREP_CHAN_VALID /* ibt_sidr_status_t */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define IBT_CM_SREP_NO_QP IBT_CM_SREP_NO_CHAN /* ibt_sidr_status_t */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define IBT_OCHAN_CM_RETRY IBT_OCHAN_OPAQUE1 /* ibt_chan_open_flags_t */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define IBT_OCHAN_STARTING_PSN IBT_OCHAN_OPAQUE2 /* ibt_chan_open_flags_t */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define IBT_OCHAN_LOCAL_CM_TM IBT_OCHAN_OPAQUE3 /* ibt_chan_open_flags_t */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define IBT_OCHAN_REMOTE_CM_TM IBT_OCHAN_OPAQUE4 /* ibt_chan_open_flags_t */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define IBT_OCHAN_RDC_EXISTS IBT_OCHAN_OPAQUE5 /* ibt_chan_open_flags_t */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define oc_cm_retry_cnt oc_opaque1 /* ibt_chan_open_args_t */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe /* The number of times the */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe /* CM will retry its MADs */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe /* when IBT_OCHAN_CM_RETRY */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe /* is set */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define oc_starting_psn oc_opaque2 /* ibt_chan_open_args_t */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe /* use oc_starting_psn when */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe /* IBT_OCHAN_STARTING_PSN is */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define oc_local_cm_time oc_opaque3 /* ibt_chan_open_args_t */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe /* The maximum time in */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe /* microseconds that local */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe /* client takes to respond */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe /* for a CM callback */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define oc_remote_cm_time oc_opaque4 /* ibt_chan_open_args_t */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe /* The maximum time in */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe /* microseconds that remote */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe /* node takes to respond */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe /* for a CM MAD */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define cm_eec_hdl cm_opaque /* ibt_cm_event_t */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define req_remote_eecn req_opaque1 /* ibt_cm_req_rcv_t */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define req_local_eecn req_opaque2 /* ibt_cm_req_rcv_t */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define IBT_CM_RDC_EXISTS 0x4 /* ibt_cm_flags_t */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define ai_dlid ai_opaque1 /* Local dest, or router LID */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define ai_src_path ai_opaque2 /* Source path bits */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * Note that variables of type ibt_qp_hdl_t (really ibt_channel_hdl_t)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * can be used in some of the IBTI interfaces, e.g., ibt_open_rc_channel().
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * ibt_cq_priority_t
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe * VTI clients have full control over CQ priorities.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define IBT_CQ_PRI_1 IBT_CQ_OPAQUE_1 /* Lowest priority */
* Release/de-allocate the specified handle.
#ifdef __cplusplus