/*
- * Copyright (c) 2004, 2005 Voltaire, Inc. All rights reserved.
- * Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved.
+ * Copyright (c) 2004-2006 Voltaire, Inc. All rights reserved.
+ * Copyright (c) 2002-2006 Mellanox Technologies LTD. All rights reserved.
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
*
* This software is available to you under a choice of one of two
#if !defined(__IB_TYPES_H__)
#define __IB_TYPES_H__
+#include <string.h>
#include <complib/cl_types.h>
#include <complib/cl_byteswap.h>
#include <complib/cl_memory.h>
* DESCRIPTION
* The following constants are used throughout the IBA code base.
*
-* Definitions are from the InfiniBand Architecture Specification v1.1
+* Definitions are from the InfiniBand Architecture Specification v1.2
*
*********/
* ib_class_is_vendor_specific_low
*
* DESCRIPTION
-* Indicitates if the Class Code if a vendor specific class from
+* Indicates if the Class Code if a vendor specific class from
* the low range
*
* SYNOPSIS
* ib_class_is_vendor_specific_high
*
* DESCRIPTION
-* Indicitates if the Class Code if a vendor specific class from
+* Indicates if the Class Code if a vendor specific class from
* the high range
*
* SYNOPSIS
* ib_class_is_vendor_specific
*
* DESCRIPTION
-* Indicitates if the Class Code if a vendor specific class
+* Indicates if the Class Code if a vendor specific class
*
* SYNOPSIS
*/
* SOURCE
*/
#define IB_MAD_METHOD_GETTABLE 0x12
-
/**********/
+
/****d* IBA Base: Constants/IB_MAD_METHOD_GETTABLE_RESP
* NAME
* IB_MAD_METHOD_GETTABLE_RESP
* IB_MAD_ATTR_LFT_RECORD
*
* DESCRIPTION
-* LinearForwardingRecord attribute (15.2.5.6)
+* LinearForwardingTableRecord attribute (15.2.5.6)
*
* SOURCE
*/
* IB_MAD_ATTR_PKEYTBL_RECORD
*
* DESCRIPTION
-* P-KEY table attribute (15.2.5)
+* PKEY Table Record attribute (15.2.5)
*
* SOURCE
*/
* IB_MAD_ATTR_VLARB_RECORD
*
* DESCRIPTION
-* VL Arbitration Table attribute (15.2.5)
+* VL Arbitration Table Record attribute (15.2.5)
*
* SOURCE
*/
* IB_MAD_ATTR_SLVL_RECORD
*
* DESCRIPTION
-* VSLtoL Map Table attribute (15.2.5)
+* SLtoVL Mapping Table Record attribute (15.2.5)
*
* SOURCE
*/
* IB_MAD_ATTR_MULTIPATH_RECORD
*
* DESCRIPTION
-* MultiPath attribute (15.2.5)
+* MultiPathRecord attribute (15.2.5)
*
* SOURCE
*/
* IB_MAD_ATTR_SVC_ASSOCIATION_RECORD
*
* DESCRIPTION
-* Service Association attribute (15.2.5)
+* Service Association Record attribute (15.2.5)
*
* SOURCE
*/
* IB_MAD_ATTR_SVC_ASSOCIATION_RECORD
*
* DESCRIPTION
-* Service Association attribute (15.2.5)
+* Service Association Record attribute (15.2.5)
*
* SOURCE
*/
*
* DESCRIPTION
* Path selector.
-* 0: greater than rate specified
-* 1: less than rate specified
-* 2: exactly the rate specified
-* 3: largest rate available
+* 0: greater than specified
+* 1: less than specified
+* 2: exactly the specified
+* 3: largest available
*
* SOURCE
*/
* IB_PATH_REC_SELECTOR_MASK
*
* DESCRIPTION
-* Mask for the selector field for path record MTU, rate
+* Mask for the selector field for path record MTU, rate,
* and packet lifetime.
*
* SOURCE
* IB_PATH_REC_BASE_MASK
*
* DESCRIPTION
-* Mask for the base value field for path record MTU, rate
+* Mask for the base value field for path record MTU, rate,
* and packet lifetime.
*
* SOURCE
* Type Definitions
*
* DESCRIPTION
-* Definitions are from the InfiniBand Architecture Specification v1.1
+* Definitions are from the InfiniBand Architecture Specification v1.2
*
*********/
/****d* IBA Base: Types/ib_net16_t
* ib_pkey_is_full_member
*
* DESCRIPTION
-* Indicitates if the port is a full member of the parition.
+* Indicates if the port is a full member of the parition.
*
* SYNOPSIS
*/
*
* num_path
* Reversible path - 1 bit to say if path is reversible.
-* Num-Paths [6:0] In queries, maximum number of paths to return.
+* num_path [6:0] In queries, maximum number of paths to return.
* In responses, undefined.
*
* pkey
#define IB_NR_COMPMASK_VENDID (CL_HTON64(((uint64_t)1)<<13))
#define IB_NR_COMPMASK_NODEDESC (CL_HTON64(((uint64_t)1)<<14))
-/* Service Record Component Mask Sec 15.2.5.14 Ver 1.1*/
+/* Service Record Component Masks Sec 15.2.5.14 Ver 1.1*/
#define IB_SR_COMPMASK_SID (CL_HTON64(((uint64_t)1)<<0))
#define IB_SR_COMPMASK_SGID (CL_HTON64(((uint64_t)1)<<1))
#define IB_SR_COMPMASK_SPKEY (CL_HTON64(((uint64_t)1)<<2))
*
* num_path
* [in] Reversible path - 1 bit to say if path is reversible.
-* Num-Paths [6:0] In queries, maximum number of paths to return.
+* num_path [6:0] In queries, maximum number of paths to return.
* In responses, undefined.
*
* pkey
* [in] Pointer to the path record object.
*
* RETURN VALUES
-* Encoded path MTU.
-* 1: 256
-* 2: 512
-* 3: 1024
-* 4: 2048
-* 5: 4096
-* others: reserved
+* SL.
*
* NOTES
*
* 2: 2.5 Gb/sec.
* 3: 10 Gb/sec.
* 4: 30 Gb/sec.
+* 5: 5 Gb/sec.
+* 6: 20 Gb/sec.
+* 7: 40 Gb/sec.
+* 8: 60 Gb/sec.
+* 9: 80 Gb/sec.
+* 10: 120 Gb/sec.
* others: reserved
*
* NOTES
* [in] Pointer to the path record object.
*
* RETURN VALUES
-* Encoded path pkt_life = 4.096 µsec * 2 PacketLifeTime.
+* Encoded path pkt_life = 4.096 µsec * 2 ** PacketLifeTime.
*
* NOTES
*
* SEE ALSO
*********/
-/****f* IBA Base: Types/ib_port_info_set_port_phys_state.
+/****f* IBA Base: Types/ib_port_info_set_port_phys_state
* NAME
* ib_port_info_set_port_phys_state
*
* [in] Pointer to a PortInfo attribute.
*
* client_rereg
-* [in] Client reregistration value to set either 1 or 0
+* [in] Client reregistration value to set (either 1 or 0).
*
* RETURN VALUES
* None.
* p_pi
* [in] Pointer to a PortInfo attribute.
*
-* client_rereg
-* [in] Client reregistration value to get either 1 or 0
-*
* RETURN VALUES
-* None.
+* Client reregistration value (either 1 or 0).
*
* NOTES
*
#include <complib/cl_packoff.h>
/************/
+#define IB_DROP_VL 15
#define IB_MAX_NUM_VLS 16
/****s* IBA Base: Types/ib_slvl_table_t
* NAME
* [in] the sl index in the table whose value should be returned.
*
* RETURN VALUES
-* vl that is updated for that sl.
+* vl for the requested sl_index.
*
* NOTES
*
* ib_member_get_sl_flow_hop
*
* DESCRIPTION
-* Get encoded sl flow label and hop limit
+* Get encoded sl, flow label, and hop limit
*
* SYNOPSIS
*/
/*
* PARAMETERS
* sl_flow_hop
-* [in] the sl flow label and hop limit of MC Group
+* [in] the sl, flow label, and hop limit of MC Group
*
* RETURN VALUES
* p_sl
* ib_member_set_sl_flow_hop
*
* DESCRIPTION
-* Set encoded version, sl flow and hop
+* Set encoded sl, flow label, and hop limit
*
* SYNOPSIS
*/
*
* RETURN VALUES
* sl_flow_hop
-* [out] the sl flow label and hop limit
+* [out] the encoded sl, flow label, and hop limit
*
* NOTES
*
typedef struct _ib_av* __ptr64 ib_av_handle_t;
typedef struct _ib_mcast* __ptr64 ib_mcast_handle_t;
-/* Currently for windows branch we use the extended version of ib special verbs struct
- in order to be compliant with Infinicon ib_types , later we'll change it to support
+/* Currently for windows branch, use the extended version of ib special verbs struct
+ in order to be compliant with Infinicon ib_types; later we'll change it to support
OpenSM ib_types.h */
#ifndef WIN32
struct _qp_reset
{
/*
- * Time, in milliseconds, that the QP needs to spend in the
- * time wait state before being reused.
+ * Time, in milliseconds, that the QP needs to spend in
+ * the time wait state before being reused.
*/
uint32_t timewait;
* Send immediate data with the given request.
*
* IB_SEND_OPT_FENCE
-* The operation is fenced. Complete all pending send operations before
-* processing this request.
+* The operation is fenced. Complete all pending send operations
+* before processing this request.
*
* IB_SEND_OPT_SIGNALED
* If the queue pair is configured for signaled completion, then
* Indicates if there is an SNMP agent accessible through the port.
*
* IB_CA_MOD_IS_DEV_MGMT_SUPPORTED
-* Indicates if there is a device management agent accessible through
-* the port.
+* Indicates if there is a device management agent accessible
+* through the port.
*
* IB_CA_MOD_IS_VEND_SUPPORTED
-* Indicates if there is a vendor supported agent accessible through
-* the port.
+* Indicates if there is a vendor supported agent accessible
+* through the port.
*
* IB_CA_MOD_IS_SM
* Indicates if there is a subnet manager accessible through
* the port.
*
* IB_CA_MOD_IS_SM_DISABLED
-* Indicates if the port has been disabled for configuration by the subnet
-* manager.
+* Indicates if the port has been disabled for configuration by the
+* subnet manager.
*
* IB_CA_MOD_QKEY_CTR
-* Used to reset the qkey violation counter associated with the port.
+* Used to reset the qkey violation counter associated with the
+* port.
*
* IB_CA_MOD_PKEY_CTR
-* Used to reset the pkey violation counter associated with the port.
+* Used to reset the pkey violation counter associated with the
+* port.
*
* IB_CA_MOD_IS_NOTICE_SUPPORTED
* Indicates that this CA supports ability to generate Notices for
* trap messages. (only applicable to switches)
*
* IB_CA_MOD_IS_APM_SUPPORTED
-* Indicates that this port is capable of performing Automatic Migration.
+* Indicates that this port is capable of performing Automatic
+* Path Migration.
*
* IB_CA_MOD_IS_SLMAP_SUPPORTED
* Indicates this port supports SLMAP capability.
END_C_DECLS
-#endif
+#endif /* ndef WIN */
#if defined( __WIN__ )
#include <iba/ib_types_extended.h>
#endif