/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
*
* MODULE: dat_api.c
*
* PURPOSE: DAT Provider and Consumer registry functions.
*
*/
#include "dat_osd.h"
#include <dat/dat_registry.h>
{
if (DAT_BAD_HANDLE(dat_handle)) {
}
return DAT_SET_CONSUMER_CONTEXT(dat_handle,
context);
}
{
if (DAT_BAD_HANDLE(dat_handle)) {
}
return DAT_GET_CONSUMER_CONTEXT(dat_handle,
context);
}
{
if (DAT_BAD_HANDLE(dat_handle)) {
}
return DAT_GET_HANDLE_TYPE(dat_handle,
type);
}
{
if (DAT_BAD_HANDLE(cr_handle)) {
}
return DAT_CR_QUERY(cr_handle,
cr_param);
}
{
if (DAT_BAD_HANDLE(cr_handle)) {
}
return DAT_CR_ACCEPT(cr_handle,
}
{
if (DAT_BAD_HANDLE(cr_handle)) {
}
return (DAT_CR_REJECT(cr_handle));
}
{
if (DAT_BAD_HANDLE(evd_handle)) {
}
return DAT_EVD_RESIZE(evd_handle,
}
{
if (DAT_BAD_HANDLE(evd_handle)) {
}
return DAT_EVD_POST_SE(evd_handle,
event);
}
{
if (DAT_BAD_HANDLE(evd_handle)) {
}
return DAT_EVD_DEQUEUE(evd_handle,
event);
}
{
if (DAT_BAD_HANDLE(evd_handle)) {
}
return (DAT_EVD_FREE(evd_handle));
}
{
if (DAT_BAD_HANDLE(ia_handle)) {
}
return DAT_EP_CREATE(ia_handle,
}
{
if (DAT_BAD_HANDLE(ep_handle)) {
}
return DAT_EP_QUERY(ep_handle,
ep_param);
}
{
if (DAT_BAD_HANDLE(ep_handle)) {
}
return DAT_EP_MODIFY(ep_handle,
ep_param);
}
{
if (DAT_BAD_HANDLE(ep_handle)) {
}
return DAT_EP_CONNECT(ep_handle,
}
{
if (DAT_BAD_HANDLE(ep_handle)) {
}
return DAT_EP_DUP_CONNECT(ep_handle,
}
{
if (DAT_BAD_HANDLE(ep_handle)) {
}
return DAT_EP_DISCONNECT(ep_handle,
}
{
if (DAT_BAD_HANDLE(ep_handle)) {
}
return DAT_EP_POST_SEND(ep_handle,
}
{
if (DAT_BAD_HANDLE(ep_handle)) {
}
return DAT_EP_POST_RECV(ep_handle,
}
{
if (DAT_BAD_HANDLE(ep_handle)) {
}
return DAT_EP_POST_RDMA_READ(ep_handle,
}
{
if (DAT_BAD_HANDLE(ep_handle)) {
}
return DAT_EP_POST_RDMA_WRITE(ep_handle,
}
{
if (DAT_BAD_HANDLE(ep_handle)) {
}
return DAT_EP_GET_STATUS(ep_handle,
}
{
if (DAT_BAD_HANDLE(ep_handle)) {
}
return (DAT_EP_FREE(ep_handle));
}
{
if (DAT_BAD_HANDLE(ep_handle)) {
}
return (DAT_EP_RESET(ep_handle));
}
{
if (DAT_BAD_HANDLE(lmr_handle)) {
}
return (DAT_LMR_FREE(lmr_handle));
}
{
if (DAT_BAD_HANDLE(pz_handle)) {
}
return DAT_RMR_CREATE(pz_handle,
}
{
if (DAT_BAD_HANDLE(rmr_handle)) {
}
return DAT_RMR_QUERY(rmr_handle,
}
{
if (DAT_BAD_HANDLE(rmr_handle)) {
}
return DAT_RMR_BIND(rmr_handle,
context);
}
{
if (DAT_BAD_HANDLE(rmr_handle)) {
}
return (DAT_RMR_FREE(rmr_handle));
}
{
if (DAT_BAD_HANDLE(ia_handle)) {
}
return DAT_PSP_CREATE(ia_handle,
}
{
if (DAT_BAD_HANDLE(psp_handle)) {
}
return DAT_PSP_QUERY(psp_handle,
}
{
if (DAT_BAD_HANDLE(psp_handle)) {
}
return (DAT_PSP_FREE(psp_handle));
}
{
if (DAT_BAD_HANDLE(ia_handle)) {
}
return DAT_RSP_CREATE(ia_handle,
}
{
if (DAT_BAD_HANDLE(rsp_handle)) {
}
return DAT_RSP_QUERY(rsp_handle,
}
{
if (DAT_BAD_HANDLE(rsp_handle)) {
}
return (DAT_RSP_FREE(rsp_handle));
}
{
if (DAT_BAD_HANDLE(ia_handle)) {
}
return DAT_PZ_CREATE(ia_handle,
}
{
if (DAT_BAD_HANDLE(pz_handle)) {
}
return DAT_PZ_QUERY(pz_handle,
pz_param);
}
{
if (DAT_BAD_HANDLE(pz_handle)) {
}
return (DAT_PZ_FREE(pz_handle));
}
/* ARGSUSED */
{
if (DAT_BAD_HANDLE(ia_handle)) {
}
#if defined(__x86)
return (DAT_SUCCESS);
num_segments));
#else
#error "ISA not supported"
#endif
}
/* ARGSUSED */
{
if (DAT_BAD_HANDLE(ia_handle)) {
}
#if defined(__x86)
return (DAT_SUCCESS);
num_segments));
#else
#error "ISA not supported"
#endif
}
{
if (DAT_BAD_HANDLE(ia_handle)) {
}
return DAT_EP_CREATE_WITH_SRQ(ia_handle,
}
{
if (DAT_BAD_HANDLE(ep_handle)) {
}
return DAT_EP_RECV_QUERY(ep_handle,
}
{
if (DAT_BAD_HANDLE(ep_handle)) {
}
return DAT_EP_SET_WATERMARK(ep_handle,
}
{
if (DAT_BAD_HANDLE(ia_handle)) {
}
return DAT_SRQ_CREATE(ia_handle,
}
{
if (DAT_BAD_HANDLE(srq_handle)) {
}
return (DAT_SRQ_FREE(srq_handle));
}
{
if (DAT_BAD_HANDLE(srq_handle)) {
}
return DAT_SRQ_POST_RECV(srq_handle,
}
{
if (DAT_BAD_HANDLE(srq_handle)) {
}
return DAT_SRQ_QUERY(srq_handle,
}
{
if (DAT_BAD_HANDLE(srq_handle)) {
}
return DAT_SRQ_RESIZE(srq_handle,
}
{
if (DAT_BAD_HANDLE(srq_handle)) {
}
return DAT_SRQ_SET_LW(srq_handle,
}