/*
* 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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
*
* MODULE: dapl_ia_query.c
*
* PURPOSE: Interface Adapter management
* Description: Interfaces in this file are completely described in
* the DAPL 1.1 API, Chapter 6, section 2
*
* $Id: dapl_ia_query.c,v 1.20 2003/08/06 14:04:27 sjs2 Exp $
*/
#include "dapl.h"
#include "dapl_adapter_util.h"
#include "dapl_vendor.h"
/*
* dapl_ia_query
*
* DAPL Requirements Version xxx, 6.2.1.3
*
* Provide the consumer with Interface Adapter and Provider parameters.
*
* Input:
* ia_handle
* ia_mask
* provider_mask
*
* Output:
* async_evd_handle
* ia_parameters
* provider_parameters
*
* Returns:
* DAT_SUCCESS
* DAT_INVALID_PARAMETER
*/
{
struct evd_merge_type {
} *evd_merge;
int i;
int j;
"dapl_ia_query (%p, %p, 0x%x, %p, 0x%x, %p)\n",
goto bail;
}
if (NULL != async_evd_handle) {
}
if (ia_attr_mask & DAT_IA_ALL) {
goto bail;
}
/*
* Obtain parameters from the HCA. Protect against multiple
* IAs beating on the HCA at the same time.
*/
if (dat_status != DAT_SUCCESS) {
goto bail;
}
}
if (ia_attr_mask & ~DAT_IA_ALL) {
goto bail;
}
if (provider_attr_mask & DAT_PROVIDER_FIELD_ALL) {
if (NULL == provider_attr) {
goto bail;
}
#if VN_MEM_SHARED_VIRTUAL_SUPPORT > 0
#endif
/*
* 0x000 no watermarks support
* 0x001 low watermark support
* 0x010 soft high watermark support
* 0x100 hard high watermark support
*/
/*
* 0x01 available_dto_count
* 0x10 outstanding_dto_count
*/
/*
* 0x00 no ep recv info support
* 0x01 nbufs_allocated returned from dat_ep_recv_query
* 0x10 bufs_alloc_span returned from dat_ep_recv_query
*/
/*
* we want the application to use the lmr_sync_rdma
* as a programming model and thus always true from the
* provider perspective. dat_registry will return success
* to consumers on platforms with coherent memory
*/
/*
* Set up evd_stream_merging_supported options. Note there is
* one bit per allowable combination, using the ordinal
* position of the DAT_EVD_FLAGS as positions in the
* array. e.g.
* [0][0] is DAT_EVD_SOFTWARE_FLAG | DAT_EVD_SOFTWARE_FLAG,
* [0][1] is DAT_EVD_SOFTWARE_FLAG | DAT_EVD_CR_FLAG, and
* [2][4] is DAT_EVD_DTO_FLAG | DAT_EVD_RMR_BIND_FLAG
*
* Most combinations are true, so initialize the array that way.
* Then finish by resetting the bad combinations.
*/
evd_stream_merging_supported[0][0];
for (i = 0; i < 6; i++) {
for (j = 0; j < 6; j++) {
if (j == 5 || i == 5) {
/* DAT_EVD_ASYNC_FLAG is disallowed */
} else {
}
}
}
}
bail:
"dapl_ia_query () returns 0x%x\n",
return (dat_status);
}
/*
* Local variables:
* c-indent-level: 4
* c-basic-offset: 4
* tab-width: 8
* End:
*/