/*\r
* Copyright (c) 2005 Mellanox 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
printf("\thw_ver=0x%x\n", ca_attr->revision); //TODO: ???\r
if(ca_attr->vend_id == VEND_ID_MELLNOX || ca_attr->vend_id == VEND_ID_VOLTAIRE) {\r
printf("\tfw_ver=%d.%.2d.%.4d\n",\r
- (uint16_t )(ca_attr->fw_ver>>32),\r
+ (uint16_t)(ca_attr->fw_ver>>32),\r
(uint16_t)(ca_attr->fw_ver>>16),\r
- (uint16_t )(ca_attr->fw_ver));\r
+ (uint16_t)(ca_attr->fw_ver));\r
printf("\tPSID=%s\n",mthca_get_board_id(ca_attr));\r
}else{\r
printf("\tfw_ver=0x%I64x\n",ca_attr->fw_ver);\r
}\r
/* Internal Functions */\r
\r
-void vstat_get_counters(ib_ca_handle_t VOID_PTR64 h_ca,uint8_t port_num)\r
+void vstat_get_counters(ib_ca_handle_t h_ca,uint8_t port_num)\r
{\r
ib_mad_t *mad_in = NULL;\r
ib_mad_t *mad_out = NULL;\r
}\r
\r
\r
-void vstat_get_port_info(ib_ca_handle_t VOID_PTR64 h_ca,uint8_t port_num, ib_port_info_t* vstat_port_info)\r
+void vstat_get_port_info(ib_ca_handle_t h_ca,uint8_t port_num, ib_port_info_t* vstat_port_info)\r
{\r
ib_mad_t *mad_in = NULL;\r
ib_mad_t *mad_out = NULL;\r
BOOLEAN getCounters\r
)\r
{\r
- ib_al_handle_t VOID_PTR64 h_al = NULL;\r
+ ib_al_handle_t h_al = NULL;\r
ib_api_status_t ib_status = IB_SUCCESS;\r
ib_api_status_t ret_status = IB_SUCCESS;\r
size_t guid_count;\r
ib_ca_attr_t *vstat_ca_attr;\r
ib_port_info_t vstat_port_info[2];\r
size_t i;\r
- ib_ca_handle_t VOID_PTR64 h_ca = NULL;\r
+ ib_ca_handle_t h_ca = NULL;\r
uint32_t bsize;\r
ib_port_attr_mod_t port_attr_mod;\r
uint8_t port_idx;\r
return 0;\r
}\r
\r
+\r