/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
#ifdef CL_KERNEL\r
ib_api_status_t\r
ib_close_al(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al )\r
+ IN const ib_al_handle_t h_al )\r
#else\r
ib_api_status_t\r
do_close_al(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al )\r
+ IN const ib_al_handle_t h_al )\r
#endif\r
{\r
AL_ENTER( AL_DBG_MGR );\r
destroying_al(\r
IN al_obj_t *p_obj )\r
{\r
- ib_al_handle_t VOID_PTR64 h_al;\r
+ ib_al_handle_t h_al;\r
cl_list_item_t *p_list_item;\r
al_sa_req_t *p_sa_req;\r
\r
\r
static void\r
__free_mads(\r
- IN const ib_al_handle_t VOID_PTR64 h_al )\r
+ IN const ib_al_handle_t h_al )\r
{\r
cl_list_item_t *p_list_item;\r
al_mad_element_t *p_mad_element;\r
free_al(\r
IN al_obj_t *p_obj )\r
{\r
- ib_al_handle_t VOID_PTR64 h_al;\r
+ ib_al_handle_t h_al;\r
\r
CL_ASSERT( p_obj );\r
h_al = PARENT_STRUCT( p_obj, ib_al_t, obj );\r
OUT ib_ca_attr_t* const p_ca_attr OPTIONAL,\r
IN OUT uint32_t* const p_size )\r
{\r
- ib_ca_handle_t VOID_PTR64 h_ca;\r
+ ib_ca_handle_t h_ca;\r
ib_api_status_t status;\r
\r
AL_ENTER( AL_DBG_CA );\r
\r
void\r
al_insert_mad(\r
- IN const ib_al_handle_t VOID_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN al_mad_element_t* const p_mad )\r
{\r
/* Assert that the MAD does not already have an owner. */\r
\r
void\r
al_handoff_mad(\r
- IN const ib_al_handle_t VOID_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN ib_mad_element_t* const p_mad_element )\r
{\r
al_mad_element_t *p_mad;\r
\r
void\r
al_insert_key(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN al_pool_key_t* const p_pool_key )\r
{\r
ref_al_obj( &h_al->obj );\r
\r
void\r
al_dereg_pool(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
- IN ib_pool_handle_t FUNC_PTR64 const h_pool )\r
+ IN const ib_al_handle_t h_al,\r
+ IN ib_pool_handle_t const h_pool )\r
{\r
cl_qlist_t destroy_list;\r
cl_list_item_t *p_list_item, *p_next_item;\r
\r
void\r
al_insert_query(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN al_query_t* const p_query )\r
{\r
p_query->h_al = h_al;\r
\r
void\r
ib_cancel_query(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
- IN const ib_query_handle_t FUNC_PTR64 h_query )\r
+ IN const ib_al_handle_t h_al,\r
+ IN const ib_query_handle_t h_query )\r
{\r
cl_list_item_t *p_item;\r
\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
ib_api_status_t\r
init_al(\r
IN al_obj_t *p_parent_obj,\r
- IN const ib_al_handle_t FUNC_PTR64 h_al );\r
+ IN const ib_al_handle_t h_al );\r
\r
\r
void\r
*/\r
ib_api_status_t\r
al_insert_pnp(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
- IN const ib_pnp_handle_t FUNC_PTR64 h_pnp );\r
+ IN const ib_al_handle_t h_al,\r
+ IN const ib_pnp_handle_t h_pnp );\r
\r
/*\r
* Remove a pnp registration from the PnP vector.\r
*/\r
void\r
al_remove_pnp(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
- IN const ib_pnp_handle_t FUNC_PTR64 h_pnp );\r
+ IN const ib_al_handle_t h_al,\r
+ IN const ib_pnp_handle_t h_pnp );\r
\r
\r
void\r
al_insert_mad(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN al_mad_element_t* const p_mad );\r
\r
\r
\r
void\r
al_handoff_mad(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN ib_mad_element_t* const p_mad_element );\r
\r
\r
void\r
al_insert_key(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN al_pool_key_t* const p_pool_key );\r
\r
\r
\r
void\r
al_dereg_pool(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
- IN ib_pool_handle_t FUNC_PTR64 const h_pool );\r
+ IN const ib_al_handle_t h_al,\r
+ IN ib_pool_handle_t const h_pool );\r
\r
\r
void\r
al_insert_query(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN al_query_t* const p_query );\r
\r
\r
\r
void\r
al_insert_conn(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN const ib_cm_handle_t h_conn );\r
\r
void\r
// TODO: we can remove the type parameter.\r
uint64_t\r
al_hdl_insert(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN void* const p_obj,\r
IN const uint32_t type );\r
\r
\r
static inline uint64_t\r
al_hdl_lock_insert(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN void* const p_obj,\r
IN const uint32_t type )\r
{\r
\r
void\r
al_hdl_free(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN const uint64_t hdl );\r
\r
-//static inline size_t //NEW_SIZE_T\r
+\r
static inline uint64_t\r
al_hdl_insert_obj(\r
IN al_obj_t* const p_obj )\r
\r
al_obj_t*\r
al_hdl_ref(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN const uint64_t hdl,\r
- //IN const size_t hdl, //NEW_SIZE_T\r
IN const uint32_t type );\r
\r
/* Validate an object. */\r
void*\r
al_hdl_chk(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN const uint64_t hdl,\r
- //IN const size_t hdl, //NEW_SIZE_T\r
IN const uint32_t type );\r
\r
/* Validate and remove an object. */\r
void*\r
al_hdl_get(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN const uint64_t hdl,\r
- //IN const size_t hdl, //NEW_SIZE_T\r
IN const uint32_t type );\r
\r
/* Validate and removes a MAD element. */\r
static inline ib_mad_element_t*\r
al_hdl_get_mad(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
- IN const uint64_t hdl\r
- //IN const size_t hdl //NEW_SIZE_T\r
- )\r
+ IN const ib_al_handle_t h_al,\r
+ IN const uint64_t hdl )\r
{\r
return (ib_mad_element_t*)al_hdl_get( h_al, hdl, AL_OBJ_TYPE_H_MAD );\r
}\r
/* Validate and reference a connection. Used for MRA */\r
struct _al_conn*\r
al_hdl_ref_conn(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN const uint64_t hdl,\r
- //IN const size_t hdl, //NEW_SIZE_T\r
IN const uint32_t sub_type );\r
\r
/* Validate, reference, and remove a connection. */\r
struct _al_conn*\r
al_hdl_get_conn(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN const uint64_t hdl,\r
- //IN const size_t hdl, //NEW_SIZE_T\r
IN const uint32_t sub_type );\r
\r
#endif /* CL_KERNEL */\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
OUT cl_pool_item_t** const pp_pool_item )\r
{\r
ib_api_status_t status;\r
- ib_av_handle_t VOID_PTR64 h_av;\r
+ ib_av_handle_t h_av;\r
\r
UNUSED_PARAM( context );\r
\r
- h_av = (ib_av_handle_t VOID_PTR64)p_object;\r
+ h_av = (ib_av_handle_t)p_object;\r
cl_memclr( h_av, sizeof( ib_av_t ) );\r
\r
construct_al_obj( &h_av->obj, AL_OBJ_TYPE_H_AV );\r
return CL_ERROR;\r
}\r
\r
- *pp_pool_item = &((ib_av_handle_t VOID_PTR64)p_object)->obj.pool_item;\r
+ *pp_pool_item = &((ib_av_handle_t)p_object)->obj.pool_item;\r
\r
/* Release the reference taken in init_al_obj. */\r
deref_al_obj( &h_av->obj );\r
\r
ib_api_status_t\r
create_av(\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_av_attr_t* const p_av_attr,\r
- OUT ib_av_handle_t FUNC_PTR64* const ph_av,\r
+ OUT ib_av_handle_t* const ph_av,\r
IN OUT ci_umv_buf_t* const p_umv_buf )\r
{\r
ib_api_status_t status;\r
- ib_av_handle_t VOID_PTR64 h_av;\r
+ ib_av_handle_t h_av;\r
\r
CL_ASSERT( h_pd );\r
\r
\r
ib_api_status_t\r
ib_destroy_av(\r
- IN const ib_av_handle_t FUNC_PTR64 h_av )\r
+ IN const ib_av_handle_t h_av )\r
{\r
AL_ENTER( AL_DBG_AV );\r
\r
IN struct _al_obj *p_obj )\r
{\r
ib_api_status_t status;\r
- ib_av_handle_t VOID_PTR64 h_av;\r
+ ib_av_handle_t h_av;\r
\r
CL_ASSERT( p_obj );\r
h_av = PARENT_STRUCT( p_obj, ib_av_t, obj );\r
__return_av(\r
IN al_obj_t *p_obj )\r
{\r
- ib_av_handle_t VOID_PTR64 h_av;\r
+ ib_av_handle_t h_av;\r
\r
h_av = PARENT_STRUCT( p_obj, ib_av_t, obj );\r
reset_al_obj( p_obj );\r
\r
ib_api_status_t\r
ib_query_av(\r
- IN const ib_av_handle_t FUNC_PTR64 h_av,\r
+ IN const ib_av_handle_t h_av,\r
OUT ib_av_attr_t* const p_av_attr,\r
- OUT ib_pd_handle_t FUNC_PTR64* const ph_pd )\r
+ OUT ib_pd_handle_t* const ph_pd )\r
{\r
return query_av( h_av, p_av_attr, ph_pd, NULL );\r
}\r
\r
ib_api_status_t\r
query_av(\r
- IN const ib_av_handle_t FUNC_PTR64 h_av,\r
+ IN const ib_av_handle_t h_av,\r
OUT ib_av_attr_t* const p_av_attr,\r
- OUT ib_pd_handle_t FUNC_PTR64* const ph_pd,\r
+ OUT ib_pd_handle_t* const ph_pd,\r
IN OUT ci_umv_buf_t* const p_umv_buf )\r
{\r
ib_api_status_t status;\r
\r
ib_api_status_t\r
ib_modify_av(\r
- IN const ib_av_handle_t FUNC_PTR64 h_av,\r
+ IN const ib_av_handle_t h_av,\r
IN const ib_av_attr_t* const p_av_mod )\r
{\r
return modify_av( h_av, p_av_mod, NULL );\r
\r
ib_api_status_t\r
modify_av(\r
- IN const ib_av_handle_t FUNC_PTR64 h_av,\r
+ IN const ib_av_handle_t h_av,\r
IN const ib_av_attr_t* const p_av_mod,\r
IN OUT ci_umv_buf_t* const p_umv_buf )\r
{\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
typedef struct _ib_av\r
{\r
al_obj_t obj;\r
-TO_LONG_PTR( ib_av_handle_t , h_ci_av) ; /* Actual HW CI AV. */\r
+ ib_av_handle_t h_ci_av; /* Actual HW CI AV. */\r
\r
ib_av_attr_t av_attr;\r
\r
\r
ib_api_status_t\r
create_av(\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_av_attr_t* const p_av_attr,\r
- OUT ib_av_handle_t FUNC_PTR64* const ph_av,\r
+ OUT ib_av_handle_t* const ph_av,\r
IN OUT ci_umv_buf_t* const p_umv_buf );\r
\r
\r
ib_api_status_t\r
query_av(\r
- IN const ib_av_handle_t FUNC_PTR64 h_av,\r
+ IN const ib_av_handle_t h_av,\r
OUT ib_av_attr_t* const p_av_attr,\r
- OUT ib_pd_handle_t FUNC_PTR64* const ph_pd,\r
+ OUT ib_pd_handle_t* const ph_pd,\r
IN OUT ci_umv_buf_t* const p_umv_buf );\r
\r
\r
ib_api_status_t\r
modify_av(\r
- IN const ib_av_handle_t FUNC_PTR64 h_av,\r
+ IN const ib_av_handle_t h_av,\r
IN const ib_av_attr_t* const p_av_mod,\r
IN OUT ci_umv_buf_t* const p_umv_buf );\r
\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
\r
ib_api_status_t\r
ib_open_ca(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN const ib_net64_t ca_guid,\r
IN const ib_pfn_event_cb_t pfn_ca_event_cb OPTIONAL,\r
IN const void* const ca_context,\r
- OUT ib_ca_handle_t FUNC_PTR64* const ph_ca )\r
+ OUT ib_ca_handle_t* const ph_ca )\r
{\r
ib_api_status_t status;\r
\r
\r
ib_api_status_t\r
open_ca(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN const ib_net64_t ca_guid,\r
IN const ib_pfn_event_cb_t pfn_ca_event_cb OPTIONAL,\r
IN const void* const ca_context,\r
- OUT ib_ca_handle_t FUNC_PTR64* const ph_ca,\r
+ OUT ib_ca_handle_t* const ph_ca,\r
IN OUT ci_umv_buf_t* const p_umv_buf OPTIONAL )\r
{\r
- ib_ca_handle_t VOID_PTR64 h_ca;\r
+ ib_ca_handle_t h_ca;\r
ib_api_status_t status;\r
al_obj_type_t obj_type = AL_OBJ_TYPE_H_CA;\r
\r
}\r
\r
/* Allocate a CA instance. */\r
- h_ca = (ib_ca_handle_t VOID_PTR64)cl_zalloc( sizeof( ib_ca_t ) );\r
+ h_ca = (ib_ca_handle_t)cl_zalloc( sizeof( ib_ca_t ) );\r
if( !h_ca )\r
{\r
AL_PRINT_EXIT( TRACE_LEVEL_ERROR, AL_DBG_ERROR,\r
*/\r
ib_api_status_t\r
ib_close_ca(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca,\r
+ IN const ib_ca_handle_t h_ca,\r
IN const ib_pfn_destroy_cb_t pfn_destroy_cb OPTIONAL )\r
{\r
AL_ENTER( AL_DBG_CA );\r
IN struct _al_obj *p_obj )\r
{\r
#if defined(CL_KERNEL)\r
- ib_ca_handle_t VOID_PTR64 h_ca;\r
+ ib_ca_handle_t h_ca;\r
\r
CL_ASSERT( p_obj );\r
h_ca = PARENT_STRUCT( p_obj, ib_ca_t, obj );\r
__free_ca(\r
IN struct _al_obj *p_obj )\r
{\r
- ib_ca_handle_t VOID_PTR64 h_ca;\r
+ ib_ca_handle_t h_ca;\r
\r
CL_ASSERT( p_obj );\r
h_ca = PARENT_STRUCT( p_obj, ib_ca_t, obj );\r
\r
ib_api_status_t\r
ib_query_ca(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca,\r
+ IN const ib_ca_handle_t h_ca,\r
OUT ib_ca_attr_t* const p_ca_attr OPTIONAL,\r
IN OUT uint32_t* const p_size )\r
{\r
\r
ib_api_status_t\r
query_ca(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca,\r
+ IN const ib_ca_handle_t h_ca,\r
OUT ib_ca_attr_t* const p_ca_attr OPTIONAL,\r
IN OUT uint32_t* const p_size,\r
IN OUT ci_umv_buf_t* const p_umv_buf )\r
\r
ib_api_status_t\r
ib_modify_ca(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca,\r
+ IN const ib_ca_handle_t h_ca,\r
IN const uint8_t port_num,\r
IN const ib_ca_mod_t ca_mod,\r
IN const ib_port_attr_mod_t* const p_port_attr_mod )\r
*/\r
ib_api_status_t\r
ib_alloc_pd(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca,\r
+ IN const ib_ca_handle_t h_ca,\r
IN const ib_pd_type_t pd_type,\r
IN const void * const pd_context,\r
- OUT ib_pd_handle_t FUNC_PTR64* const ph_pd )\r
+ OUT ib_pd_handle_t* const ph_pd )\r
{\r
ib_api_status_t status;\r
\r
\r
ib_api_status_t\r
ib_create_cq(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca,\r
+ IN const ib_ca_handle_t h_ca,\r
IN OUT ib_cq_create_t* const p_cq_create,\r
IN const void* const cq_context,\r
IN const ib_pfn_event_cb_t pfn_cq_event_cb OPTIONAL,\r
- OUT ib_cq_handle_t FUNC_PTR64* const ph_cq )\r
+ OUT ib_cq_handle_t* const ph_cq )\r
{\r
ib_api_status_t status;\r
\r
\r
ib_api_status_t\r
al_convert_to_ci_handles(\r
- IN void* FUNC_PTR64 * const dst_handle_array,\r
- IN const void* FUNC_PTR64 * const src_handle_array,\r
+ IN void** const dst_handle_array,\r
+ IN const void** const src_handle_array,\r
IN uint32_t num_handles )\r
{\r
uint32_t i;\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
ib_pfn_event_cb_t pfn_event_cb;\r
cl_list_item_t list_item;\r
#if defined(CL_KERNEL)\r
-TO_LONG_PTR( ib_ca_handle_t , h_um_ca) ; \r
+ ib_ca_handle_t h_um_ca;\r
#endif\r
\r
} ib_ca_t;\r
\r
ib_api_status_t\r
open_ca(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN const ib_net64_t ca_guid,\r
IN const ib_pfn_event_cb_t pfn_ca_event_cb OPTIONAL,\r
IN const void* const ca_context,\r
- OUT ib_ca_handle_t FUNC_PTR64* const ph_ca,\r
+ OUT ib_ca_handle_t* const ph_ca,\r
IN OUT ci_umv_buf_t* const p_umv_buf OPTIONAL );\r
\r
\r
ib_api_status_t\r
query_ca(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca,\r
+ IN const ib_ca_handle_t h_ca,\r
OUT ib_ca_attr_t* const p_ca_attr OPTIONAL,\r
IN OUT uint32_t* const p_size,\r
IN OUT ci_umv_buf_t* const p_umv_buf );\r
\r
ib_api_status_t\r
al_convert_to_ci_handles(\r
- IN void* FUNC_PTR64 * const dst_handle_array,\r
- IN const void* FUNC_PTR64 * const src_handle_array,\r
+ IN void** const dst_handle_array,\r
+ IN const void** const src_handle_array,\r
IN uint32_t num_handles );\r
\r
\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
\r
DEVICE_OBJECT*\r
get_ca_dev(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca );\r
+ IN const ib_ca_handle_t h_ca );\r
#endif\r
\r
\r
\r
verbs_interface_t verbs;\r
\r
-TO_LONG_PTR( ib_ca_handle_t , h_ci_ca) ; /* CI handle */\r
-TO_LONG_PTR( ib_ca_handle_t , h_ca) ; /* AL handle */\r
-TO_LONG_PTR( ib_pd_handle_t , h_pd) ; /* AL handle */\r
-TO_LONG_PTR( ib_pd_handle_t , h_pd_alias) ; /* AL handle */\r
-TO_LONG_PTR( ib_pool_key_t , pool_key) ; /* AL handle */\r
+ ib_ca_handle_t h_ci_ca; /* CI handle */\r
+ ib_ca_handle_t h_ca; /* AL handle */\r
+ ib_pd_handle_t h_pd; /* AL handle */\r
+ ib_pd_handle_t h_pd_alias; /* AL handle */\r
+ ib_pool_key_t pool_key; /* AL handle */\r
\r
/* Opened instances of this CA. */\r
cl_qlist_t ca_list;\r
void\r
add_ca(\r
IN al_ci_ca_t* const p_ci_ca,\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca );\r
+ IN const ib_ca_handle_t h_ca );\r
\r
void\r
remove_ca(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca );\r
+ IN const ib_ca_handle_t h_ca );\r
\r
\r
void\r
\r
ib_api_status_t\r
ci_call(\r
- IN ib_ca_handle_t FUNC_PTR64 h_ca,\r
- IN const void* FUNC_PTR64 * const handle_array OPTIONAL,\r
+ IN ib_ca_handle_t h_ca,\r
+ IN const void** const handle_array OPTIONAL,\r
IN uint32_t num_handles,\r
IN ib_ci_op_t* const p_ci_op,\r
IN ci_umv_buf_t* const p_umv_buf OPTIONAL );\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
void\r
add_ca(\r
IN al_ci_ca_t* const p_ci_ca,\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca )\r
+ IN const ib_ca_handle_t h_ca )\r
{\r
cl_spinlock_acquire( &p_ci_ca->obj.lock );\r
cl_qlist_insert_tail( &p_ci_ca->ca_list, &h_ca->list_item );\r
\r
void\r
remove_ca(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca )\r
+ IN const ib_ca_handle_t h_ca )\r
{\r
al_ci_ca_t *p_ci_ca;\r
\r
\r
CL_ASSERT( p_event_rec );\r
\r
- p_obj = (al_obj_t* VOID_PTR64)p_event_rec->context;\r
+ p_obj = (al_obj_t*)p_event_rec->context;\r
\r
/* Block the destruction of the object until a reference is taken. */\r
cl_spinlock_acquire( &p_obj->lock );\r
p_event_item = PARENT_STRUCT( p_async_item, event_item_t,\r
async_item.pool_item );\r
\r
- p_obj = (al_obj_t* VOID_PTR64)p_event_item->event_rec.context;\r
+ p_obj = (al_obj_t*)p_event_item->event_rec.context;\r
\r
switch( p_event_item->event_rec.code )\r
{\r
{\r
al_ci_ca_t* p_ci_ca;\r
cl_list_item_t* p_list_item;\r
- ib_ca_handle_t VOID_PTR64 h_ca;\r
+ ib_ca_handle_t h_ca;\r
ib_async_event_rec_t event_rec;\r
\r
CL_ASSERT( p_event_rec );\r
- p_ci_ca = (al_ci_ca_t* VOID_PTR64)p_event_rec->context;\r
+ p_ci_ca = (al_ci_ca_t*)p_event_rec->context;\r
\r
/* Report the CA event to all clients. */\r
cl_spinlock_acquire( &p_ci_ca->obj.lock );\r
ca_async_event_cb(\r
IN ib_async_event_rec_t* const p_event_rec )\r
{\r
- ib_ca_handle_t VOID_PTR64 h_ca;\r
+ ib_ca_handle_t h_ca;\r
\r
CL_ASSERT( p_event_rec );\r
h_ca = p_event_rec->handle.h_ca;\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
\r
typedef void\r
(*al_pfn_cep_cb_t)(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN const net32_t cid );\r
/* PARAMETERS\r
* h_al\r
\r
void\r
al_cep_cleanup_al(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al );\r
+ IN const ib_al_handle_t h_al );\r
\r
\r
ib_api_status_t\r
\r
ib_api_status_t\r
al_cep_listen(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
IN ib_cep_listen_t* const p_listen_info );\r
\r
\r
ib_api_status_t\r
al_cep_pre_req(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
IN const ib_cm_req_t* const p_cm_req,\r
OUT ib_qp_mod_t* const p_init );\r
\r
ib_api_status_t\r
al_cep_send_req(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid );\r
\r
\r
ib_api_status_t\r
al_cep_pre_rep(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
- IN void* FUNC_PTR64 context,\r
+ IN void* context,\r
IN const ib_cm_rep_t* const p_cm_rep,\r
OUT ib_qp_mod_t* const p_init );\r
\r
ib_api_status_t\r
al_cep_pre_rep_ex(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
IN al_pfn_cep_cb_t pfn_cb,\r
- IN void* FUNC_PTR64 context,\r
+ IN void* context,\r
IN const ib_cm_rep_t* const p_cm_rep,\r
OUT ib_qp_mod_t* const p_init );\r
\r
ib_api_status_t\r
al_cep_send_rep(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid );\r
\r
\r
ib_api_status_t\r
al_cep_get_rtr_attr(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
OUT ib_qp_mod_t* const p_rtr );\r
\r
\r
ib_api_status_t\r
al_cep_get_rts_attr(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
OUT ib_qp_mod_t* const p_rts );\r
\r
\r
ib_api_status_t\r
al_cep_rtu(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
IN const uint8_t* p_pdata OPTIONAL,\r
IN uint8_t pdata_len );\r
\r
ib_api_status_t\r
al_cep_rej(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
IN ib_rej_status_t rej_status,\r
IN const uint8_t* const p_ari,\r
\r
ib_api_status_t\r
al_cep_mra(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
IN const ib_cm_mra_t* const p_cm_mra );\r
\r
\r
ib_api_status_t\r
al_cep_lap(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
IN const ib_cm_lap_t* const p_cm_lap );\r
\r
\r
ib_api_status_t\r
al_cep_pre_apr(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
IN const ib_cm_apr_t* const p_cm_apr,\r
OUT ib_qp_mod_t* const p_apr );\r
\r
ib_api_status_t\r
al_cep_send_apr(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid );\r
\r
\r
ib_api_status_t\r
al_cep_dreq(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
IN const uint8_t* const p_pdata OPTIONAL,\r
IN const uint8_t pdata_len );\r
\r
ib_api_status_t\r
al_cep_drep(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
IN const ib_cm_drep_t* const p_cm_drep );\r
\r
\r
ib_api_status_t\r
al_cep_get_timewait(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
OUT uint64_t* const p_timewait_us );\r
\r
\r
ib_api_status_t\r
al_cep_migrate(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid );\r
\r
\r
ib_api_status_t\r
al_cep_established(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid );\r
\r
\r
ib_api_status_t\r
al_cep_poll(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
- OUT void* FUNC_PTR64 * p_context,\r
+ OUT void** p_context,\r
OUT net32_t* const p_new_cid,\r
OUT ib_mad_element_t** const pp_mad );\r
\r
\r
NTSTATUS\r
al_cep_queue_irp(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
IN IRP* const p_irp );\r
\r
NTSTATUS\r
al_cep_get_cid(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t const cid,\r
IN PIRP h_ioctl\r
);\r
\r
ib_api_status_t\r
al_cep_get_pdata(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
IN OUT uint8_t *p_psize,\r
OUT uint8_t* pdata );\r
{\r
ib_net64_t svc_id;\r
\r
- TO_LONG_PTR(ib_path_rec_t* , p_path) ;\r
+ ib_path_rec_t* p_path;\r
\r
- TO_LONG_PTR(const uint8_t* , p_pdata) ;\r
+ const uint8_t* p_pdata;\r
uint8_t pdata_len;\r
\r
uint8_t max_cm_retries;\r
\r
ib_api_status_t\r
al_cep_sreq(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
IN const al_cep_sreq_t* const p_sreq );\r
\r
net32_t qp_num;\r
net32_t qkey;\r
\r
- TO_LONG_PTR(const uint8_t*, p_pdata);\r
- TO_LONG_PTR(const void*, p_info);\r
+ const uint8_t* p_pdata;\r
+ const void* p_info;\r
\r
uint8_t pdata_len;\r
uint8_t info_len;\r
\r
ib_api_status_t\r
al_cep_srep(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN net32_t cid,\r
IN const al_cep_srep_t* const p_sreq );\r
\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
ib_pfn_cm_req_cb_t pfn_cm_req_cb;\r
\r
/* valid for ud qp_type only */\r
- TO_LONG_PTR(const void* , sidr_context);\r
+ const void* sidr_context;\r
\r
} al_listen_t;\r
\r
typedef struct _cep_async_mad\r
{\r
cl_async_proc_item_t item;\r
- ib_al_handle_t VOID_PTR64 h_al;\r
+ ib_al_handle_t h_al;\r
net32_t cid;\r
\r
} cep_async_mad_t;\r
*/\r
static void\r
__cep_timewait_qp(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp )\r
+ IN const ib_qp_handle_t h_qp )\r
{\r
uint64_t timewait = 0;\r
ib_qp_mod_t qp_mod;\r
*/\r
static void\r
__proc_conn_timeout(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp )\r
+ IN const ib_qp_handle_t h_qp )\r
{\r
ib_cm_rej_rec_t rej_rec;\r
net32_t cid;\r
*/\r
static void\r
__proc_lap_timeout(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp )\r
+ IN const ib_qp_handle_t h_qp )\r
{\r
ib_cm_apr_rec_t apr_rec;\r
\r
*/\r
static void\r
__proc_dconn_timeout(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp )\r
+ IN const ib_qp_handle_t h_qp )\r
{\r
ib_cm_drep_rec_t drep_rec;\r
net32_t cid;\r
static void\r
__cm_handler(\r
#endif\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN const net32_t cid )\r
{\r
ib_api_status_t status;\r
- void* VOID_PTR64 context;\r
+ void* context;\r
net32_t new_cid;\r
ib_mad_element_t *p_mad;\r
ib_cm_handle_t h_cm;\r
/* Something to do - WOOT!!! */\r
if( new_cid != AL_INVALID_CID )\r
{\r
- __proc_listen( (al_listen_t* VOID_PTR64)context,\r
+ __proc_listen( (al_listen_t*)context,\r
new_cid, ib_get_mad_buf( p_mad ) );\r
}\r
else if( p_mad->status != IB_SUCCESS )\r
{\r
/* Context is a QP handle, and a sent MAD timed out. */\r
__proc_failed_send(\r
- (ib_qp_handle_t VOID_PTR64)context, ib_get_mad_buf( p_mad ) );\r
+ (ib_qp_handle_t)context, ib_get_mad_buf( p_mad ) );\r
}\r
else\r
{\r
h_cm.h_al = h_al;\r
h_cm.cid = cid;\r
- h_cm.h_qp = (ib_qp_handle_t VOID_PTR64)context;\r
+ h_cm.h_qp = (ib_qp_handle_t)context;\r
__proc_conn( &h_cm, ib_get_mad_buf( p_mad ) );\r
}\r
ib_put_mad( p_mad );\r
*/\r
static void\r
__cm_handler(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN const net32_t cid )\r
{\r
cep_async_mad_t *p_async_mad;\r
*/\r
ib_api_status_t\r
__cep_init_qp(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp,\r
+ IN const ib_qp_handle_t h_qp,\r
IN ib_qp_mod_t* const p_init )\r
{\r
ib_qp_mod_t qp_mod;\r
\r
static ib_api_status_t\r
__cep_conn_req(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN const ib_cm_req_t* const p_cm_req )\r
{\r
ib_api_status_t status;\r
static ib_api_status_t\r
__cep_rts_qp(\r
IN const ib_cm_handle_t h_cm,\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp,\r
+ IN const ib_qp_handle_t h_qp,\r
IN const ib_access_t access_ctrl,\r
IN const uint32_t sq_depth,\r
IN const uint32_t rq_depth )\r
if( p_cm_rep->p_recv_wr )\r
{\r
status = ib_post_recv( p_cm_rep->h_qp, p_cm_rep->p_recv_wr,\r
- (ib_recv_wr_t** VOID_PTR64)p_cm_rep->pp_recv_failure );\r
+ (ib_recv_wr_t**)p_cm_rep->pp_recv_failure );\r
if( status != IB_SUCCESS )\r
{\r
AL_PRINT_EXIT( TRACE_LEVEL_ERROR, AL_DBG_ERROR,\r
\r
ib_api_status_t\r
ib_force_apm(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp )\r
+ IN const ib_qp_handle_t h_qp )\r
{\r
ib_api_status_t status;\r
al_conn_qp_t *p_conn_qp;\r
\r
static ib_api_status_t\r
__cep_listen(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN const ib_cm_listen_t* const p_cm_listen,\r
IN const ib_pfn_listen_err_cb_t pfn_listen_err_cb,\r
IN const void* const listen_context,\r
- OUT ib_listen_handle_t FUNC_PTR64* const ph_cm_listen )\r
+ OUT ib_listen_handle_t* const ph_cm_listen )\r
{\r
ib_api_status_t status;\r
al_listen_t *p_listen;\r
\r
ib_api_status_t\r
ib_cm_listen(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN const ib_cm_listen_t* const p_cm_listen,\r
IN const ib_pfn_listen_err_cb_t pfn_listen_err_cb,\r
IN const void* const listen_context,\r
- OUT ib_listen_handle_t FUNC_PTR64* const ph_cm_listen )\r
+ OUT ib_listen_handle_t* const ph_cm_listen )\r
{\r
ib_api_status_t status;\r
\r
\r
ib_api_status_t\r
ib_cm_cancel(\r
- IN const ib_listen_handle_t FUNC_PTR64 h_cm_listen,\r
+ IN const ib_listen_handle_t h_cm_listen,\r
IN const ib_pfn_destroy_cb_t pfn_destroy_cb OPTIONAL )\r
{\r
AL_ENTER( AL_DBG_CM );\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
cl_state_t state;\r
\r
uint64_t hdl; /* User Handle. */\r
- TO_LONG_PTR( ib_al_handle_t, h_al) ; /* Owning AL instance. */\r
+ ib_al_handle_t h_al; /* Owning AL instance. */\r
\r
#ifdef CL_KERNEL\r
/*\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
*/\r
ib_api_status_t\r
create_cq(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca,\r
+ IN const ib_ca_handle_t h_ca,\r
IN OUT ib_cq_create_t* const p_cq_create,\r
IN const void* const cq_context,\r
IN const ib_pfn_event_cb_t pfn_cq_event_cb,\r
- OUT ib_cq_handle_t FUNC_PTR64* const ph_cq,\r
+ OUT ib_cq_handle_t* const ph_cq,\r
IN OUT ci_umv_buf_t* const p_umv_buf )\r
{\r
- ib_cq_handle_t VOID_PTR64 h_cq;\r
+ ib_cq_handle_t h_cq;\r
ib_api_status_t status;\r
al_obj_type_t obj_type = AL_OBJ_TYPE_H_CQ;\r
\r
\r
ib_api_status_t\r
ib_destroy_cq(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
IN const ib_pfn_destroy_cb_t pfn_destroy_cb OPTIONAL )\r
{\r
AL_ENTER( AL_DBG_CQ );\r
destroying_cq(\r
IN struct _al_obj *p_obj )\r
{\r
- ib_cq_handle_t VOID_PTR64 h_cq;\r
+ ib_cq_handle_t h_cq;\r
cl_list_item_t *p_item;\r
cl_obj_rel_t *p_rel;\r
- ib_qp_handle_t VOID_PTR64 h_qp;\r
+ ib_qp_handle_t h_qp;\r
\r
CL_ASSERT( p_obj );\r
h_cq = PARENT_STRUCT( p_obj, ib_cq_t, obj );\r
{\r
p_rel = PARENT_STRUCT( p_item, cl_obj_rel_t, pool_item.list_item );\r
p_rel->p_parent_obj = NULL;\r
- h_qp = (ib_qp_handle_t VOID_PTR64)p_rel->p_child_obj;\r
+ h_qp = (ib_qp_handle_t)p_rel->p_child_obj;\r
if( h_qp )\r
{\r
/* Take a reference to prevent the QP from being destroyed. */\r
cleanup_cq(\r
IN struct _al_obj *p_obj )\r
{\r
- ib_cq_handle_t VOID_PTR64 h_cq;\r
+ ib_cq_handle_t h_cq;\r
ib_api_status_t status;\r
\r
CL_ASSERT( p_obj );\r
free_cq(\r
IN al_obj_t *p_obj )\r
{\r
- ib_cq_handle_t VOID_PTR64 h_cq;\r
+ ib_cq_handle_t h_cq;\r
\r
CL_ASSERT( p_obj );\r
h_cq = PARENT_STRUCT( p_obj, ib_cq_t, obj );\r
\r
void\r
cq_attach_qp(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
IN cl_obj_rel_t* const p_qp_rel )\r
{\r
p_qp_rel->p_parent_obj = (cl_obj_t*)h_cq;\r
\r
void\r
cq_detach_qp(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
IN cl_obj_rel_t* const p_qp_rel )\r
{\r
if( p_qp_rel->p_parent_obj )\r
\r
ib_api_status_t\r
ib_modify_cq(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
IN OUT uint32_t* const p_size )\r
{\r
return modify_cq( h_cq, p_size, NULL );\r
\r
ib_api_status_t\r
modify_cq(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
IN OUT uint32_t* const p_size,\r
IN OUT ci_umv_buf_t* const p_umv_buf )\r
{\r
\r
ib_api_status_t\r
ib_query_cq(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
OUT uint32_t* const p_size )\r
{\r
return query_cq( h_cq, p_size, NULL );\r
\r
ib_api_status_t\r
query_cq(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
OUT uint32_t* const p_size,\r
IN OUT ci_umv_buf_t* const p_umv_buf )\r
{\r
\r
ib_api_status_t\r
ib_peek_cq(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
OUT uint32_t* const p_n_cqes )\r
{\r
ib_api_status_t status;\r
\r
ib_api_status_t\r
ib_poll_cq(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
IN OUT ib_wc_t** const pp_free_wclist,\r
OUT ib_wc_t** const pp_done_wclist )\r
{\r
\r
ib_api_status_t\r
ib_rearm_cq(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
IN const boolean_t solicited )\r
{\r
ib_api_status_t status;\r
\r
ib_api_status_t\r
ib_rearm_n_cq(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
IN const uint32_t n_cqes )\r
{\r
ib_api_status_t status;\r
cq_async_event_cb(\r
IN ib_async_event_rec_t* const p_event_rec )\r
{\r
- ib_cq_handle_t VOID_PTR64 h_cq;\r
+ ib_cq_handle_t h_cq;\r
\r
CL_ASSERT( p_event_rec );\r
- h_cq = (ib_cq_handle_t VOID_PTR64)p_event_rec->context;\r
+ h_cq = (ib_cq_handle_t)p_event_rec->context;\r
\r
p_event_rec->context = (void*)h_cq->obj.context;\r
p_event_rec->handle.h_cq = h_cq;\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
\r
typedef void\r
(*pfn_proc_comp_t)(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq );\r
+ IN const ib_cq_handle_t h_cq );\r
\r
typedef ib_api_status_t\r
(*pfn_peek_cq_t)(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
OUT uint32_t* const p_n_cqes );\r
\r
typedef ib_api_status_t\r
(*pfn_poll_cq_t)(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
IN OUT ib_wc_t** const pp_free_wclist,\r
OUT ib_wc_t** const pp_done_wclist );\r
\r
typedef ib_api_status_t\r
(*pfn_rearm_cq_t)(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
IN const boolean_t solicited );\r
\r
typedef ib_api_status_t\r
(*pfn_rearm_n_cq_t)(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
IN const uint32_t n_cqes );\r
\r
#ifdef CL_KERNEL\r
ib_pfn_comp_cb_t pfn_user_comp_cb;\r
cl_waitobj_handle_t h_wait_obj;\r
\r
-TO_LONG_PTR( ib_cq_handle_t , h_ci_cq) ; \r
+ ib_cq_handle_t h_ci_cq;\r
\r
/* Function pointers for the various speed path operations. */\r
#ifndef CL_KERNEL\r
pfn_peek_cq_t pfn_peek;\r
-TO_LONG_PTR( ib_cq_handle_t , h_peek_cq) ; \r
+ ib_cq_handle_t h_peek_cq;\r
\r
pfn_poll_cq_t pfn_poll;\r
-TO_LONG_PTR( ib_cq_handle_t , h_poll_cq) ; \r
+ ib_cq_handle_t h_poll_cq;\r
\r
pfn_rearm_cq_t pfn_rearm;\r
-TO_LONG_PTR( ib_cq_handle_t , h_rearm_cq) ; \r
+ ib_cq_handle_t h_rearm_cq;\r
\r
pfn_rearm_n_cq_t pfn_rearm_n;\r
-TO_LONG_PTR( ib_cq_handle_t , h_rearm_n_cq) ; \r
+ ib_cq_handle_t h_rearm_n_cq;\r
#endif\r
\r
ib_pfn_event_cb_t pfn_event_cb;\r
\r
ib_api_status_t\r
create_cq(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca,\r
+ IN const ib_ca_handle_t h_ca,\r
IN OUT ib_cq_create_t* const p_cq_create,\r
IN const void* const cq_context,\r
IN const ib_pfn_event_cb_t pfn_cq_event_cb,\r
- OUT ib_cq_handle_t FUNC_PTR64* const ph_cq,\r
+ OUT ib_cq_handle_t* const ph_cq,\r
IN OUT ci_umv_buf_t* const p_umv_buf );\r
\r
\r
ib_api_status_t\r
modify_cq(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
IN OUT uint32_t* const p_size,\r
IN OUT ci_umv_buf_t* const p_umv_buf );\r
\r
\r
ib_api_status_t\r
query_cq(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
OUT uint32_t* const p_size,\r
IN OUT ci_umv_buf_t* const p_umv_buf );\r
\r
\r
void\r
cq_attach_qp(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
IN cl_obj_rel_t* const p_qp_rel );\r
\r
\r
void\r
cq_detach_qp(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
IN cl_obj_rel_t* const p_qp_rel );\r
\r
#endif /* __AL_CQ_H__ */\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
\r
al_iou_t*\r
get_iou(\r
- IN const ib_ioc_handle_t FUNC_PTR64 h_ioc );\r
+ IN const ib_ioc_handle_t h_ioc );\r
\r
-ib_ioc_handle_t VOID_PTR64\r
+ib_ioc_handle_t \r
get_ioc(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca );\r
+ IN const ib_ca_handle_t h_ca );\r
\r
ib_api_status_t\r
add_ioc(\r
IN al_iou_t* p_iou,\r
- IN ib_ioc_handle_t FUNC_PTR64 h_ioc );\r
+ IN ib_ioc_handle_t h_ioc );\r
\r
void\r
ioc_change(\r
- IN ib_ioc_handle_t FUNC_PTR64 h_ioc );\r
+ IN ib_ioc_handle_t h_ioc );\r
\r
void\r
iou_change(\r
ib_api_status_t\r
dm_agent_reg_pnp(\r
IN ib_pnp_class_t pnp_class,\r
- IN ib_pnp_handle_t FUNC_PTR64* ph_pnp );\r
+ IN ib_pnp_handle_t * ph_pnp );\r
\r
ib_api_status_t\r
dm_agent_pnp_cb(\r
\r
void\r
dm_agent_send_cb(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN void* mad_svc_context,\r
IN ib_mad_element_t* p_mad_response );\r
\r
void\r
dm_agent_recv_cb(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN void* mad_svc_context,\r
IN ib_mad_element_t* p_mad_request );\r
\r
\r
ib_api_status_t\r
ib_create_ioc(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca,\r
+ IN const ib_ca_handle_t h_ca,\r
IN const ib_ioc_profile_t* const p_ioc_profile,\r
- OUT ib_ioc_handle_t FUNC_PTR64* const ph_ioc )\r
+ OUT ib_ioc_handle_t* const ph_ioc )\r
{\r
- ib_ioc_handle_t VOID_PTR64 h_ioc;\r
+ ib_ioc_handle_t h_ioc;\r
\r
AL_ENTER( AL_DBG_IOC );\r
\r
\r
ib_api_status_t\r
ib_destroy_ioc(\r
- IN const ib_ioc_handle_t FUNC_PTR64 h_ioc )\r
+ IN const ib_ioc_handle_t h_ioc )\r
{\r
AL_ENTER( AL_DBG_IOC );\r
\r
free_ioc(\r
IN al_obj_t* p_obj )\r
{\r
- ib_ioc_handle_t VOID_PTR64 h_ioc;\r
+ ib_ioc_handle_t h_ioc;\r
\r
CL_ASSERT( p_obj );\r
\r
\r
ib_api_status_t\r
ib_reg_ioc(\r
- IN const ib_ioc_handle_t FUNC_PTR64 h_ioc )\r
+ IN const ib_ioc_handle_t h_ioc )\r
{\r
al_iou_t* p_iou;\r
ib_api_status_t status;\r
\r
ib_api_status_t\r
ib_add_svc_entry(\r
- IN const ib_ioc_handle_t FUNC_PTR64 h_ioc,\r
+ IN const ib_ioc_handle_t h_ioc,\r
IN const ib_svc_entry_t* const p_svc_entry,\r
- OUT ib_svc_handle_t FUNC_PTR64* const ph_svc )\r
+ OUT ib_svc_handle_t* const ph_svc )\r
{\r
- ib_svc_handle_t VOID_PTR64 h_svc;\r
+ ib_svc_handle_t h_svc;\r
ib_api_status_t status;\r
\r
AL_ENTER( AL_DBG_IOC );\r
AL_EXIT( AL_DBG_IOC );\r
return IB_INSUFFICIENT_RESOURCES;\r
}\r
- h_svc = cl_zalloc( sizeof( ib_svc_handle_t VOID_PTR64 ) );\r
+ h_svc = cl_zalloc( sizeof( ib_svc_handle_t ) );\r
if( !h_svc )\r
{\r
AL_EXIT( AL_DBG_IOC );\r
\r
ib_api_status_t\r
ib_remove_svc_entry(\r
- IN const ib_svc_handle_t FUNC_PTR64 h_svc )\r
+ IN const ib_svc_handle_t h_svc )\r
{\r
- ib_ioc_handle_t VOID_PTR64 h_ioc;\r
+ ib_ioc_handle_t h_ioc;\r
\r
AL_ENTER( AL_DBG_IOC );\r
\r
free_svc_entry(\r
IN al_obj_t* p_obj )\r
{\r
- ib_svc_handle_t VOID_PTR64 h_svc;\r
+ ib_svc_handle_t h_svc;\r
\r
CL_ASSERT( p_obj );\r
h_svc = PARENT_STRUCT( p_obj, al_svc_entry_t, obj );\r
*/\r
al_iou_t*\r
get_iou(\r
- IN const ib_ioc_handle_t FUNC_PTR64 h_ioc )\r
+ IN const ib_ioc_handle_t h_ioc )\r
{\r
CL_ASSERT( h_ioc );\r
\r
\r
\r
\r
-ib_ioc_handle_t VOID_PTR64\r
+ib_ioc_handle_t \r
get_ioc(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca )\r
+ IN const ib_ca_handle_t h_ca )\r
{\r
cl_list_item_t* p_ioc_item;\r
al_iou_t* p_iou;\r
- ib_ioc_handle_t VOID_PTR64 h_ioc;\r
+ ib_ioc_handle_t h_ioc;\r
boolean_t found;\r
ib_api_status_t status;\r
\r
ib_api_status_t\r
add_ioc(\r
IN al_iou_t* p_iou,\r
- IN ib_ioc_handle_t FUNC_PTR64 h_ioc )\r
+ IN ib_ioc_handle_t h_ioc )\r
{\r
cl_list_item_t* p_list_item;\r
al_obj_t* p_obj;\r
\r
void\r
ioc_change(\r
- IN ib_ioc_handle_t FUNC_PTR64 h_ioc )\r
+ IN ib_ioc_handle_t h_ioc )\r
{\r
CL_ASSERT( h_ioc );\r
\r
\r
CL_ASSERT( p_reg_svc_rec );\r
\r
- p_iou_port = (al_iou_port_t* VOID_PTR64)p_reg_svc_rec->svc_context;\r
+ p_iou_port = (al_iou_port_t*)p_reg_svc_rec->svc_context;\r
\r
if( p_reg_svc_rec->req_status != IB_SUCCESS )\r
deref_al_obj( &p_iou_port->obj );\r
ib_api_status_t\r
dm_agent_reg_pnp(\r
IN ib_pnp_class_t pnp_class,\r
- IN ib_pnp_handle_t FUNC_PTR64* ph_pnp )\r
+ IN ib_pnp_handle_t * ph_pnp )\r
{\r
ib_api_status_t status;\r
ib_pnp_req_t pnp_req;\r
IN ib_pnp_rec_t* p_pnp_rec )\r
{\r
al_iou_t* p_iou;\r
- ib_ca_handle_t VOID_PTR64 h_ca;\r
+ ib_ca_handle_t h_ca;\r
ib_api_status_t status;\r
\r
CL_ASSERT( p_pnp_rec );\r
{\r
al_iou_t* p_iou;\r
cl_list_item_t* p_ioc_item;\r
- ib_ioc_handle_t VOID_PTR64 h_ioc;\r
+ ib_ioc_handle_t h_ioc;\r
\r
CL_ASSERT( p_obj );\r
p_iou = PARENT_STRUCT( p_obj, al_iou_t, obj );\r
*/\r
void\r
dm_agent_send_cb(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN void* mad_svc_context,\r
IN ib_mad_element_t* p_mad_response )\r
{\r
*/\r
void\r
dm_agent_recv_cb(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN void* mad_svc_context,\r
IN ib_mad_element_t* p_mad_request )\r
{\r
{\r
ib_iou_info_t* p_iou_info;\r
cl_list_item_t* p_ioc_item;\r
- ib_ioc_handle_t VOID_PTR64 h_ioc;\r
+ ib_ioc_handle_t h_ioc;\r
uint8_t slot;\r
\r
CL_ASSERT( p_iou );\r
{\r
ib_ioc_profile_t* p_ioc_profile;\r
cl_list_item_t* p_ioc_item;\r
- ib_ioc_handle_t VOID_PTR64 h_ioc;\r
+ ib_ioc_handle_t h_ioc;\r
\r
CL_ASSERT( p_iou );\r
CL_ASSERT( p_dm_mad );\r
ib_svc_entries_t* p_svc_entries;\r
cl_list_item_t* p_ioc_item;\r
cl_list_item_t* p_list_item;\r
- ib_ioc_handle_t VOID_PTR64 h_ioc;\r
+ ib_ioc_handle_t h_ioc;\r
al_obj_t* p_obj;\r
al_svc_entry_t* p_svc_entry;\r
uint8_t i, j, k;\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
typedef struct _dm_agent /* Global device management agent struct */\r
{\r
al_obj_t obj; /* Child of al_mgr_t */\r
-TO_LONG_PTR( ib_pnp_handle_t , h_ca_pnp) ; /* Handle for CA PnP events */\r
-TO_LONG_PTR( ib_pnp_handle_t , h_port_pnp) ; /* Handle for Port PnP events */\r
+ ib_pnp_handle_t h_ca_pnp; /* Handle for CA PnP events */\r
+ ib_pnp_handle_t h_port_pnp; /* Handle for Port PnP events */\r
\r
/*\r
* Lock and state to synchronize user-mode device management\r
net64_t port_guid;\r
ib_gid_t port_gid;\r
ib_net16_t port_pkey;\r
-TO_LONG_PTR( ib_qp_handle_t , h_qp_alias) ; \r
-TO_LONG_PTR( ib_mad_svc_handle_t , h_mad_svc) ; \r
+ ib_qp_handle_t h_qp_alias;\r
+ ib_mad_svc_handle_t h_mad_svc;\r
\r
-TO_LONG_PTR( struct _al_pool_key* , pool_key) ; \r
+ ib_pool_key_t pool_key;\r
\r
ib_reg_svc_handle_t svc_handle; /* Service registration handle */\r
\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
\r
static void\r
__check_send_queue(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc );\r
+ IN ib_mad_svc_handle_t h_mad_svc );\r
\r
static void\r
__recv_timer_cb(\r
\r
static ib_api_status_t\r
__init_send_mad(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
- IN const ib_mad_send_handle_t FUNC_PTR64 h_send,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
+ IN const ib_mad_send_handle_t h_send,\r
IN ib_mad_element_t* const p_mad_element );\r
\r
static boolean_t\r
static void\r
__queue_mad_wr(\r
IN const al_mad_reg_handle_t h_mad_reg,\r
- IN const ib_mad_send_handle_t FUNC_PTR64 h_send );\r
+ IN const ib_mad_send_handle_t h_send );\r
\r
static void\r
__queue_rmpp_seg(\r
IN const al_mad_reg_handle_t h_mad_reg,\r
- IN ib_mad_send_handle_t FUNC_PTR64 h_send );\r
+ IN ib_mad_send_handle_t h_send );\r
\r
static ib_api_status_t\r
__create_send_av(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
- IN ib_mad_send_handle_t FUNC_PTR64 h_send );\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
+ IN ib_mad_send_handle_t h_send );\r
\r
static void\r
__cleanup_mad_send(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
- IN ib_mad_send_handle_t FUNC_PTR64 h_send );\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
+ IN ib_mad_send_handle_t h_send );\r
\r
static __inline void\r
__set_retry_time(\r
- IN ib_mad_send_handle_t FUNC_PTR64 h_send );\r
+ IN ib_mad_send_handle_t h_send );\r
\r
static void\r
__mad_svc_send_done(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN al_mad_wr_t *p_mad_wr,\r
IN ib_wc_t *p_wc );\r
\r
static boolean_t\r
__is_send_mad_done(\r
- IN ib_mad_send_handle_t FUNC_PTR64 h_send,\r
+ IN ib_mad_send_handle_t h_send,\r
IN ib_wc_t *p_wc );\r
\r
static void\r
__notify_send_comp(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
- IN ib_mad_send_handle_t FUNC_PTR64 h_send,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
+ IN ib_mad_send_handle_t h_send,\r
IN ib_wc_status_t wc_status );\r
\r
static void\r
__mad_svc_recv_done(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN ib_mad_element_t *p_mad_element );\r
\r
static void\r
__process_recv_resp(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN ib_mad_element_t *p_mad_element );\r
\r
static cl_status_t\r
__do_rmpp_recv(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN OUT ib_mad_element_t **pp_mad_element );\r
\r
static __inline boolean_t\r
\r
static cl_status_t\r
__process_rmpp_data(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN OUT ib_mad_element_t **pp_mad_element );\r
\r
static void\r
__process_rmpp_ack(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN ib_mad_element_t *p_mad_element );\r
\r
static void\r
__process_rmpp_nack(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN ib_mad_element_t *p_mad_element );\r
\r
static cl_status_t\r
__process_segment(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN al_mad_rmpp_t *p_rmpp,\r
IN OUT ib_mad_element_t **pp_mad_element,\r
OUT ib_mad_element_t **pp_rmpp_resp_mad );\r
\r
static al_mad_rmpp_t*\r
__find_rmpp(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN OUT ib_mad_element_t *p_mad_element );\r
\r
static al_mad_rmpp_t*\r
__get_mad_rmpp(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN ib_mad_element_t *p_mad_element );\r
\r
static void\r
__put_mad_rmpp(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN al_mad_rmpp_t *p_rmpp );\r
\r
static void\r
\r
ib_net64_t\r
__get_send_tid(\r
- IN ib_mad_send_handle_t FUNC_PTR64 h_send )\r
+ IN ib_mad_send_handle_t h_send )\r
{\r
return ((ib_mad_t*)ib_get_mad_buf( h_send->p_send_mad ))->trans_id;\r
}\r
get_mad_hdr_from_wr(\r
IN al_mad_wr_t* const p_mad_wr )\r
{\r
- ib_mad_send_handle_t VOID_PTR64 h_send;\r
+ ib_mad_send_handle_t h_send;\r
\r
CL_ASSERT( p_mad_wr );\r
\r
ib_api_status_t\r
create_mad_disp(\r
IN al_obj_t* const p_parent_obj,\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp,\r
+ IN const ib_qp_handle_t h_qp,\r
IN al_mad_disp_handle_t* const ph_mad_disp )\r
{\r
al_mad_disp_handle_t h_mad_disp;\r
static al_mad_reg_handle_t\r
__mad_disp_reg(\r
IN const al_mad_disp_handle_t h_mad_disp,\r
- IN const ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN const ib_mad_svc_handle_t h_mad_svc,\r
IN const ib_mad_svc_t *p_mad_svc,\r
IN const pfn_mad_svc_send_done_t pfn_send_done,\r
IN const pfn_mad_svc_recv_done_t pfn_recv_done )\r
{\r
ib_mad_t *p_mad_hdr;\r
al_mad_reg_handle_t h_mad_reg;\r
- ib_al_handle_t VOID_PTR64 h_al;\r
- ib_mad_svc_handle_t VOID_PTR64 h_mad_svc;\r
+ ib_al_handle_t h_al;\r
+ ib_mad_svc_handle_t h_mad_svc;\r
\r
cl_vector_t *p_class_vector;\r
cl_ptr_vector_t *p_method_ptr_vector;\r
cl_spinlock_release( &h_mad_disp->obj.lock );\r
\r
/* Handoff the MAD to the correct AL instance. */\r
- h_al = qp_get_al( (ib_qp_handle_t VOID_PTR64)(h_mad_svc->obj.p_parent_obj) );\r
+ h_al = qp_get_al( (ib_qp_handle_t)(h_mad_svc->obj.p_parent_obj) );\r
al_handoff_mad( h_al, p_mad_element );\r
\r
h_mad_reg->pfn_recv_done( h_mad_svc, p_mad_element );\r
*/\r
ib_api_status_t\r
reg_mad_svc(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp,\r
+ IN const ib_qp_handle_t h_qp,\r
IN const ib_mad_svc_t* const p_mad_svc,\r
- OUT ib_mad_svc_handle_t FUNC_PTR64* const ph_mad_svc )\r
+ OUT ib_mad_svc_handle_t* const ph_mad_svc )\r
{\r
ib_api_status_t status;\r
cl_status_t cl_status;\r
- ib_mad_svc_handle_t VOID_PTR64 h_mad_svc;\r
+ ib_mad_svc_handle_t h_mad_svc;\r
al_qp_alias_t *p_qp_alias;\r
ib_qp_attr_t qp_attr;\r
\r
__destroying_mad_svc(\r
IN struct _al_obj *p_obj )\r
{\r
- ib_qp_handle_t VOID_PTR64 h_qp;\r
- ib_mad_svc_handle_t VOID_PTR64 h_mad_svc;\r
- ib_mad_send_handle_t VOID_PTR64 h_send;\r
+ ib_qp_handle_t h_qp;\r
+ ib_mad_svc_handle_t h_mad_svc;\r
+ ib_mad_send_handle_t h_send;\r
cl_list_item_t *p_list_item;\r
int32_t timeout_ms;\r
#ifdef CL_KERNEL\r
h_mad_svc = PARENT_STRUCT( p_obj, al_mad_svc_t, obj );\r
\r
/* Deregister the MAD service. */\r
- h_qp = (ib_qp_handle_t VOID_PTR64)p_obj->p_parent_obj;\r
+ h_qp = (ib_qp_handle_t)p_obj->p_parent_obj;\r
if( h_qp->pfn_dereg_mad_svc )\r
h_qp->pfn_dereg_mad_svc( h_mad_svc );\r
\r
__cleanup_mad_svc(\r
IN struct _al_obj *p_obj )\r
{\r
- ib_mad_svc_handle_t VOID_PTR64 h_mad_svc;\r
+ ib_mad_svc_handle_t h_mad_svc;\r
al_mad_rmpp_t *p_rmpp;\r
cl_list_item_t *p_list_item;\r
\r
free_mad_svc(\r
IN al_obj_t *p_obj )\r
{\r
- ib_mad_svc_handle_t VOID_PTR64 h_mad_svc;\r
+ ib_mad_svc_handle_t h_mad_svc;\r
\r
CL_ASSERT( p_obj );\r
h_mad_svc = PARENT_STRUCT( p_obj, al_mad_svc_t, obj );\r
\r
ib_api_status_t\r
ib_send_mad(\r
- IN const ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN const ib_mad_svc_handle_t h_mad_svc,\r
IN ib_mad_element_t* const p_mad_element_list,\r
OUT ib_mad_element_t **pp_mad_failure OPTIONAL )\r
{\r
ib_api_status_t status = IB_SUCCESS;\r
#ifdef CL_KERNEL\r
- ib_mad_send_handle_t VOID_PTR64 h_send;\r
+ ib_mad_send_handle_t h_send;\r
ib_mad_element_t *p_cur_mad, *p_next_mad;\r
#endif\r
\r
\r
static ib_api_status_t\r
__init_send_mad(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
- IN const ib_mad_send_handle_t FUNC_PTR64 h_send,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
+ IN const ib_mad_send_handle_t h_send,\r
IN ib_mad_element_t* const p_mad_element )\r
{\r
ib_rmpp_mad_t *p_rmpp_hdr;\r
\r
static ib_api_status_t\r
__create_send_av(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
- IN ib_mad_send_handle_t FUNC_PTR64 h_send )\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
+ IN ib_mad_send_handle_t h_send )\r
{\r
ib_av_attr_t av_attr;\r
ib_mad_element_t *p_mad_element;\r
static void\r
__queue_rmpp_seg(\r
IN const al_mad_reg_handle_t h_mad_reg,\r
- IN ib_mad_send_handle_t FUNC_PTR64 h_send )\r
+ IN ib_mad_send_handle_t h_send )\r
{\r
ib_rmpp_mad_t *p_rmpp_hdr;\r
\r
static void\r
__queue_mad_wr(\r
IN const al_mad_reg_handle_t h_mad_reg,\r
- IN const ib_mad_send_handle_t FUNC_PTR64 h_send )\r
+ IN const ib_mad_send_handle_t h_send )\r
{\r
ib_send_wr_t *p_send_wr;\r
al_mad_element_t *p_al_element;\r
#else\r
p_rmpp_dst = (uint8_t*)(uintn_t)p_al_element->mad_ds.vaddr;\r
#endif\r
- p_rmpp_src = (uint8_t* VOID_PTR64)h_send->p_send_mad->p_mad_buf;\r
+ p_rmpp_src = (uint8_t*)h_send->p_send_mad->p_mad_buf;\r
p_rmpp_hdr = (ib_rmpp_mad_t*)p_rmpp_src;\r
\r
if( h_send->p_send_mad->p_mad_buf->mgmt_class == IB_MCLASS_SUBN_ADM )\r
IN const cl_list_item_t* const p_list_item,\r
IN void* context )\r
{\r
- ib_mad_send_handle_t VOID_PTR64 h_send;\r
+ ib_mad_send_handle_t h_send;\r
\r
h_send = PARENT_STRUCT( p_list_item, al_mad_send_t, pool_item );\r
\r
\r
ib_api_status_t\r
ib_cancel_mad(\r
- IN const ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN const ib_mad_svc_handle_t h_mad_svc,\r
IN ib_mad_element_t* const p_mad_element )\r
{\r
#ifdef CL_KERNEL\r
cl_list_item_t *p_list_item;\r
- ib_mad_send_handle_t VOID_PTR64 h_send;\r
+ ib_mad_send_handle_t h_send;\r
#else\r
ib_api_status_t status;\r
#endif\r
\r
ib_api_status_t\r
ib_delay_mad(\r
- IN const ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN const ib_mad_svc_handle_t h_mad_svc,\r
IN ib_mad_element_t* const p_mad_element,\r
IN const uint32_t delay_ms )\r
{\r
#ifdef CL_KERNEL\r
cl_list_item_t *p_list_item;\r
- ib_mad_send_handle_t VOID_PTR64 h_send;\r
+ ib_mad_send_handle_t h_send;\r
#endif\r
\r
AL_ENTER( AL_DBG_MAD_SVC );\r
*/\r
static void\r
__mad_svc_send_done(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN al_mad_wr_t *p_mad_wr,\r
IN ib_wc_t *p_wc )\r
{\r
- ib_mad_send_handle_t VOID_PTR64 h_send;\r
+ ib_mad_send_handle_t h_send;\r
\r
AL_ENTER( AL_DBG_MAD_SVC );\r
CL_ASSERT( h_mad_svc && p_mad_wr && !p_wc->p_next );\r
*/\r
static void\r
__notify_send_comp(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
- IN ib_mad_send_handle_t FUNC_PTR64 h_send,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
+ IN ib_mad_send_handle_t h_send,\r
IN ib_wc_status_t wc_status )\r
{\r
AL_ENTER( AL_DBG_MAD_SVC );\r
*/\r
static void\r
__cleanup_mad_send(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
- IN ib_mad_send_handle_t FUNC_PTR64 h_send )\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
+ IN ib_mad_send_handle_t h_send )\r
{\r
/* Release any address vectors that we may have created. */\r
if( h_send->h_av )\r
\r
static boolean_t\r
__is_send_mad_done(\r
- IN ib_mad_send_handle_t FUNC_PTR64 h_send,\r
+ IN ib_mad_send_handle_t h_send,\r
IN ib_wc_t *p_wc )\r
{\r
AL_ENTER( AL_DBG_MAD_SVC );\r
* Try to find a send that matches the received response. This call must\r
* be synchronized with access to the MAD service send_list.\r
*/\r
-static ib_mad_send_handle_t VOID_PTR64\r
+static ib_mad_send_handle_t\r
__mad_svc_match_recv(\r
- IN const ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN const ib_mad_svc_handle_t h_mad_svc,\r
IN ib_mad_element_t* const p_recv_mad )\r
{\r
ib_mad_t *p_recv_hdr;\r
cl_list_item_t *p_list_item;\r
- ib_mad_send_handle_t VOID_PTR64 h_send;\r
+ ib_mad_send_handle_t h_send;\r
\r
AL_ENTER( AL_DBG_MAD_SVC );\r
\r
\r
static void\r
__mad_svc_recv_done(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN ib_mad_element_t *p_mad_element )\r
{\r
ib_mad_t *p_mad_hdr;\r
*/\r
static void\r
__process_recv_resp(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN ib_mad_element_t *p_mad_element )\r
{\r
ib_mad_t *p_mad_hdr;\r
- ib_mad_send_handle_t VOID_PTR64 h_send;\r
+ ib_mad_send_handle_t h_send;\r
\r
/*\r
* Try to find the send. The send may have already timed out or\r
h_send->p_send_mad->status = IB_WCS_SUCCESS;\r
\r
/* Record the send contexts with the receive. */\r
- p_mad_element->send_context1 = (void* VOID_PTR64)h_send->p_send_mad->context1;\r
- p_mad_element->send_context2 = (void* VOID_PTR64)h_send->p_send_mad->context2;\r
+ p_mad_element->send_context1 = (void*)h_send->p_send_mad->context1;\r
+ p_mad_element->send_context2 = (void*)h_send->p_send_mad->context2;\r
\r
if( h_send->retry_time == MAX_TIME )\r
{\r
*/\r
static cl_status_t\r
__do_rmpp_recv(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN OUT ib_mad_element_t **pp_mad_element )\r
{\r
ib_rmpp_mad_t *p_rmpp_mad;\r
*/\r
static cl_status_t\r
__process_rmpp_data(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN OUT ib_mad_element_t **pp_mad_element )\r
{\r
ib_mad_element_t *p_rmpp_resp_mad = NULL;\r
*/\r
static al_mad_rmpp_t*\r
__find_rmpp(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN OUT ib_mad_element_t *p_mad_element )\r
{\r
al_mad_rmpp_t *p_rmpp;\r
*/\r
static al_mad_rmpp_t*\r
__get_mad_rmpp(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN ib_mad_element_t *p_mad_element )\r
{\r
al_mad_rmpp_t *p_rmpp;\r
*/\r
static void\r
__put_mad_rmpp(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN al_mad_rmpp_t *p_rmpp )\r
{\r
/* Remove the tracking structure from the reassembly list. */\r
*/\r
static cl_status_t\r
__process_segment(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN al_mad_rmpp_t *p_rmpp,\r
IN OUT ib_mad_element_t **pp_mad_element,\r
OUT ib_mad_element_t **pp_rmpp_resp_mad )\r
if( (*pp_mad_element)->p_mad_buf->mgmt_class == IB_MCLASS_SUBN_ADM )\r
{\r
/* Copy the received data into our reassembly buffer. */\r
- p_src_seg = ((uint8_t* VOID_PTR64)(*pp_mad_element)->p_mad_buf) +\r
+ p_src_seg = ((uint8_t*)(*pp_mad_element)->p_mad_buf) +\r
IB_SA_MAD_HDR_SIZE;\r
- p_dst_seg = ((uint8_t* VOID_PTR64)p_rmpp->p_mad_element->p_mad_buf) +\r
+ p_dst_seg = ((uint8_t*)p_rmpp->p_mad_element->p_mad_buf) +\r
IB_SA_MAD_HDR_SIZE + IB_SA_DATA_SIZE * (cur_seg - 1);\r
cl_memcpy( p_dst_seg, p_src_seg, IB_SA_DATA_SIZE );\r
}\r
else \r
{\r
/* Copy the received data into our reassembly buffer. */\r
- p_src_seg = ((uint8_t* VOID_PTR64)(*pp_mad_element)->p_mad_buf) +\r
+ p_src_seg = ((uint8_t*)(*pp_mad_element)->p_mad_buf) +\r
MAD_RMPP_HDR_SIZE;\r
- p_dst_seg = ((uint8_t* VOID_PTR64)p_rmpp->p_mad_element->p_mad_buf) +\r
+ p_dst_seg = ((uint8_t*)p_rmpp->p_mad_element->p_mad_buf) +\r
MAD_RMPP_HDR_SIZE + MAD_RMPP_DATA_SIZE * (cur_seg - 1);\r
cl_memcpy( p_dst_seg, p_src_seg, MAD_RMPP_DATA_SIZE );\r
}\r
*/\r
static void\r
__process_rmpp_ack(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN ib_mad_element_t *p_mad_element )\r
{\r
- ib_mad_send_handle_t VOID_PTR64 h_send;\r
+ ib_mad_send_handle_t h_send;\r
ib_rmpp_mad_t *p_rmpp_mad;\r
boolean_t send_done = FALSE;\r
ib_wc_status_t wc_status = IB_WCS_SUCCESS;\r
*/\r
static void\r
__process_rmpp_nack(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN ib_mad_element_t *p_mad_element )\r
{\r
- ib_mad_send_handle_t VOID_PTR64 h_send;\r
+ ib_mad_send_handle_t h_send;\r
ib_rmpp_mad_t *p_rmpp_mad;\r
\r
AL_ENTER( AL_DBG_MAD_SVC );\r
\r
static __inline void\r
__set_retry_time(\r
- IN ib_mad_send_handle_t FUNC_PTR64 h_send )\r
+ IN ib_mad_send_handle_t h_send )\r
{\r
h_send->retry_time =\r
(uint64_t)(h_send->p_send_mad->timeout_ms + h_send->delay) * 1000Ui64 +\r
{\r
AL_ENTER( AL_DBG_MAD_SVC );\r
\r
- __check_send_queue( (ib_mad_svc_handle_t VOID_PTR64)context );\r
+ __check_send_queue( (ib_mad_svc_handle_t)context );\r
\r
AL_EXIT( AL_DBG_MAD_SVC );\r
}\r
*/\r
static void\r
__check_send_queue(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc )\r
+ IN ib_mad_svc_handle_t h_mad_svc )\r
{\r
- ib_mad_send_handle_t VOID_PTR64 h_send;\r
+ ib_mad_send_handle_t h_send;\r
cl_list_item_t *p_list_item, *p_next_item;\r
uint64_t cur_time;\r
cl_qlist_t timeout_list;\r
__recv_timer_cb(\r
IN void *context )\r
{\r
- ib_mad_svc_handle_t VOID_PTR64 h_mad_svc;\r
+ ib_mad_svc_handle_t h_mad_svc;\r
al_mad_rmpp_t *p_rmpp;\r
cl_list_item_t *p_list_item, *p_next_item;\r
boolean_t restart_timer;\r
\r
AL_ENTER( AL_DBG_MAD_SVC );\r
\r
- h_mad_svc = (ib_mad_svc_handle_t VOID_PTR64)context;\r
+ h_mad_svc = (ib_mad_svc_handle_t)context;\r
\r
cl_spinlock_acquire( &h_mad_svc->obj.lock );\r
\r
\r
ib_api_status_t\r
ib_local_mad(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca,\r
+ IN const ib_ca_handle_t h_ca,\r
IN const uint8_t port_num,\r
IN const void* const p_mad_in,\r
IN void* p_mad_out )\r
\r
ib_api_status_t\r
al_local_mad( \r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca,\r
+ IN const ib_ca_handle_t h_ca,\r
IN const uint8_t port_num,\r
IN const ib_av_attr_t* p_src_av_attr,\r
IN const void* const p_mad_in,\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
typedef struct _al_mad_disp\r
{\r
al_obj_t obj;\r
-TO_LONG_PTR( ib_qp_handle_t , h_qp) ; \r
+ ib_qp_handle_t h_qp;\r
\r
/* Client information. */\r
cl_vector_t client_vector;\r
\r
typedef void\r
(*pfn_mad_svc_send_done_t)(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN al_mad_wr_t *p_mad_wr,\r
IN ib_wc_t *p_wc );\r
\r
typedef void\r
(*pfn_mad_svc_recv_done_t)(\r
- IN ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN ib_mad_svc_handle_t h_mad_svc,\r
IN ib_mad_element_t *p_mad_element );\r
\r
\r
typedef struct _al_mad_disp_reg\r
{\r
-TO_LONG_PTR( ib_mad_svc_handle_t , h_mad_svc) ; \r
+ ib_mad_svc_handle_t h_mad_svc;\r
al_mad_disp_handle_t h_mad_disp;\r
uint32_t client_id;\r
atomic32_t ref_cnt;\r
ib_api_status_t\r
create_mad_disp(\r
IN al_obj_t* const p_parent_obj,\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp,\r
+ IN const ib_qp_handle_t h_qp,\r
IN al_mad_disp_handle_t* const ph_mad_disp );\r
\r
void\r
cl_timer_t recv_timer;\r
\r
/* The PD and port number are used to create address vectors on sends. */\r
-TO_LONG_PTR( ib_pd_handle_t , h_pd) ; \r
+ ib_pd_handle_t h_pd;\r
uint8_t port_num;\r
\r
} al_mad_svc_t;\r
*/\r
ib_api_status_t\r
reg_mad_svc(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp,\r
+ IN const ib_qp_handle_t h_qp,\r
IN const ib_mad_svc_t* const p_mad_svc,\r
- OUT ib_mad_svc_handle_t FUNC_PTR64* const ph_mad_svc );\r
+ OUT ib_mad_svc_handle_t* const ph_mad_svc );\r
\r
\r
ib_api_status_t\r
al_local_mad( \r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca,\r
+ IN const ib_ca_handle_t h_ca,\r
IN const uint8_t port_num,\r
IN const ib_av_attr_t* p_av_attr,\r
IN const void* const p_mad_in,\r
\r
ib_api_status_t\r
ib_delay_mad(\r
- IN const ib_mad_svc_handle_t FUNC_PTR64 h_mad_svc,\r
+ IN const ib_mad_svc_handle_t h_mad_svc,\r
IN ib_mad_element_t* const p_mad_element,\r
IN const uint32_t delay_ms );\r
\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
\r
typedef struct _al_pool\r
{\r
- al_obj_t obj; /* Child of ib_al_handle_t VOID_PTR64 */\r
+ al_obj_t obj; /* Child of ib_al_handle_t */\r
#if defined( CL_KERNEL )\r
NPAGED_LOOKASIDE_LIST mad_stack;\r
#else\r
* pool key with the AL instance in order to synchronize destruction.\r
*/\r
boolean_t in_al_list;\r
-TO_LONG_PTR( ib_al_handle_t , h_al) ; \r
+ ib_al_handle_t h_al;\r
cl_list_item_t al_item; /* Chain in ib_al_t for dereg */\r
cl_list_item_t pool_item; /* Chain in al_pool_t for grow */\r
\r
-TO_LONG_PTR( ib_pool_handle_t , h_pool) ; \r
+ ib_pool_handle_t h_pool;\r
#ifndef CL_KERNEL\r
-TO_LONG_PTR( ib_pd_handle_t , h_pd) ; \r
+ ib_pd_handle_t h_pd;\r
#else\r
-TO_LONG_PTR( ib_mr_handle_t , h_mr) ; \r
+ ib_mr_handle_t h_mr;\r
net32_t lkey;\r
#endif\r
\r
atomic32_t mad_cnt;\r
\r
/* For alias keys, maintain a reference to the actual pool key. */\r
-TO_LONG_PTR( ib_pool_key_t , pool_key) ; \r
+ ib_pool_key_t pool_key;\r
\r
} al_pool_key_t;\r
\r
\r
ib_api_status_t\r
reg_mad_pool(\r
- IN const ib_pool_handle_t FUNC_PTR64 h_pool,\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
- OUT ib_pool_key_t FUNC_PTR64* const pp_pool_key );\r
+ IN const ib_pool_handle_t h_pool,\r
+ IN const ib_pd_handle_t h_pd,\r
+ OUT ib_pool_key_t* const pp_pool_key );\r
\r
/* Deregister a MAD pool key if it is of the expected type. */\r
ib_api_status_t\r
dereg_mad_pool(\r
- IN const ib_pool_key_t FUNC_PTR64 pool_key,\r
+ IN const ib_pool_key_t pool_key,\r
IN const al_key_type_t expected_type );\r
\r
-\r
-typedef void\r
-(* VOID_PTR64 pfn_mad_dbg_t)(void);\r
-\r
typedef struct _al_mad_element\r
{\r
/*\r
* the SMI and MAD QPs to track received MADs.\r
*/\r
cl_list_item_t list_item;\r
-TO_LONG_PTR( ib_al_handle_t , h_al) ; /* Track out-of-pool MAD owner */\r
+ ib_al_handle_t h_al; /* Track out-of-pool MAD owner */\r
cl_list_item_t al_item; /* Out-of-pool MAD owner chain */\r
ib_mad_element_t element;\r
-TO_LONG_PTR( ib_pool_key_t , pool_key) ; /* For getting mads for RMPP ACK */\r
+ ib_pool_key_t pool_key; /* For getting mads for RMPP ACK */\r
ib_local_ds_t grh_ds; /* GRH + 256 byte buffer. */\r
ib_local_ds_t mad_ds; /* Registered 256-byte buffer. */\r
ib_mad_t *p_al_mad_buf; /* Allocated send/recv buffer. */\r
typedef struct _mad_array\r
{\r
al_obj_t obj; /* Child of al_pool_t */\r
-TO_LONG_PTR( ib_pool_handle_t , h_pool) ; \r
+ ib_pool_handle_t h_pool;\r
size_t sizeof_array;\r
void* p_data;\r
\r
{\r
al_mad_element_t al_mad_element;\r
#if defined( CL_KERNEL )\r
-TO_LONG_PTR( ib_pool_key_t , pool_key) ; \r
+ ib_pool_key_t pool_key;\r
#else\r
mad_array_t* p_mad_array;\r
#endif\r
{\r
cl_pool_item_t pool_item;\r
ib_mad_element_t *p_send_mad;\r
-TO_LONG_PTR( ib_av_handle_t , h_av) ; \r
+ ib_av_handle_t h_av;\r
\r
al_mad_wr_t mad_wr;\r
\r
\r
\r
\r
-ib_mad_send_handle_t FUNC_PTR64\r
+ib_mad_send_handle_t\r
get_mad_send(\r
IN const al_mad_element_t *p_mad_element );\r
\r
\r
void\r
put_mad_send(\r
- IN ib_mad_send_handle_t FUNC_PTR64 h_mad_send );\r
+ IN ib_mad_send_handle_t h_mad_send );\r
\r
\r
al_mad_rmpp_t*\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
\r
ib_api_status_t\r
al_join_mcast(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp,\r
+ IN const ib_qp_handle_t h_qp,\r
IN const ib_mcast_req_t* const p_mcast_req )\r
{\r
- ib_mcast_handle_t VOID_PTR64 h_mcast;\r
+ ib_mcast_handle_t h_mcast;\r
ib_api_status_t status;\r
cl_status_t cl_status;\r
boolean_t sync;\r
__destroying_mcast(\r
IN al_obj_t *p_obj )\r
{\r
- ib_mcast_handle_t VOID_PTR64 h_mcast; \r
+ ib_mcast_handle_t h_mcast;\r
ib_user_query_t sa_mad_data;\r
ib_api_status_t status;\r
\r
AL_ENTER( AL_DBG_MCAST );\r
\r
- h_mcast = PARENT_STRUCT( p_obj, ib_mcast_t, obj ); /// !!!!\r
+ h_mcast = PARENT_STRUCT( p_obj, ib_mcast_t, obj );\r
\r
if( h_mcast->state != SA_REG_STARTING && h_mcast->state != SA_REG_ACTIVE )\r
{\r
__cleanup_mcast(\r
IN al_obj_t *p_obj )\r
{\r
- ib_mcast_handle_t VOID_PTR64 h_mcast;\r
+ ib_mcast_handle_t h_mcast;\r
ib_api_status_t status;\r
\r
AL_ENTER( AL_DBG_MCAST );\r
__free_mcast(\r
IN al_obj_t *p_obj )\r
{\r
- ib_mcast_handle_t VOID_PTR64 h_mcast;\r
+ ib_mcast_handle_t h_mcast;\r
\r
h_mcast = PARENT_STRUCT( p_obj, ib_mcast_t, obj );\r
\r
IN al_sa_req_t *p_sa_req,\r
IN ib_mad_element_t *p_mad_response )\r
{\r
- ib_mcast_handle_t VOID_PTR64 h_mcast;\r
+ ib_mcast_handle_t h_mcast;\r
ib_sa_mad_t *p_sa_mad;\r
\r
AL_ENTER( AL_DBG_MCAST );\r
IN cl_async_proc_item_t *p_item )\r
{\r
ib_api_status_t status;\r
- ib_mcast_handle_t VOID_PTR64 h_mcast;\r
+ ib_mcast_handle_t h_mcast;\r
ib_mcast_rec_t mcast_rec;\r
boolean_t sync;\r
\r
\r
ib_api_status_t\r
ib_leave_mcast(\r
- IN const ib_mcast_handle_t FUNC_PTR64 h_mcast,\r
+ IN const ib_mcast_handle_t h_mcast,\r
IN const ib_pfn_destroy_cb_t pfn_destroy_cb OPTIONAL )\r
{\r
\r
IN al_sa_req_t *p_sa_req,\r
IN ib_mad_element_t *p_mad_response )\r
{\r
- ib_mcast_handle_t VOID_PTR64 h_mcast;\r
+ ib_mcast_handle_t h_mcast;\r
\r
AL_ENTER( AL_DBG_MCAST );\r
h_mcast = PARENT_STRUCT( p_sa_req, ib_mcast_t, sa_dereg_req );\r
*/\r
ib_api_status_t\r
al_attach_mcast(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp,\r
+ IN const ib_qp_handle_t h_qp,\r
IN const ib_gid_t *p_mcast_gid,\r
IN const ib_net16_t mcast_lid,\r
OUT al_attach_handle_t *ph_attach,\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
typedef struct _al_attach\r
{\r
al_obj_t obj;\r
-TO_LONG_PTR( ib_mcast_handle_t , h_ci_mcast) ; /* CI CA handle from attach */\r
+ ib_mcast_handle_t h_ci_mcast; /* CI CA handle from attach */\r
\r
-} al_attach_t, * VOID_PTR64 al_attach_handle_t;\r
+} al_attach_t, *al_attach_handle_t;\r
\r
\r
typedef struct _ib_mcast\r
al_sa_req_t sa_reg_req;\r
al_sa_req_t sa_dereg_req;\r
\r
-TO_LONG_PTR( ib_mcast_handle_t , h_ci_mcast) ; \r
+ ib_mcast_handle_t h_ci_mcast;\r
\r
cl_async_proc_item_t async;\r
\r
\r
void\r
al_cancel_mcast(\r
- IN const ib_mcast_handle_t FUNC_PTR64 h_mcast );\r
+ IN const ib_mcast_handle_t h_mcast );\r
\r
\r
ib_api_status_t\r
al_join_mcast(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp,\r
+ IN const ib_qp_handle_t h_qp,\r
IN const ib_mcast_req_t* const p_mcast_req );\r
\r
\r
*/\r
ib_api_status_t\r
al_attach_mcast(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp,\r
+ IN const ib_qp_handle_t h_qp,\r
IN const ib_gid_t *p_mcast_gid,\r
IN const ib_net16_t mcast_lid,\r
OUT al_attach_handle_t *ph_attach,\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
* Note that the exported symbols are only exported for the bus driver\r
* (loader) and are not intended for use by any normal AL clients.\r
*/\r
-AL_EXPORT cl_async_proc_t *gp_async_proc_mgr;\r
-AL_EXPORT cl_async_proc_t *gp_async_pnp_mgr;\r
-AL_EXPORT al_mgr_t *gp_al_mgr;\r
-AL_EXPORT ib_al_handle_t VOID_PTR64 gh_al ; \r
-ib_pool_handle_t gh_mad_pool ; \r
+cl_async_proc_t *gp_async_proc_mgr;\r
+cl_async_proc_t *gp_async_pnp_mgr;\r
+al_mgr_t *gp_al_mgr;\r
+ib_al_handle_t gh_al;\r
+ib_pool_handle_t gh_mad_pool;\r
\r
\r
ib_api_status_t\r
\r
void\r
print_al_objs(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al );\r
+ IN const ib_al_handle_t h_al );\r
\r
void\r
print_al_obj(\r
al_ci_ca_t*\r
acquire_ci_ca(\r
IN const ib_net64_t ci_ca_guid,\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca );\r
+ IN const ib_ca_handle_t h_ca );\r
\r
void\r
release_ci_ca(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca );\r
+ IN const ib_ca_handle_t h_ca );\r
\r
\r
-AL_EXPORT ib_ca_handle_t FUNC_PTR64 AL_API\r
+ib_ca_handle_t\r
acquire_ca(\r
IN const ib_net64_t ci_ca_guid );\r
\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
#include "al_mgr.h"\r
#include "al_pnp.h"\r
\r
-ib_al_handle_t VOID_PTR64 gh_al = NULL;\r
-ib_pool_handle_t VOID_PTR64 gh_mad_pool = NULL;\r
+ib_al_handle_t gh_al = NULL;\r
+ib_pool_handle_t gh_mad_pool = NULL;\r
al_mgr_t *gp_al_mgr = NULL;\r
cl_async_proc_t *gp_async_proc_mgr = NULL;\r
cl_async_proc_t *gp_async_pnp_mgr = NULL;\r
\r
void\r
print_al_objs(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al )\r
+ IN const ib_al_handle_t h_al )\r
{\r
al_obj_t *p_obj;\r
cl_list_item_t *p_list_item;\r
al_ci_ca_t*\r
acquire_ci_ca(\r
IN const ib_net64_t ci_ca_guid,\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca )\r
+ IN const ib_ca_handle_t h_ca )\r
{\r
al_ci_ca_t *p_ci_ca;\r
\r
\r
void\r
release_ci_ca(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca )\r
+ IN const ib_ca_handle_t h_ca )\r
{\r
AL_ENTER( AL_DBG_MGR );\r
remove_ca( h_ca );\r
\r
\r
\r
-ib_ca_handle_t VOID_PTR64\r
+ib_ca_handle_t\r
acquire_ca(\r
IN const ib_net64_t ci_ca_guid )\r
{\r
\r
static ib_api_status_t\r
__get_guid_by_gid (\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN const ib_gid_t* const p_gid,\r
IN const uintn_t type,\r
OUT ib_net64_t* const p_guid )\r
\r
ib_api_status_t\r
ib_get_ca_by_gid(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN const ib_gid_t* const p_gid,\r
OUT ib_net64_t* const p_ca_guid )\r
{\r
\r
ib_api_status_t\r
ib_get_port_by_gid(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN const ib_gid_t* const p_gid,\r
OUT ib_net64_t* const p_port_guid )\r
{\r
*/\r
ib_api_status_t\r
ib_get_ca_guids(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
OUT ib_net64_t* const p_guid_array OPTIONAL,\r
IN OUT size_t* const p_guid_cnt )\r
{\r
\r
ib_api_status_t\r
ib_get_guid(\r
- IN ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN ib_al_handle_t h_al,\r
IN const uint32_t index,\r
IN const ib_pnp_class_t device_type,\r
IN const uint64_t attr_mask,\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
typedef struct _ib_mr\r
{\r
al_obj_t obj;\r
-TO_LONG_PTR( ib_mr_handle_t , h_ci_mr) ; /* Actual HW handle. */\r
+ ib_mr_handle_t h_ci_mr; /* Actual HW handle. */\r
\r
/* Reference to any memory registrations shared between processes. */\r
al_shmid_t *p_shmid;\r
\r
ib_api_status_t\r
reg_mem(\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_mr_create_t* const p_mr_create,\r
OUT net32_t* const p_lkey,\r
OUT net32_t* const p_rkey,\r
- OUT ib_mr_handle_t FUNC_PTR64* const ph_mr,\r
+ OUT ib_mr_handle_t* const ph_mr,\r
IN boolean_t um_call );\r
\r
\r
ib_api_status_t\r
reg_phys(\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_phys_create_t* const p_phys_create,\r
IN OUT uint64_t* const p_vaddr,\r
OUT net32_t* const p_lkey,\r
OUT net32_t* const p_rkey,\r
- OUT ib_mr_handle_t FUNC_PTR64* const ph_mr,\r
+ OUT ib_mr_handle_t* const ph_mr,\r
IN boolean_t um_call );\r
\r
\r
ib_api_status_t\r
reg_shared(\r
- IN const ib_mr_handle_t FUNC_PTR64 h_mr,\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_mr_handle_t h_mr,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_access_t access_ctrl,\r
IN OUT uint64_t* const p_vaddr,\r
OUT net32_t* const p_lkey,\r
OUT net32_t* const p_rkey,\r
- OUT ib_mr_handle_t FUNC_PTR64* const ph_mr,\r
+ OUT ib_mr_handle_t* const ph_mr,\r
IN boolean_t um_call );\r
\r
\r
ib_api_status_t\r
rereg_mem(\r
- IN const ib_mr_handle_t FUNC_PTR64 h_mr,\r
+ IN const ib_mr_handle_t h_mr,\r
IN const ib_mr_mod_t mr_mod_mask,\r
IN const ib_mr_create_t* const p_mr_create OPTIONAL,\r
OUT net32_t* const p_lkey,\r
OUT net32_t* const p_rkey,\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd OPTIONAL,\r
+ IN const ib_pd_handle_t h_pd OPTIONAL,\r
IN boolean_t um_call );\r
\r
\r
ib_api_status_t\r
rereg_phys(\r
- IN const ib_mr_handle_t FUNC_PTR64 h_mr,\r
+ IN const ib_mr_handle_t h_mr,\r
IN const ib_mr_mod_t mr_mod_mask,\r
IN const ib_phys_create_t* const p_phys_create OPTIONAL,\r
IN OUT uint64_t* const p_vaddr,\r
OUT net32_t* const p_lkey,\r
OUT net32_t* const p_rkey,\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd OPTIONAL,\r
+ IN const ib_pd_handle_t h_pd OPTIONAL,\r
IN boolean_t um_call );\r
\r
\r
ib_api_status_t\r
dereg_mr(\r
- IN const ib_mr_handle_t FUNC_PTR64 h_mr );\r
+ IN const ib_mr_handle_t h_mr );\r
\r
ib_api_status_t\r
reg_shmid(\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_shmid_t shmid,\r
IN const ib_mr_create_t* const p_mr_create,\r
IN OUT uint64_t* const p_vaddr,\r
OUT net32_t* const p_lkey,\r
OUT net32_t* const p_rkey,\r
- OUT ib_mr_handle_t FUNC_PTR64* const ph_mr );\r
+ OUT ib_mr_handle_t* const ph_mr );\r
\r
\r
#ifdef CL_KERNEL\r
typedef struct _mlnx_fmr\r
{\r
al_obj_t obj;\r
-TO_LONG_PTR( struct _mlnx_fmr *, h_ci_fmr) ; /* Actual HW handle. */\r
- TO_LONG_PTR(struct _mlnx_fmr * , p_next) ;\r
+ mlnx_fmr_handle_t h_ci_fmr; /* Actual HW handle. */\r
+ struct _mlnx_fmr* p_next;\r
} mlnx_fmr_t;\r
\r
\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
OUT cl_pool_item_t** const pp_pool_item )\r
{\r
ib_api_status_t status;\r
- ib_mr_handle_t VOID_PTR64 h_mr;\r
+ ib_mr_handle_t h_mr;\r
\r
UNUSED_PARAM( context );\r
\r
- h_mr = (ib_mr_handle_t VOID_PTR64)p_object;\r
+ h_mr = (ib_mr_handle_t)p_object;\r
cl_memclr( h_mr, sizeof( ib_mr_t ) );\r
\r
construct_al_obj( &h_mr->obj, AL_OBJ_TYPE_H_MR );\r
return CL_ERROR;\r
}\r
\r
- *pp_pool_item = &((ib_mr_handle_t VOID_PTR64)p_object)->obj.pool_item;\r
+ *pp_pool_item = &((ib_mr_handle_t)p_object)->obj.pool_item;\r
\r
/* Release the reference taken in init_al_obj. */\r
deref_al_obj( &h_mr->obj );\r
IN struct _al_obj *p_obj )\r
{\r
ib_api_status_t status;\r
- ib_mr_handle_t VOID_PTR64 h_mr;\r
+ ib_mr_handle_t h_mr;\r
\r
CL_ASSERT( p_obj );\r
h_mr = PARENT_STRUCT( p_obj, ib_mr_t, obj );\r
__return_mr(\r
IN al_obj_t *p_obj )\r
{\r
- ib_mr_handle_t VOID_PTR64 h_mr;\r
+ ib_mr_handle_t h_mr;\r
\r
h_mr = PARENT_STRUCT( p_obj, ib_mr_t, obj );\r
reset_al_obj( p_obj );\r
\r
ib_api_status_t\r
ib_reg_mem(\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_mr_create_t* const p_mr_create,\r
OUT net32_t* const p_lkey,\r
OUT net32_t* const p_rkey,\r
- OUT ib_mr_handle_t FUNC_PTR64* const ph_mr )\r
+ OUT ib_mr_handle_t* const ph_mr )\r
{\r
ib_api_status_t status;\r
\r
\r
ib_api_status_t\r
reg_mem(\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_mr_create_t* const p_mr_create,\r
OUT net32_t* const p_lkey,\r
OUT net32_t* const p_rkey,\r
- OUT ib_mr_handle_t FUNC_PTR64* const ph_mr,\r
+ OUT ib_mr_handle_t* const ph_mr,\r
IN boolean_t um_call )\r
{\r
- ib_mr_handle_t VOID_PTR64 h_mr;\r
+ ib_mr_handle_t h_mr;\r
ib_api_status_t status;\r
\r
AL_ENTER( AL_DBG_MR );\r
\r
ib_api_status_t\r
ib_reg_phys(\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_phys_create_t* const p_phys_create,\r
IN OUT uint64_t* const p_vaddr,\r
OUT net32_t* const p_lkey,\r
OUT net32_t* const p_rkey,\r
- OUT ib_mr_handle_t FUNC_PTR64* const ph_mr )\r
+ OUT ib_mr_handle_t* const ph_mr )\r
{\r
- ib_mr_handle_t VOID_PTR64 h_mr;\r
+ ib_mr_handle_t h_mr;\r
ib_api_status_t status;\r
\r
AL_ENTER( AL_DBG_MR );\r
\r
ib_api_status_t\r
ib_rereg_mem(\r
- IN const ib_mr_handle_t FUNC_PTR64 h_mr,\r
+ IN const ib_mr_handle_t h_mr,\r
IN const ib_mr_mod_t mr_mod_mask,\r
IN const ib_mr_create_t* const p_mr_create OPTIONAL,\r
OUT net32_t* const p_lkey,\r
OUT net32_t* const p_rkey,\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd OPTIONAL )\r
+ IN const ib_pd_handle_t h_pd OPTIONAL )\r
{\r
if( AL_OBJ_INVALID_HANDLE( h_mr, AL_OBJ_TYPE_H_MR ) )\r
{\r
\r
ib_api_status_t\r
rereg_mem(\r
- IN const ib_mr_handle_t FUNC_PTR64 h_mr,\r
+ IN const ib_mr_handle_t h_mr,\r
IN const ib_mr_mod_t mr_mod_mask,\r
IN const ib_mr_create_t* const p_mr_create OPTIONAL,\r
OUT net32_t* const p_lkey,\r
OUT net32_t* const p_rkey,\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd OPTIONAL,\r
+ IN const ib_pd_handle_t h_pd OPTIONAL,\r
IN boolean_t um_call )\r
{\r
ib_api_status_t status;\r
\r
ib_api_status_t\r
ib_rereg_phys(\r
- IN const ib_mr_handle_t FUNC_PTR64 h_mr,\r
+ IN const ib_mr_handle_t h_mr,\r
IN const ib_mr_mod_t mr_mod_mask,\r
IN const ib_phys_create_t* const p_phys_create OPTIONAL,\r
IN OUT uint64_t* const p_vaddr,\r
OUT net32_t* const p_lkey,\r
OUT net32_t* const p_rkey,\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd OPTIONAL )\r
+ IN const ib_pd_handle_t h_pd OPTIONAL )\r
{\r
ib_api_status_t status;\r
\r
\r
ib_api_status_t\r
ib_reg_shared(\r
- IN const ib_mr_handle_t FUNC_PTR64 h_mr,\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_mr_handle_t h_mr,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_access_t access_ctrl,\r
IN OUT uint64_t* const p_vaddr,\r
OUT net32_t* const p_lkey,\r
OUT net32_t* const p_rkey,\r
- OUT ib_mr_handle_t FUNC_PTR64* const ph_mr )\r
+ OUT ib_mr_handle_t* const ph_mr )\r
{\r
ib_api_status_t status;\r
\r
\r
ib_api_status_t\r
reg_shared(\r
- IN const ib_mr_handle_t FUNC_PTR64 h_mr,\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_mr_handle_t h_mr,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_access_t access_ctrl,\r
IN OUT uint64_t* const p_vaddr,\r
OUT net32_t* const p_lkey,\r
OUT net32_t* const p_rkey,\r
- OUT ib_mr_handle_t FUNC_PTR64* const ph_mr,\r
+ OUT ib_mr_handle_t* const ph_mr,\r
IN boolean_t um_call )\r
{\r
- ib_mr_handle_t VOID_PTR64 h_new_mr;\r
+ ib_mr_handle_t h_new_mr;\r
ib_api_status_t status;\r
\r
AL_ENTER( AL_DBG_MR );\r
\r
ib_api_status_t\r
ib_dereg_mr(\r
- IN const ib_mr_handle_t FUNC_PTR64 h_mr )\r
+ IN const ib_mr_handle_t h_mr )\r
{\r
ib_api_status_t status;\r
\r
\r
ib_api_status_t\r
dereg_mr(\r
- IN const ib_mr_handle_t FUNC_PTR64 h_mr )\r
+ IN const ib_mr_handle_t h_mr )\r
{\r
ib_api_status_t status;\r
\r
\r
ib_api_status_t\r
ib_query_mr(\r
- IN const ib_mr_handle_t FUNC_PTR64 h_mr,\r
+ IN const ib_mr_handle_t h_mr,\r
OUT ib_mr_attr_t* const p_mr_attr )\r
{\r
ib_api_status_t status;\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
\r
ib_api_status_t\r
create_mw(\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
OUT net32_t* const p_rkey,\r
- OUT ib_mw_handle_t FUNC_PTR64* const ph_mw,\r
+ OUT ib_mw_handle_t* const ph_mw,\r
IN OUT ci_umv_buf_t* const p_umv_buf )\r
{\r
- ib_mw_handle_t VOID_PTR64 h_mw;\r
+ ib_mw_handle_t h_mw;\r
ib_api_status_t status;\r
al_obj_type_t obj_type = AL_OBJ_TYPE_H_MW;\r
\r
\r
ib_api_status_t\r
ib_destroy_mw(\r
- IN const ib_mw_handle_t FUNC_PTR64 h_mw )\r
+ IN const ib_mw_handle_t h_mw )\r
{\r
ib_api_status_t status;\r
\r
\r
ib_api_status_t\r
destroy_mw(\r
- IN const ib_mw_handle_t FUNC_PTR64 h_mw )\r
+ IN const ib_mw_handle_t h_mw )\r
{\r
ib_api_status_t status;\r
\r
destroying_mw(\r
IN struct _al_obj *p_obj )\r
{\r
- ib_mw_handle_t VOID_PTR64 h_mw;\r
+ ib_mw_handle_t h_mw;\r
\r
CL_ASSERT( p_obj );\r
h_mw = PARENT_STRUCT( p_obj, ib_mw_t, obj );\r
free_mw(\r
IN al_obj_t *p_obj )\r
{\r
- ib_mw_handle_t VOID_PTR64 h_mw;\r
+ ib_mw_handle_t h_mw;\r
\r
CL_ASSERT( p_obj );\r
h_mw = PARENT_STRUCT( p_obj, ib_mw_t, obj );\r
\r
ib_api_status_t\r
ib_query_mw(\r
- IN const ib_mw_handle_t FUNC_PTR64 h_mw,\r
- OUT ib_pd_handle_t FUNC_PTR64* const ph_pd,\r
+ IN const ib_mw_handle_t h_mw,\r
+ OUT ib_pd_handle_t* const ph_pd,\r
OUT net32_t* const p_rkey )\r
{\r
return query_mw( h_mw, ph_pd, p_rkey, NULL );\r
\r
ib_api_status_t\r
query_mw(\r
- IN const ib_mw_handle_t FUNC_PTR64 h_mw,\r
- OUT ib_pd_handle_t FUNC_PTR64* const ph_pd,\r
+ IN const ib_mw_handle_t h_mw,\r
+ OUT ib_pd_handle_t* const ph_pd,\r
OUT net32_t* const p_rkey,\r
IN OUT ci_umv_buf_t* const p_umv_buf )\r
{\r
- ib_pd_handle_t VOID_PTR64 h_ci_pd;\r
+ ib_pd_handle_t h_ci_pd;\r
ib_api_status_t status;\r
\r
AL_ENTER( AL_DBG_MW );\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
\r
/* List item used to store MW in PD list for proper destruction order. */\r
cl_list_item_t pd_list_item;\r
-TO_LONG_PTR( ib_mw_handle_t , h_ci_mw) ; /* Actual HW handle. */\r
+ ib_mw_handle_t h_ci_mw; /* Actual HW handle. */\r
\r
} ib_mw_t;\r
\r
\r
ib_api_status_t\r
create_mw(\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
OUT uint32_t* const p_rkey,\r
- OUT ib_mw_handle_t FUNC_PTR64* const ph_mw,\r
+ OUT ib_mw_handle_t* const ph_mw,\r
IN OUT ci_umv_buf_t* const p_umv_buf );\r
\r
\r
ib_api_status_t\r
query_mw(\r
- IN const ib_mw_handle_t FUNC_PTR64 h_mw,\r
- OUT ib_pd_handle_t FUNC_PTR64* const ph_pd,\r
+ IN const ib_mw_handle_t h_mw,\r
+ OUT ib_pd_handle_t* const ph_pd,\r
OUT uint32_t* const p_rkey,\r
IN OUT ci_umv_buf_t* const p_umv_buf );\r
\r
ib_api_status_t\r
destroy_mw(\r
- IN const ib_mw_handle_t FUNC_PTR64 h_mw );\r
+ IN const ib_mw_handle_t h_mw );\r
\r
#endif /* __AL_MW_H__ */\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
\r
ib_api_status_t\r
alloc_pd(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca,\r
+ IN const ib_ca_handle_t h_ca,\r
IN const ib_pd_type_t pd_type,\r
IN const void * const pd_context,\r
- OUT ib_pd_handle_t FUNC_PTR64* const ph_pd,\r
+ OUT ib_pd_handle_t* const ph_pd,\r
IN OUT ci_umv_buf_t* const p_umv_buf )\r
{\r
- ib_pd_handle_t VOID_PTR64 h_pd;\r
+ ib_pd_handle_t h_pd;\r
ib_api_status_t status;\r
al_obj_type_t obj_type = AL_OBJ_TYPE_H_PD;\r
\r
}\r
\r
/* Allocate a protection domain. */\r
- h_pd = (ib_pd_handle_t VOID_PTR64)cl_zalloc( sizeof( ib_pd_t ) );\r
+ h_pd = (ib_pd_handle_t)cl_zalloc( sizeof( ib_pd_t ) );\r
if( !h_pd )\r
{\r
return IB_INSUFFICIENT_MEMORY;\r
\r
ib_api_status_t\r
ib_dealloc_pd(\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_pfn_destroy_cb_t pfn_destroy_cb OPTIONAL )\r
{\r
AL_ENTER( AL_DBG_PD );\r
destroying_pd(\r
IN al_obj_t *p_obj )\r
{\r
- ib_al_handle_t VOID_PTR64 h_al;\r
- ib_ca_handle_t VOID_PTR64 h_ca;\r
- ib_pd_handle_t VOID_PTR64 h_pd;\r
- ib_mw_handle_t VOID_PTR64 h_mw;\r
+ ib_al_handle_t h_al;\r
+ ib_ca_handle_t h_ca;\r
+ ib_pd_handle_t h_pd;\r
+ ib_mw_handle_t h_mw;\r
cl_list_item_t *p_list_item;\r
ib_api_status_t status;\r
\r
cleanup_pd(\r
IN struct _al_obj *p_obj )\r
{\r
- ib_pd_handle_t VOID_PTR64 h_pd;\r
+ ib_pd_handle_t h_pd;\r
ib_api_status_t status;\r
\r
CL_ASSERT( p_obj );\r
free_pd(\r
IN al_obj_t *p_obj )\r
{\r
- ib_pd_handle_t VOID_PTR64 h_pd;\r
+ ib_pd_handle_t h_pd;\r
\r
CL_ASSERT( p_obj );\r
h_pd = PARENT_STRUCT( p_obj, ib_pd_t, obj );\r
\r
ib_api_status_t\r
ib_create_srq(\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_srq_attr_t* const p_srq_attr,\r
IN const void* const srq_context,\r
IN const ib_pfn_event_cb_t pfn_srq_event_cb OPTIONAL,\r
- OUT ib_srq_handle_t FUNC_PTR64* const ph_srq )\r
+ OUT ib_srq_handle_t* const ph_srq )\r
{\r
ib_api_status_t status;\r
\r
\r
ib_api_status_t\r
ib_create_qp(\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_qp_create_t* const p_qp_create,\r
IN const void* const qp_context,\r
IN const ib_pfn_event_cb_t pfn_qp_event_cb OPTIONAL,\r
- OUT ib_qp_handle_t FUNC_PTR64* const ph_qp )\r
+ OUT ib_qp_handle_t* const ph_qp )\r
{\r
ib_api_status_t status;\r
\r
AL_PRINT_EXIT( TRACE_LEVEL_ERROR, AL_DBG_ERROR, ("IB_INVALID_PD_HANDLE\n") );\r
return IB_INVALID_PD_HANDLE;\r
}\r
-\r
if( !p_qp_create || !ph_qp )\r
{\r
-\r
AL_PRINT_EXIT( TRACE_LEVEL_ERROR, AL_DBG_ERROR, ("IB_INVALID_PARAMETER\n") );\r
return IB_INVALID_PARAMETER;\r
}\r
-\r
if (h_pd->obj.p_ci_ca && h_pd->obj.p_ci_ca->p_pnp_attr)\r
{\r
if ((p_qp_create->rq_depth > h_pd->obj.p_ci_ca->p_pnp_attr->max_wrs) ||\r
\r
ib_api_status_t\r
ib_get_spl_qp(\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_net64_t port_guid,\r
IN const ib_qp_create_t* const p_qp_create,\r
IN const void* const qp_context,\r
IN const ib_pfn_event_cb_t pfn_qp_event_cb OPTIONAL,\r
- OUT ib_pool_key_t FUNC_PTR64* const p_pool_key OPTIONAL,\r
- OUT ib_qp_handle_t FUNC_PTR64* const ph_qp )\r
+ OUT ib_pool_key_t* const p_pool_key OPTIONAL,\r
+ OUT ib_qp_handle_t* const ph_qp )\r
{\r
ib_api_status_t status;\r
\r
\r
ib_api_status_t\r
ib_create_av(\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_av_attr_t* const p_av_attr,\r
- OUT ib_av_handle_t FUNC_PTR64* const ph_av )\r
+ OUT ib_av_handle_t* const ph_av )\r
{\r
ib_api_status_t status;\r
\r
\r
ib_api_status_t\r
ib_create_mw(\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
OUT net32_t* const p_rkey,\r
- OUT ib_mw_handle_t FUNC_PTR64* const ph_mw )\r
+ OUT ib_mw_handle_t* const ph_mw )\r
{\r
ib_api_status_t status;\r
\r
\r
void\r
pd_insert_mw(\r
- IN const ib_mw_handle_t FUNC_PTR64 h_mw )\r
+ IN const ib_mw_handle_t h_mw )\r
{\r
- ib_pd_handle_t VOID_PTR64 h_pd;\r
+ ib_pd_handle_t h_pd;\r
\r
CL_ASSERT( h_mw );\r
h_pd = PARENT_STRUCT( h_mw->obj.p_parent_obj, ib_pd_t, obj );\r
\r
void\r
pd_remove_mw(\r
- IN const ib_mw_handle_t FUNC_PTR64 h_mw )\r
+ IN const ib_mw_handle_t h_mw )\r
{\r
- ib_pd_handle_t VOID_PTR64 h_pd;\r
+ ib_pd_handle_t h_pd;\r
\r
CL_ASSERT( h_mw );\r
h_pd = PARENT_STRUCT( h_mw->obj.p_parent_obj, ib_pd_t, obj );\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
cl_qlist_t mw_list;\r
\r
ib_pd_type_t type;\r
-TO_LONG_PTR( ib_pd_handle_t , h_ci_pd) ; /* Actual CI PD handle. */\r
+ ib_pd_handle_t h_ci_pd; /* Actual CI PD handle. */\r
\r
} ib_pd_t;\r
\r
\r
ib_api_status_t\r
alloc_pd(\r
- IN const ib_ca_handle_t FUNC_PTR64 h_ca,\r
+ IN const ib_ca_handle_t h_ca,\r
IN const ib_pd_type_t pd_type,\r
IN const void * const pd_context,\r
- OUT ib_pd_handle_t FUNC_PTR64* const ph_pd,\r
+ OUT ib_pd_handle_t* const ph_pd,\r
IN OUT ci_umv_buf_t* const p_umv_buf );\r
\r
\r
void\r
pd_insert_mw(\r
- IN const ib_mw_handle_t FUNC_PTR64 h_mw );\r
+ IN const ib_mw_handle_t h_mw );\r
\r
void\r
pd_remove_mw(\r
- IN const ib_mw_handle_t FUNC_PTR64 h_mw );\r
+ IN const ib_mw_handle_t h_mw );\r
\r
\r
#endif /* __AL_PD_H__ */\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
\r
ib_api_status_t\r
al_reg_pnp(\r
- IN const ib_al_handle_t FUNC_PTR64 h_al,\r
+ IN const ib_al_handle_t h_al,\r
IN const ib_pnp_req_t* const p_pnp_req,\r
IN KEVENT *p_sync_event,\r
- OUT ib_pnp_handle_t FUNC_PTR64* const ph_pnp );\r
+ OUT ib_pnp_handle_t* const ph_pnp );\r
\r
#endif /* CL_KERNEL */\r
\r
cl_ioctl_handle_t h_misc_ioctl;\r
\r
/* Per-process AL handle. */\r
-TO_LONG_PTR( ib_al_handle_t , h_al) ; \r
+ ib_al_handle_t h_al;\r
\r
} al_dev_open_context_t;\r
\r
/*\r
* Copyright (c) 2005 SilverStorm Technologies. All rights reserved.\r
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved.\r
*\r
* This software is available to you under the OpenIB.org BSD license\r
* below:\r
#include "al_verbs.h"\r
\r
#include "ib_common.h"\r
-#include "basetsd.h"\r
\r
\r
#define UNBOUND_PORT_GUID 0\r
\r
\r
-extern ib_pool_handle_t VOID_PTR64 gh_mad_pool;\r
+extern ib_pool_handle_t gh_mad_pool;\r
\r
\r
/*\r
\r
ib_api_status_t\r
init_raw_qp(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp,\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_qp_handle_t h_qp,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_net64_t port_guid OPTIONAL,\r
IN const ib_qp_create_t* const p_qp_create,\r
IN OUT ci_umv_buf_t* const p_umv_buf );\r
ib_api_status_t\r
init_conn_qp(\r
IN al_conn_qp_t* const p_conn_qp,\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_qp_create_t* const p_qp_create,\r
IN OUT ci_umv_buf_t* const p_umv_buf );\r
\r
ib_api_status_t\r
init_dgrm_qp(\r
IN al_dgrm_qp_t* const p_dgrm_qp,\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_qp_create_t* const p_qp_create,\r
IN OUT ci_umv_buf_t* const p_umv_buf );\r
\r
ib_api_status_t\r
init_special_qp(\r
IN al_special_qp_t* const p_special_qp,\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_net64_t port_guid,\r
IN const ib_qp_create_t* const p_qp_create );\r
\r
ib_api_status_t\r
init_qp_alias(\r
IN al_qp_alias_t* const p_qp_alias,\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_net64_t port_guid,\r
IN const ib_qp_create_t* const p_qp_create );\r
\r
ib_api_status_t\r
init_mad_qp(\r
IN al_mad_qp_t* const p_mad_qp,\r
- IN const ib_pd_handle_t FUNC_PTR64 h_pd,\r
+ IN const ib_pd_handle_t h_pd,\r
IN const ib_qp_create_t* const p_qp_create,\r
IN const ib_pfn_event_cb_t pfn_qp_event_cb );\r
\r
ib_api_status_t\r
init_mad_dgrm_svc(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp,\r
+ IN const ib_qp_handle_t h_qp,\r
IN const ib_dgrm_info_t* const p_dgrm_info );\r
\r
\r
ib_api_status_t\r
al_modify_qp(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp,\r
+ IN const ib_qp_handle_t h_qp,\r
IN const ib_qp_mod_t* const p_qp_mod,\r
IN OUT ci_umv_buf_t* const p_umv_buf );\r
\r
\r
ib_api_status_t\r
init_dgrm_svc(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp,\r
+ IN const ib_qp_handle_t h_qp,\r
IN const ib_dgrm_info_t* const p_dgrm_info );\r
\r
ib_api_status_t\r
\r
ib_api_status_t\r
ud_post_send(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp,\r
+ IN const ib_qp_handle_t h_qp,\r
IN ib_send_wr_t* const p_send_wr,\r
OUT ib_send_wr_t **pp_send_failure );\r
\r
ib_api_status_t\r
special_qp_post_send(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp,\r
+ IN const ib_qp_handle_t h_qp,\r
IN ib_send_wr_t* const p_send_wr,\r
OUT ib_send_wr_t **pp_send_failure );\r
\r
void\r
mad_qp_queue_mad(\r
- IN const ib_qp_handle_t FUNC_PTR64 h_qp,\r
+ IN const ib_qp_handle_t h_qp,\r
IN al_mad_wr_t* const p_mad_wr );\r
\r
void\r
mad_qp_resume_sends(\r
- IN ib_qp_handle_t FUNC_PTR64 h_qp );\r
+ IN ib_qp_handle_t h_qp );\r
\r
void\r
mad_qp_flush_send(\r
\r
void\r
mad_recv_comp_cb(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
IN void *cq_context );\r
\r
void\r
mad_send_comp_cb(\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
IN void *cq_context );\r
\r
void\r
mad_qp_comp(\r
IN al_mad_qp_t* p_mad_qp,\r
- IN const ib_cq_handle_t FUNC_PTR64 h_cq,\r
+ IN const ib_cq_handle_t h_cq,\r
IN ib_wc_type_t wc_type );\r
\r
void\r
ib_api_status_t\r
alloc_qp(\r
IN const ib_qp_type_t qp_type,\r
- OUT ib_qp_handle_t FUNC_PTR64* const ph_qp )\r
+ OUT ib_qp_handle_t* const ph_qp )\r
{\r
- ib_qp_handle_t VOID_PTR64 h_qp;\r
+ ib_qp_handle_t h_qp;\r
\r
switch( qp_type )\r
{\r
case IB_QPT_RELIABLE_CONN:\r
case IB_QPT_UNRELIABLE_CONN:\r
- h_qp = (ib_qp_handle_t VOID_PTR64)cl_zalloc( sizeof( al_conn_qp_t ) );\r
+ h_qp = (ib_qp_handle_t)cl_zalloc( sizeof( al_conn_qp_t ) );\r
break;\r
\r
case IB_QPT_UNRELIABLE_DGRM:\r
- h_qp = (ib_qp_handle_t VOID_PTR64)cl_zalloc( sizeof( al_dgrm_qp_t ) );\r
+ h_qp = (ib_qp_handle_t)cl_zalloc( sizeof( al_dgrm_qp_t ) );\r
break;\r
\r
case IB_QPT_QP0:\r
case IB_QPT_QP1:\r
- h_qp = (ib_qp_handle_t VOID_PTR64)cl_zalloc( sizeof( al_special_qp_t ) );\r
+ h_qp = (ib_qp_handle_t)cl_zalloc( sizeof( al_special_qp_t ) );\r
break;\r
\r
case IB_QPT_RAW_IPV6:\r
case IB_QPT_RAW_ETHER:\r
- h_qp = (ib_qp_handle_t VOID_PTR64)cl_zalloc( sizeof( ib_qp_t ) );\r
+ h_qp = (ib_qp_handle_t)cl_zalloc( sizeof( ib_qp_t ) );\r
break;\r
\r
case IB_QPT_MAD:\r
- &