Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
hipz_hw.h File Reference
#include "ehca_tools.h"

Go to the source code of this file.

Data Structures

struct  hipz_qptemm
 
struct  hipz_mrmwmm
 
struct  hipz_qpedmm
 
struct  hipz_cqtemm
 
struct  hipz_eqtemm
 
struct  hipz_query_hca
 
struct  hipz_query_port
 

Macros

#define EHCA_MAX_MTU   4
 
#define QPX_SQADDER   EHCA_BMASK_IBM(48, 63)
 
#define QPX_RQADDER   EHCA_BMASK_IBM(48, 63)
 
#define QPX_AAELOG_RESET_SRQ_LIMIT   EHCA_BMASK_IBM(3, 3)
 
#define QPTEMM_OFFSET(x)   offsetof(struct hipz_qptemm, x)
 
#define MRMWMM_OFFSET(x)   offsetof(struct hipz_mrmwmm, x)
 
#define QPEDMM_OFFSET(x)   offsetof(struct hipz_qpedmm, x)
 
#define CQX_FEC_CQE_CNT   EHCA_BMASK_IBM(32, 63)
 
#define CQX_FECADDER   EHCA_BMASK_IBM(32, 63)
 
#define CQX_N0_GENERATE_SOLICITED_COMP_EVENT   EHCA_BMASK_IBM(0, 0)
 
#define CQX_N1_GENERATE_COMP_EVENT   EHCA_BMASK_IBM(0, 0)
 
#define CQTEMM_OFFSET(x)   offsetof(struct hipz_cqtemm, x)
 
#define EQTEMM_OFFSET(x)   offsetof(struct hipz_eqtemm, x)
 
#define HIPZ_ACCESSCTRL_L_WRITE   0x00800000
 
#define HIPZ_ACCESSCTRL_R_WRITE   0x00400000
 
#define HIPZ_ACCESSCTRL_R_READ   0x00200000
 
#define HIPZ_ACCESSCTRL_R_ATOMIC   0x00100000
 
#define HIPZ_ACCESSCTRL_MW_BIND   0x00080000
 
#define HCA_CAP_AH_PORT_NR_CHECK   EHCA_BMASK_IBM( 0, 0)
 
#define HCA_CAP_ATOMIC   EHCA_BMASK_IBM( 1, 1)
 
#define HCA_CAP_AUTO_PATH_MIG   EHCA_BMASK_IBM( 2, 2)
 
#define HCA_CAP_BAD_P_KEY_CTR   EHCA_BMASK_IBM( 3, 3)
 
#define HCA_CAP_SQD_RTS_PORT_CHANGE   EHCA_BMASK_IBM( 4, 4)
 
#define HCA_CAP_CUR_QP_STATE_MOD   EHCA_BMASK_IBM( 5, 5)
 
#define HCA_CAP_INIT_TYPE   EHCA_BMASK_IBM( 6, 6)
 
#define HCA_CAP_PORT_ACTIVE_EVENT   EHCA_BMASK_IBM( 7, 7)
 
#define HCA_CAP_Q_KEY_VIOL_CTR   EHCA_BMASK_IBM( 8, 8)
 
#define HCA_CAP_WQE_RESIZE   EHCA_BMASK_IBM( 9, 9)
 
#define HCA_CAP_RAW_PACKET_MCAST   EHCA_BMASK_IBM(10, 10)
 
#define HCA_CAP_SHUTDOWN_PORT   EHCA_BMASK_IBM(11, 11)
 
#define HCA_CAP_RC_LL_QP   EHCA_BMASK_IBM(12, 12)
 
#define HCA_CAP_SRQ   EHCA_BMASK_IBM(13, 13)
 
#define HCA_CAP_UD_LL_QP   EHCA_BMASK_IBM(16, 16)
 
#define HCA_CAP_RESIZE_MR   EHCA_BMASK_IBM(17, 17)
 
#define HCA_CAP_MINI_QP   EHCA_BMASK_IBM(18, 18)
 
#define HCA_CAP_H_ALLOC_RES_SYNC   EHCA_BMASK_IBM(19, 19)
 

Functions

struct hipz_query_hca __attribute__ ((packed))
 

Variables

u32 cur_reliable_dg
 
u32 cur_qp
 
u32 cur_cq
 
u32 cur_eq
 
u32 cur_mr
 
u32 cur_mw
 
u32 cur_ee_context
 
u32 cur_mcast_grp
 
u32 cur_qp_attached_mcast_grp
 
u32 reserved1
 
u32 cur_ipv6_qp
 
u32 cur_eth_qp
 
u32 cur_hp_mr
 
u32 reserved2 [3]
 
u32 max_rd_domain
 
u32 max_qp
 
u32 max_cq
 
u32 max_eq
 
u32 max_mr
 
u32 max_hp_mr
 
u32 max_mw
 
u32 max_mrwpte
 
u32 max_special_mrwpte
 
u32 max_rd_ee_context
 
u32 max_mcast_grp
 
u32 max_total_mcast_qp_attach
 
u32 max_mcast_qp_attach
 
u32 max_raw_ipv6_qp
 
u32 max_raw_ethy_qp
 
u32 internal_clock_frequency
 
u32 max_pd
 
u32 max_ah
 
u32 max_cqe
 
u32 max_wqes_wq
 
u32 max_partitions
 
u32 max_rr_ee_context
 
u32 max_rr_qp
 
u32 max_rr_hca
 
u32 max_act_wqs_ee_context
 
u32 max_act_wqs_qp
 
u32 max_sge
 
u32 max_sge_rd
 
u32 memory_page_size_supported
 
u64 max_mr_size
 
u32 local_ca_ack_delay
 
u32 num_ports
 
u32 vendor_id
 
u32 vendor_part_id
 
u32 hw_ver
 
u64 node_guid
 
u64 hca_cap_indicators
 
u32 data_counter_register_size
 
u32 max_shared_rq
 
u32 max_isns_eq
 
u32 max_neq
 
u32 state
 
u32 bad_pkey_cntr
 
u32 lmc
 
u32 lid
 
u32 subnet_timeout
 
u32 qkey_viol_cntr
 
u32 sm_sl
 
u32 sm_lid
 
u32 capability_mask
 
u32 init_type_reply
 
u32 pkey_tbl_len
 
u32 gid_tbl_len
 
u64 gid_prefix
 
u32 port_nr
 
u16 pkey_entries [16]
 
u32 trent_size
 
u32 trbuf_size
 
u64 max_msg_sz
 
u32 max_mtu
 
u32 vl_cap
 
u32 phys_pstate
 
u32 phys_state
 
u32 phys_speed
 
u32 phys_width
 
u64 guid_entries [255]
 

Macro Definition Documentation

#define CQTEMM_OFFSET (   x)    offsetof(struct hipz_cqtemm, x)

Definition at line 271 of file hipz_hw.h.

#define CQX_FEC_CQE_CNT   EHCA_BMASK_IBM(32, 63)

Definition at line 266 of file hipz_hw.h.

#define CQX_FECADDER   EHCA_BMASK_IBM(32, 63)

Definition at line 267 of file hipz_hw.h.

#define CQX_N0_GENERATE_SOLICITED_COMP_EVENT   EHCA_BMASK_IBM(0, 0)

Definition at line 268 of file hipz_hw.h.

#define CQX_N1_GENERATE_COMP_EVENT   EHCA_BMASK_IBM(0, 0)

Definition at line 269 of file hipz_hw.h.

#define EHCA_MAX_MTU   4

Definition at line 48 of file hipz_hw.h.

#define EQTEMM_OFFSET (   x)    offsetof(struct hipz_eqtemm, x)

Definition at line 296 of file hipz_hw.h.

#define HCA_CAP_AH_PORT_NR_CHECK   EHCA_BMASK_IBM( 0, 0)

Definition at line 364 of file hipz_hw.h.

#define HCA_CAP_ATOMIC   EHCA_BMASK_IBM( 1, 1)

Definition at line 365 of file hipz_hw.h.

#define HCA_CAP_AUTO_PATH_MIG   EHCA_BMASK_IBM( 2, 2)

Definition at line 366 of file hipz_hw.h.

#define HCA_CAP_BAD_P_KEY_CTR   EHCA_BMASK_IBM( 3, 3)

Definition at line 367 of file hipz_hw.h.

#define HCA_CAP_CUR_QP_STATE_MOD   EHCA_BMASK_IBM( 5, 5)

Definition at line 369 of file hipz_hw.h.

#define HCA_CAP_H_ALLOC_RES_SYNC   EHCA_BMASK_IBM(19, 19)

Definition at line 381 of file hipz_hw.h.

#define HCA_CAP_INIT_TYPE   EHCA_BMASK_IBM( 6, 6)

Definition at line 370 of file hipz_hw.h.

#define HCA_CAP_MINI_QP   EHCA_BMASK_IBM(18, 18)

Definition at line 380 of file hipz_hw.h.

#define HCA_CAP_PORT_ACTIVE_EVENT   EHCA_BMASK_IBM( 7, 7)

Definition at line 371 of file hipz_hw.h.

#define HCA_CAP_Q_KEY_VIOL_CTR   EHCA_BMASK_IBM( 8, 8)

Definition at line 372 of file hipz_hw.h.

#define HCA_CAP_RAW_PACKET_MCAST   EHCA_BMASK_IBM(10, 10)

Definition at line 374 of file hipz_hw.h.

#define HCA_CAP_RC_LL_QP   EHCA_BMASK_IBM(12, 12)

Definition at line 376 of file hipz_hw.h.

#define HCA_CAP_RESIZE_MR   EHCA_BMASK_IBM(17, 17)

Definition at line 379 of file hipz_hw.h.

#define HCA_CAP_SHUTDOWN_PORT   EHCA_BMASK_IBM(11, 11)

Definition at line 375 of file hipz_hw.h.

#define HCA_CAP_SQD_RTS_PORT_CHANGE   EHCA_BMASK_IBM( 4, 4)

Definition at line 368 of file hipz_hw.h.

#define HCA_CAP_SRQ   EHCA_BMASK_IBM(13, 13)

Definition at line 377 of file hipz_hw.h.

#define HCA_CAP_UD_LL_QP   EHCA_BMASK_IBM(16, 16)

Definition at line 378 of file hipz_hw.h.

#define HCA_CAP_WQE_RESIZE   EHCA_BMASK_IBM( 9, 9)

Definition at line 373 of file hipz_hw.h.

#define HIPZ_ACCESSCTRL_L_WRITE   0x00800000

Definition at line 299 of file hipz_hw.h.

#define HIPZ_ACCESSCTRL_MW_BIND   0x00080000

Definition at line 303 of file hipz_hw.h.

#define HIPZ_ACCESSCTRL_R_ATOMIC   0x00100000

Definition at line 302 of file hipz_hw.h.

#define HIPZ_ACCESSCTRL_R_READ   0x00200000

Definition at line 301 of file hipz_hw.h.

#define HIPZ_ACCESSCTRL_R_WRITE   0x00400000

Definition at line 300 of file hipz_hw.h.

#define MRMWMM_OFFSET (   x)    offsetof(struct hipz_mrmwmm, x)

Definition at line 190 of file hipz_hw.h.

#define QPEDMM_OFFSET (   x)    offsetof(struct hipz_qpedmm, x)

Definition at line 241 of file hipz_hw.h.

#define QPTEMM_OFFSET (   x)    offsetof(struct hipz_qptemm, x)

Definition at line 168 of file hipz_hw.h.

#define QPX_AAELOG_RESET_SRQ_LIMIT   EHCA_BMASK_IBM(3, 3)

Definition at line 166 of file hipz_hw.h.

#define QPX_RQADDER   EHCA_BMASK_IBM(48, 63)

Definition at line 165 of file hipz_hw.h.

#define QPX_SQADDER   EHCA_BMASK_IBM(48, 63)

Definition at line 164 of file hipz_hw.h.

Function Documentation

struct hipz_query_hca __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

Variable Documentation

u32 bad_pkey_cntr

Definition at line 414 of file hipz_hw.h.

u32 capability_mask

Definition at line 421 of file hipz_hw.h.

u32 cur_cq

Definition at line 365 of file hipz_hw.h.

u32 cur_ee_context

Definition at line 369 of file hipz_hw.h.

u32 cur_eq

Definition at line 366 of file hipz_hw.h.

u32 cur_eth_qp

Definition at line 374 of file hipz_hw.h.

u32 cur_hp_mr

Definition at line 375 of file hipz_hw.h.

u32 cur_ipv6_qp

Definition at line 373 of file hipz_hw.h.

u32 cur_mcast_grp

Definition at line 370 of file hipz_hw.h.

u32 cur_mr

Definition at line 367 of file hipz_hw.h.

u32 cur_mw

Definition at line 368 of file hipz_hw.h.

u32 cur_qp

Definition at line 364 of file hipz_hw.h.

u32 cur_qp_attached_mcast_grp

Definition at line 371 of file hipz_hw.h.

u32 cur_reliable_dg

Definition at line 363 of file hipz_hw.h.

u32 data_counter_register_size

Definition at line 414 of file hipz_hw.h.

u64 gid_prefix

Definition at line 425 of file hipz_hw.h.

u32 gid_tbl_len

Definition at line 424 of file hipz_hw.h.

u64 guid_entries[255]

Definition at line 439 of file hipz_hw.h.

u64 hca_cap_indicators

Definition at line 413 of file hipz_hw.h.

u32 hw_ver

Definition at line 411 of file hipz_hw.h.

u32 init_type_reply

Definition at line 422 of file hipz_hw.h.

u32 internal_clock_frequency

Definition at line 392 of file hipz_hw.h.

__be16 lid

Definition at line 416 of file hipz_hw.h.

u32 lmc

Definition at line 415 of file hipz_hw.h.

u32 local_ca_ack_delay

Definition at line 407 of file hipz_hw.h.

u32 max_act_wqs_ee_context

Definition at line 401 of file hipz_hw.h.

u32 max_act_wqs_qp

Definition at line 402 of file hipz_hw.h.

u32 max_ah

Definition at line 394 of file hipz_hw.h.

u32 max_cq

Definition at line 379 of file hipz_hw.h.

u32 max_cqe

Definition at line 395 of file hipz_hw.h.

u32 max_eq

Definition at line 380 of file hipz_hw.h.

u32 max_hp_mr

Definition at line 382 of file hipz_hw.h.

u32 max_isns_eq

Definition at line 416 of file hipz_hw.h.

u32 max_mcast_grp

Definition at line 387 of file hipz_hw.h.

u32 max_mcast_qp_attach

Definition at line 389 of file hipz_hw.h.

u32 max_mr

Definition at line 381 of file hipz_hw.h.

u64 max_mr_size

Definition at line 406 of file hipz_hw.h.

u32 max_mrwpte

Definition at line 384 of file hipz_hw.h.

u64 max_msg_sz

Definition at line 431 of file hipz_hw.h.

u32 max_mtu

Definition at line 432 of file hipz_hw.h.

u32 max_mw

Definition at line 383 of file hipz_hw.h.

u32 max_neq

Definition at line 417 of file hipz_hw.h.

u32 max_partitions

Definition at line 397 of file hipz_hw.h.

u32 max_pd

Definition at line 393 of file hipz_hw.h.

u32 max_qp

Definition at line 378 of file hipz_hw.h.

u32 max_raw_ethy_qp

Definition at line 391 of file hipz_hw.h.

u32 max_raw_ipv6_qp

Definition at line 390 of file hipz_hw.h.

u32 max_rd_domain

Definition at line 377 of file hipz_hw.h.

u32 max_rd_ee_context

Definition at line 386 of file hipz_hw.h.

u32 max_rr_ee_context

Definition at line 398 of file hipz_hw.h.

u32 max_rr_hca

Definition at line 400 of file hipz_hw.h.

u32 max_rr_qp

Definition at line 399 of file hipz_hw.h.

u32 max_sge

Definition at line 403 of file hipz_hw.h.

u32 max_sge_rd

Definition at line 404 of file hipz_hw.h.

u32 max_shared_rq

Definition at line 415 of file hipz_hw.h.

u32 max_special_mrwpte

Definition at line 385 of file hipz_hw.h.

u32 max_total_mcast_qp_attach

Definition at line 388 of file hipz_hw.h.

u32 max_wqes_wq

Definition at line 396 of file hipz_hw.h.

u32 memory_page_size_supported

Definition at line 405 of file hipz_hw.h.

u64 node_guid

Definition at line 412 of file hipz_hw.h.

u32 num_ports

Definition at line 408 of file hipz_hw.h.

u32 phys_pstate

Definition at line 434 of file hipz_hw.h.

u32 phys_speed

Definition at line 436 of file hipz_hw.h.

u32 phys_state

Definition at line 435 of file hipz_hw.h.

u32 phys_width

Definition at line 437 of file hipz_hw.h.

u16 pkey_entries[16]

Definition at line 427 of file hipz_hw.h.

u32 pkey_tbl_len

Definition at line 423 of file hipz_hw.h.

u32 port_nr

Definition at line 426 of file hipz_hw.h.

u32 qkey_viol_cntr

Definition at line 418 of file hipz_hw.h.

u8 reserved1[32]

Definition at line 372 of file hipz_hw.h.

u8 reserved2[1884]

Definition at line 376 of file hipz_hw.h.

u32 sm_lid

Definition at line 420 of file hipz_hw.h.

u32 sm_sl

Definition at line 419 of file hipz_hw.h.

Definition at line 413 of file hipz_hw.h.

u32 subnet_timeout

Definition at line 417 of file hipz_hw.h.

u32 trbuf_size

Definition at line 430 of file hipz_hw.h.

u32 trent_size

Definition at line 429 of file hipz_hw.h.

u32 vendor_id

Definition at line 409 of file hipz_hw.h.

u32 vendor_part_id

Definition at line 410 of file hipz_hw.h.

u32 vl_cap

Definition at line 433 of file hipz_hw.h.