/*
* 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 (c) 2002-2003, Network Appliance, Inc. All rights reserved.
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
*
* HEADER: dapl_adapter_util.h
*
* PURPOSE: Utility defs & routines for the adapter data structure
*
*/
#ifndef _DAPL_ADAPTER_UTIL_H_
#define _DAPL_ADAPTER_UTIL_H_
#ifdef __cplusplus
extern "C" {
#endif
/* Max number of cqes that can be polled from the CQ */
typedef enum async_handler_type {
#ifdef CM_BUSTED
#endif /* CM_BUSTED */
/* SUNW */
void dapls_ib_state_init(void);
void dapls_ib_state_fini(void);
/* SUNW */
/* SUNW */
IN int reject_reason,
void dapls_ib_async_callback(
/* SUNW */
IN unsigned int *callback_handle,
/* SUNW */
/* SUNW */
/* SUNW */
/* SUNW */
void dapls_ib_reinit_ep(
void dapls_ib_connected(
/* SUNW */
IN int free_index);
OUT int *num_events);
void dapls_ib_cq_peek(
void dapls_ib_srq_free(
IN int max_inline_bytes);
/* SUNW */
#ifdef IBAPI
#include "dapl_ibapi_dto.h"
#include "dapl_vapi_dto.h"
#endif
#ifdef __cplusplus
}
#endif
#endif /* _DAPL_ADAPTER_UTIL_H_ */