142004Sabial/*
242004Sabial * Copyright (c) 2004, 2005 Voltaire, Inc. All rights reserved.
342004Sabial * Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved.
442004Sabial * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
542004Sabial *
642004Sabial * This software is available to you under a choice of one of two
742004Sabial * licenses.  You may choose to be licensed under the terms of the GNU
842004Sabial * General Public License (GPL) Version 2, available from the file
942004Sabial * COPYING in the main directory of this source tree, or the
1042004Sabial * OpenIB.org BSD license below:
1142004Sabial *
1242004Sabial *     Redistribution and use in source and binary forms, with or
1342004Sabial *     without modification, are permitted provided that the following
1442004Sabial *     conditions are met:
1542004Sabial *
1642004Sabial *      - Redistributions of source code must retain the above
1742004Sabial *        copyright notice, this list of conditions and the following
1842004Sabial *        disclaimer.
1942004Sabial *
2042004Sabial *      - Redistributions in binary form must reproduce the above
2142004Sabial *        copyright notice, this list of conditions and the following
2242004Sabial *        disclaimer in the documentation and/or other materials
2342004Sabial *        provided with the distribution.
2442004Sabial *
2542004Sabial * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
2642004Sabial * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2742004Sabial * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
2842004Sabial * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
2942004Sabial * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
3042004Sabial * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
3142004Sabial * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3242004Sabial * SOFTWARE.
3342004Sabial *
3442004Sabial */
3542004Sabial
3642004Sabial#ifndef _OSMV_HCA_H_
3742004Sabial#define _OSMV_HCA_H_
3842004Sabial
3942004Sabial#include <vendor/osm_vendor.h>
4042004Sabial#include <vendor/osm_vendor_mlx_inout.h>
4142004Sabial
4242004Sabial#ifdef __cplusplus
4342004Sabial#  define BEGIN_C_DECLS extern "C" {
4442004Sabial#  define END_C_DECLS   }
4542004Sabial#else				/* !__cplusplus */
4642004Sabial#  define BEGIN_C_DECLS
4742004Sabial#  define END_C_DECLS
4842004Sabial#endif				/* __cplusplus */
4942004Sabial
5042004SabialBEGIN_C_DECLS
5142004Sabial#if defined( OSM_VENDOR_INTF_TS_NO_VAPI ) || defined( OSM_VENDOR_INTF_SIM )
5242004Sabial#define VAPI_hca_hndl_t uint32_t
5342004Sabial#define VAPI_hca_id_t char*
5442004Sabial#endif
5542004Sabialib_api_status_t
5642004Sabialosm_vendor_get_guid_ca_and_port(IN osm_vendor_t const *p_vend,
5742004Sabial				IN ib_net64_t const guid,
5842004Sabial				OUT uint32_t * p_hca_hndl,
5942004Sabial				OUT char *p_hca_id,
6042004Sabial				OUT uint8_t * p_hca_idx,
6142004Sabial				OUT uint32_t * p_port_num);
6242004Sabial
6342004SabialEND_C_DECLS
6442004Sabial#endif				/* _OSMV_HCA_H_ */
6542004Sabial