Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
qib_mad.h File Reference
#include <rdma/ib_pma.h>

Go to the source code of this file.

Data Structures

struct  ib_node_info
 
struct  ib_mad_notice_attr
 
struct  ib_vl_weight_elem
 
struct  ib_pma_portcounters_cong
 
struct  ib_cc_mad
 
struct  ib_cc_classportinfo_attr
 
struct  ib_cc_trap_key_violation_attr
 
struct  ib_cc_info_attr
 
struct  ib_cc_key_info_attr
 
struct  ib_cc_log_attr
 
struct  ib_cc_log_event
 
struct  ib_cc_congestion_entry
 
struct  ib_cc_congestion_entry_shadow
 
struct  ib_cc_congestion_setting_attr
 
struct  ib_cc_congestion_setting_attr_shadow
 
struct  ib_cc_table_entry
 
struct  ib_cc_table_entry_shadow
 
struct  ib_cc_table_attr
 
struct  ib_cc_table_attr_shadow
 
struct  cc_table_shadow
 

Macros

#define IB_SMP_UNSUP_VERSION   cpu_to_be16(0x0004)
 
#define IB_SMP_UNSUP_METHOD   cpu_to_be16(0x0008)
 
#define IB_SMP_UNSUP_METH_ATTR   cpu_to_be16(0x000C)
 
#define IB_SMP_INVALID_FIELD   cpu_to_be16(0x001C)
 
#define IB_NOTICE_TYPE_FATAL   0x80
 
#define IB_NOTICE_TYPE_URGENT   0x81
 
#define IB_NOTICE_TYPE_SECURITY   0x82
 
#define IB_NOTICE_TYPE_SM   0x83
 
#define IB_NOTICE_TYPE_INFO   0x84
 
#define IB_NOTICE_PROD_CA   cpu_to_be16(1)
 
#define IB_NOTICE_PROD_SWITCH   cpu_to_be16(2)
 
#define IB_NOTICE_PROD_ROUTER   cpu_to_be16(3)
 
#define IB_NOTICE_PROD_CLASS_MGR   cpu_to_be16(4)
 
#define IB_NOTICE_TRAP_LLI_THRESH   cpu_to_be16(129)
 
#define IB_NOTICE_TRAP_EBO_THRESH   cpu_to_be16(130)
 
#define IB_NOTICE_TRAP_FLOW_UPDATE   cpu_to_be16(131)
 
#define IB_NOTICE_TRAP_CAP_MASK_CHG   cpu_to_be16(144)
 
#define IB_NOTICE_TRAP_SYS_GUID_CHG   cpu_to_be16(145)
 
#define IB_NOTICE_TRAP_BAD_MKEY   cpu_to_be16(256)
 
#define IB_NOTICE_TRAP_BAD_PKEY   cpu_to_be16(257)
 
#define IB_NOTICE_TRAP_BAD_QKEY   cpu_to_be16(258)
 
#define IB_NOTICE_REPRESS_LLI_THRESH   (1 << 0)
 
#define IB_NOTICE_REPRESS_EBO_THRESH   (1 << 1)
 
#define IB_NOTICE_REPRESS_FLOW_UPDATE   (1 << 2)
 
#define IB_NOTICE_REPRESS_CAP_MASK_CHG   (1 << 3)
 
#define IB_NOTICE_REPRESS_SYS_GUID_CHG   (1 << 4)
 
#define IB_NOTICE_REPRESS_BAD_MKEY   (1 << 5)
 
#define IB_NOTICE_REPRESS_BAD_PKEY   (1 << 6)
 
#define IB_NOTICE_REPRESS_BAD_QKEY   (1 << 7)
 
#define IB_NOTICE_TRAP_LSE_CHG   0x04 /* Link Speed Enable changed */
 
#define IB_NOTICE_TRAP_LWE_CHG   0x02 /* Link Width Enable changed */
 
#define IB_NOTICE_TRAP_NODE_DESC_CHG   0x01
 
#define IB_NOTICE_TRAP_DR_NOTICE   0x80
 
#define IB_NOTICE_TRAP_DR_TRUNC   0x40
 
#define IB_VLARB_LOWPRI_0_31   1
 
#define IB_VLARB_LOWPRI_32_63   2
 
#define IB_VLARB_HIGHPRI_0_31   3
 
#define IB_VLARB_HIGHPRI_32_63   4
 
#define IB_PMA_PORT_COUNTERS_CONG   cpu_to_be16(0xFF00)
 
#define IB_PMA_CONG_HW_CONTROL_TIMER   0x00
 
#define IB_PMA_CONG_HW_CONTROL_SAMPLE   0x01
 
#define QIB_XMIT_RATE_UNSUPPORTED   0x0
 
#define QIB_XMIT_RATE_PICO   0x7
 
#define QIB_CONG_TIMER_PSINTERVAL   0x1DCD64EC
 
#define IB_PMA_SEL_CONG_ALL   0x01
 
#define IB_PMA_SEL_CONG_PORT_DATA   0x02
 
#define IB_PMA_SEL_CONG_XMIT   0x04
 
#define IB_PMA_SEL_CONG_ROUTING   0x08
 
#define IB_CC_ATTR_CLASSPORTINFO   cpu_to_be16(0x0001)
 
#define IB_CC_ATTR_NOTICE   cpu_to_be16(0x0002)
 
#define IB_CC_ATTR_CONGESTION_INFO   cpu_to_be16(0x0011)
 
#define IB_CC_ATTR_CONGESTION_KEY_INFO   cpu_to_be16(0x0012)
 
#define IB_CC_ATTR_CONGESTION_LOG   cpu_to_be16(0x0013)
 
#define IB_CC_ATTR_SWITCH_CONGESTION_SETTING   cpu_to_be16(0x0014)
 
#define IB_CC_ATTR_SWITCH_PORT_CONGESTION_SETTING   cpu_to_be16(0x0015)
 
#define IB_CC_ATTR_CA_CONGESTION_SETTING   cpu_to_be16(0x0016)
 
#define IB_CC_ATTR_CONGESTION_CONTROL_TABLE   cpu_to_be16(0x0017)
 
#define IB_CC_ATTR_TIME_STAMP   cpu_to_be16(0x0018)
 
#define IB_CC_THRESHOLD_NONE   0x0
 
#define IB_CC_THRESHOLD_MIN   0x1
 
#define IB_CC_THRESHOLD_MAX   0xf
 
#define IB_CC_MAD_LOGDATA_LEN   32
 
#define IB_CC_MAD_MGMTDATA_LEN   192
 
#define IB_CC_CPI_CM_TRAP_GEN   cpu_to_be16(1 << 0)
 
#define IB_CC_CPI_CM_GET_SET_NOTICE   cpu_to_be16(1 << 1)
 
#define IB_CC_CPI_CM_CAP2   cpu_to_be16(1 << 2)
 
#define IB_CC_CPI_CM_ENHANCEDPORT0_CC   cpu_to_be16(1 << 8)
 
#define IB_CC_TRAP_KEY_VIOLATION   0x0000
 
#define IB_CC_CI_FLAGS_CREDIT_STARVATION   0x1
 
#define IB_CC_TABLE_CAP_DEFAULT   31
 
#define IB_CC_CL_CA_LOGEVENTS_LEN   208
 
#define IB_CC_CLEC_SERVICETYPE_RC   0x0
 
#define IB_CC_CLEC_SERVICETYPE_UC   0x1
 
#define IB_CC_CLEC_SERVICETYPE_RD   0x2
 
#define IB_CC_CLEC_SERVICETYPE_UD   0x3
 
#define IB_CC_CCS_ENTRIES   16
 
#define IB_CC_CCS_PC_SL_BASED   0x01
 
#define IB_CC_TABLE_ENTRY_INCREASE_DEFAULT   1
 
#define IB_CC_TABLE_ENTRY_TIMER_DEFAULT   1
 
#define IB_CCT_ENTRIES   64
 
#define IB_CCT_MIN_ENTRIES   (IB_CCT_ENTRIES * 2)
 
#define CC_TABLE_SHADOW_MAX   (IB_CC_TABLE_CAP_DEFAULT * IB_CCT_ENTRIES)
 
#define COUNTER_MASK(q, n)   (q << ((9 - n) * 3))
 
#define COUNTER_MASK0_9
 

Functions

struct ib_node_info __attribute__ ((packed))
 

Variables

u8 base_version
 
u8 class_version
 
u8 node_type
 
u8 num_ports
 
__be64 sys_guid
 
__be64 node_guid
 
__be64 port_guid
 
__be16 partition_cap
 
__be16 device_id
 
__be32 revision
 
u8 local_port_num
 
u8 vendor_id [3]
 
__be16 reserved
 
__be16 lid
 
u8 port_num
 
u8 reserved2
 
u8 local_changes
 
__be32 new_cap_mask
 
u8 reserved3
 
u8 change_flags
 
__be64 new_sys_guid
 
__be16 dr_slid
 
u8 method
 
__be16 attr_id
 
__be32 attr_mod
 
__be64 mkey
 
u8 dr_trunc_hop
 
u8 dr_rtn_path [30]
 
__be16 lid1
 
__be16 lid2
 
__be32 key
 
__be32 sl_qp1
 
__be32 qp2
 
union ib_gid gid1
 
union ib_gid gid2
 
struct ib_mad_notice_attr __attribute__
 
u8 reserved1
 
__be16 port_check_rate
 
__be16 symbol_error_counter
 
u8 link_error_recovery_counter
 
u8 link_downed_counter
 
__be16 port_rcv_errors
 
__be16 port_rcv_remphys_errors
 
__be16 port_rcv_switch_relay_errors
 
__be16 port_xmit_discards
 
u8 port_xmit_constraint_errors
 
u8 port_rcv_constraint_errors
 
u8 link_overrun_errors
 
__be16 vl15_dropped
 
__be64 port_xmit_data
 
__be64 port_rcv_data
 
__be64 port_xmit_packets
 
__be64 port_rcv_packets
 
__be64 port_xmit_wait
 
__be64 port_adr_events
 
struct ib_cc_mad __packed
 

Macro Definition Documentation

#define CC_TABLE_SHADOW_MAX   (IB_CC_TABLE_CAP_DEFAULT * IB_CCT_ENTRIES)

Definition at line 410 of file qib_mad.h.

#define COUNTER_MASK (   q,
  n 
)    (q << ((9 - n) * 3))

Definition at line 424 of file qib_mad.h.

#define COUNTER_MASK0_9
Value:
COUNTER_MASK(1, 1) | \
COUNTER_MASK(1, 2) | \
COUNTER_MASK(1, 3) | \
COUNTER_MASK(1, 4))

Definition at line 425 of file qib_mad.h.

#define IB_CC_ATTR_CA_CONGESTION_SETTING   cpu_to_be16(0x0016)

Definition at line 237 of file qib_mad.h.

#define IB_CC_ATTR_CLASSPORTINFO   cpu_to_be16(0x0001)

Definition at line 230 of file qib_mad.h.

#define IB_CC_ATTR_CONGESTION_CONTROL_TABLE   cpu_to_be16(0x0017)

Definition at line 238 of file qib_mad.h.

#define IB_CC_ATTR_CONGESTION_INFO   cpu_to_be16(0x0011)

Definition at line 232 of file qib_mad.h.

#define IB_CC_ATTR_CONGESTION_KEY_INFO   cpu_to_be16(0x0012)

Definition at line 233 of file qib_mad.h.

#define IB_CC_ATTR_CONGESTION_LOG   cpu_to_be16(0x0013)

Definition at line 234 of file qib_mad.h.

#define IB_CC_ATTR_NOTICE   cpu_to_be16(0x0002)

Definition at line 231 of file qib_mad.h.

#define IB_CC_ATTR_SWITCH_CONGESTION_SETTING   cpu_to_be16(0x0014)

Definition at line 235 of file qib_mad.h.

#define IB_CC_ATTR_SWITCH_PORT_CONGESTION_SETTING   cpu_to_be16(0x0015)

Definition at line 236 of file qib_mad.h.

#define IB_CC_ATTR_TIME_STAMP   cpu_to_be16(0x0018)

Definition at line 239 of file qib_mad.h.

#define IB_CC_CCS_ENTRIES   16

Definition at line 354 of file qib_mad.h.

#define IB_CC_CCS_PC_SL_BASED   0x01

Definition at line 357 of file qib_mad.h.

#define IB_CC_CI_FLAGS_CREDIT_STARVATION   0x1

Definition at line 313 of file qib_mad.h.

#define IB_CC_CL_CA_LOGEVENTS_LEN   208

Definition at line 328 of file qib_mad.h.

#define IB_CC_CLEC_SERVICETYPE_RC   0x0

Definition at line 339 of file qib_mad.h.

#define IB_CC_CLEC_SERVICETYPE_RD   0x2

Definition at line 341 of file qib_mad.h.

#define IB_CC_CLEC_SERVICETYPE_UC   0x1

Definition at line 340 of file qib_mad.h.

#define IB_CC_CLEC_SERVICETYPE_UD   0x3

Definition at line 342 of file qib_mad.h.

#define IB_CC_CPI_CM_CAP2   cpu_to_be16(1 << 2)

Definition at line 274 of file qib_mad.h.

#define IB_CC_CPI_CM_ENHANCEDPORT0_CC   cpu_to_be16(1 << 8)

Definition at line 275 of file qib_mad.h.

#define IB_CC_CPI_CM_GET_SET_NOTICE   cpu_to_be16(1 << 1)

Definition at line 273 of file qib_mad.h.

#define IB_CC_CPI_CM_TRAP_GEN   cpu_to_be16(1 << 0)

Definition at line 272 of file qib_mad.h.

#define IB_CC_MAD_LOGDATA_LEN   32

Definition at line 247 of file qib_mad.h.

#define IB_CC_MAD_MGMTDATA_LEN   192

Definition at line 248 of file qib_mad.h.

#define IB_CC_TABLE_CAP_DEFAULT   31

Definition at line 314 of file qib_mad.h.

#define IB_CC_TABLE_ENTRY_INCREASE_DEFAULT   1

Definition at line 385 of file qib_mad.h.

#define IB_CC_TABLE_ENTRY_TIMER_DEFAULT   1

Definition at line 386 of file qib_mad.h.

#define IB_CC_THRESHOLD_MAX   0xf

Definition at line 244 of file qib_mad.h.

#define IB_CC_THRESHOLD_MIN   0x1

Definition at line 243 of file qib_mad.h.

#define IB_CC_THRESHOLD_NONE   0x0

Definition at line 242 of file qib_mad.h.

#define IB_CC_TRAP_KEY_VIOLATION   0x0000

Definition at line 298 of file qib_mad.h.

#define IB_CCT_ENTRIES   64

Definition at line 389 of file qib_mad.h.

#define IB_CCT_MIN_ENTRIES   (IB_CCT_ENTRIES * 2)

Definition at line 390 of file qib_mad.h.

#define IB_NOTICE_PROD_CA   cpu_to_be16(1)

Definition at line 135 of file qib_mad.h.

#define IB_NOTICE_PROD_CLASS_MGR   cpu_to_be16(4)

Definition at line 138 of file qib_mad.h.

#define IB_NOTICE_PROD_ROUTER   cpu_to_be16(3)

Definition at line 137 of file qib_mad.h.

#define IB_NOTICE_PROD_SWITCH   cpu_to_be16(2)

Definition at line 136 of file qib_mad.h.

#define IB_NOTICE_REPRESS_BAD_MKEY   (1 << 5)

Definition at line 160 of file qib_mad.h.

#define IB_NOTICE_REPRESS_BAD_PKEY   (1 << 6)

Definition at line 161 of file qib_mad.h.

#define IB_NOTICE_REPRESS_BAD_QKEY   (1 << 7)

Definition at line 162 of file qib_mad.h.

#define IB_NOTICE_REPRESS_CAP_MASK_CHG   (1 << 3)

Definition at line 158 of file qib_mad.h.

#define IB_NOTICE_REPRESS_EBO_THRESH   (1 << 1)

Definition at line 156 of file qib_mad.h.

#define IB_NOTICE_REPRESS_FLOW_UPDATE   (1 << 2)

Definition at line 157 of file qib_mad.h.

#define IB_NOTICE_REPRESS_LLI_THRESH   (1 << 0)

Definition at line 155 of file qib_mad.h.

#define IB_NOTICE_REPRESS_SYS_GUID_CHG   (1 << 4)

Definition at line 159 of file qib_mad.h.

#define IB_NOTICE_TRAP_BAD_MKEY   cpu_to_be16(256)

Definition at line 148 of file qib_mad.h.

#define IB_NOTICE_TRAP_BAD_PKEY   cpu_to_be16(257)

Definition at line 149 of file qib_mad.h.

#define IB_NOTICE_TRAP_BAD_QKEY   cpu_to_be16(258)

Definition at line 150 of file qib_mad.h.

#define IB_NOTICE_TRAP_CAP_MASK_CHG   cpu_to_be16(144)

Definition at line 146 of file qib_mad.h.

#define IB_NOTICE_TRAP_DR_NOTICE   0x80

Definition at line 174 of file qib_mad.h.

#define IB_NOTICE_TRAP_DR_TRUNC   0x40

Definition at line 175 of file qib_mad.h.

#define IB_NOTICE_TRAP_EBO_THRESH   cpu_to_be16(130)

Definition at line 144 of file qib_mad.h.

#define IB_NOTICE_TRAP_FLOW_UPDATE   cpu_to_be16(131)

Definition at line 145 of file qib_mad.h.

#define IB_NOTICE_TRAP_LLI_THRESH   cpu_to_be16(129)

Definition at line 143 of file qib_mad.h.

#define IB_NOTICE_TRAP_LSE_CHG   0x04 /* Link Speed Enable changed */

Definition at line 167 of file qib_mad.h.

#define IB_NOTICE_TRAP_LWE_CHG   0x02 /* Link Width Enable changed */

Definition at line 168 of file qib_mad.h.

#define IB_NOTICE_TRAP_NODE_DESC_CHG   0x01

Definition at line 169 of file qib_mad.h.

#define IB_NOTICE_TRAP_SYS_GUID_CHG   cpu_to_be16(145)

Definition at line 147 of file qib_mad.h.

#define IB_NOTICE_TYPE_FATAL   0x80

Definition at line 126 of file qib_mad.h.

#define IB_NOTICE_TYPE_INFO   0x84

Definition at line 130 of file qib_mad.h.

#define IB_NOTICE_TYPE_SECURITY   0x82

Definition at line 128 of file qib_mad.h.

#define IB_NOTICE_TYPE_SM   0x83

Definition at line 129 of file qib_mad.h.

#define IB_NOTICE_TYPE_URGENT   0x81

Definition at line 127 of file qib_mad.h.

#define IB_PMA_CONG_HW_CONTROL_SAMPLE   0x01

Definition at line 215 of file qib_mad.h.

#define IB_PMA_CONG_HW_CONTROL_TIMER   0x00

Definition at line 214 of file qib_mad.h.

#define IB_PMA_PORT_COUNTERS_CONG   cpu_to_be16(0xFF00)

Definition at line 187 of file qib_mad.h.

#define IB_PMA_SEL_CONG_ALL   0x01

Definition at line 222 of file qib_mad.h.

#define IB_PMA_SEL_CONG_PORT_DATA   0x02

Definition at line 223 of file qib_mad.h.

#define IB_PMA_SEL_CONG_ROUTING   0x08

Definition at line 225 of file qib_mad.h.

#define IB_PMA_SEL_CONG_XMIT   0x04

Definition at line 224 of file qib_mad.h.

#define IB_SMP_INVALID_FIELD   cpu_to_be16(0x001C)

Definition at line 42 of file qib_mad.h.

#define IB_SMP_UNSUP_METH_ATTR   cpu_to_be16(0x000C)

Definition at line 41 of file qib_mad.h.

#define IB_SMP_UNSUP_METHOD   cpu_to_be16(0x0008)

Definition at line 40 of file qib_mad.h.

#define IB_SMP_UNSUP_VERSION   cpu_to_be16(0x0004)

Definition at line 39 of file qib_mad.h.

#define IB_VLARB_HIGHPRI_0_31   3

Definition at line 184 of file qib_mad.h.

#define IB_VLARB_HIGHPRI_32_63   4

Definition at line 185 of file qib_mad.h.

#define IB_VLARB_LOWPRI_0_31   1

Definition at line 182 of file qib_mad.h.

#define IB_VLARB_LOWPRI_32_63   2

Definition at line 183 of file qib_mad.h.

#define QIB_CONG_TIMER_PSINTERVAL   0x1DCD64EC

Definition at line 220 of file qib_mad.h.

#define QIB_XMIT_RATE_PICO   0x7

Definition at line 218 of file qib_mad.h.

#define QIB_XMIT_RATE_UNSUPPORTED   0x0

Definition at line 217 of file qib_mad.h.

Function Documentation

struct ib_node_info __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

Variable Documentation

__be16 attr_id

Definition at line 113 of file qib_mad.h.

__be32 attr_mod

Definition at line 114 of file qib_mad.h.

u8 base_version

Definition at line 58 of file qib_mad.h.

u8 change_flags

Definition at line 93 of file qib_mad.h.

u8 class_version

Definition at line 59 of file qib_mad.h.

__be16 device_id

Definition at line 66 of file qib_mad.h.

u8 dr_rtn_path[30]

Definition at line 118 of file qib_mad.h.

__be16 dr_slid

Definition at line 110 of file qib_mad.h.

u8 dr_trunc_hop

Definition at line 117 of file qib_mad.h.

union ib_gid gid1

Definition at line 125 of file qib_mad.h.

union ib_gid gid2

Definition at line 126 of file qib_mad.h.

__be32 key

Definition at line 122 of file qib_mad.h.

__be16 lid

Definition at line 78 of file qib_mad.h.

__be16 lid1

Definition at line 120 of file qib_mad.h.

__be16 lid2

Definition at line 121 of file qib_mad.h.

u8 link_downed_counter

Definition at line 218 of file qib_mad.h.

u8 link_error_recovery_counter

Definition at line 217 of file qib_mad.h.

u8 link_overrun_errors

Definition at line 226 of file qib_mad.h.

u8 local_changes

Definition at line 90 of file qib_mad.h.

u8 local_port_num

Definition at line 68 of file qib_mad.h.

u8 method

Definition at line 111 of file qib_mad.h.

__be64 mkey

Definition at line 115 of file qib_mad.h.

__be32 new_cap_mask

Definition at line 91 of file qib_mad.h.

__be64 new_sys_guid

Definition at line 97 of file qib_mad.h.

__be64 node_guid

Definition at line 63 of file qib_mad.h.

Definition at line 60 of file qib_mad.h.

u8 num_ports

Definition at line 61 of file qib_mad.h.

__be16 partition_cap

Definition at line 65 of file qib_mad.h.

__be64 port_adr_events

Definition at line 234 of file qib_mad.h.

__be16 port_check_rate

Definition at line 215 of file qib_mad.h.

__be64 port_guid

Definition at line 64 of file qib_mad.h.

u8 port_num

Definition at line 79 of file qib_mad.h.

u8 port_rcv_constraint_errors

Definition at line 224 of file qib_mad.h.

__be64 port_rcv_data

Definition at line 230 of file qib_mad.h.

__be16 port_rcv_errors

Definition at line 219 of file qib_mad.h.

__be64 port_rcv_packets

Definition at line 232 of file qib_mad.h.

__be16 port_rcv_remphys_errors

Definition at line 220 of file qib_mad.h.

__be16 port_rcv_switch_relay_errors

Definition at line 221 of file qib_mad.h.

u8 port_xmit_constraint_errors

Definition at line 223 of file qib_mad.h.

__be64 port_xmit_data

Definition at line 229 of file qib_mad.h.

__be16 port_xmit_discards

Definition at line 222 of file qib_mad.h.

__be64 port_xmit_packets

Definition at line 231 of file qib_mad.h.

__be64 port_xmit_wait

Definition at line 233 of file qib_mad.h.

__be32 qp2

Definition at line 124 of file qib_mad.h.

u8 reserved

Definition at line 77 of file qib_mad.h.

u8 reserved1

Definition at line 214 of file qib_mad.h.

u8 reserved2

Definition at line 89 of file qib_mad.h.

__be16 reserved3

Definition at line 92 of file qib_mad.h.

Definition at line 67 of file qib_mad.h.

__be32 sl_qp1

Definition at line 123 of file qib_mad.h.

__be16 symbol_error_counter

Definition at line 216 of file qib_mad.h.

__be64 sys_guid

Definition at line 62 of file qib_mad.h.

u8 vendor_id[3]

Definition at line 69 of file qib_mad.h.

__be16 vl15_dropped

Definition at line 228 of file qib_mad.h.