1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef MTHCA_ABI_USER_H 7 #define MTHCA_ABI_USER_H 8 #include <linux/types.h> 9 #define MTHCA_UVERBS_ABI_VERSION 1 10 struct mthca_alloc_ucontext_resp { 11 __u32 qp_tab_size; 12 __u32 uarc_size; 13 }; 14 struct mthca_alloc_pd_resp { 15 __u32 pdn; 16 __u32 reserved; 17 }; 18 #define MTHCA_MR_DMASYNC 0x1 19 struct mthca_reg_mr { 20 __u32 mr_attrs; 21 __u32 reserved; 22 }; 23 struct mthca_create_cq { 24 __u32 lkey; 25 __u32 pdn; 26 __aligned_u64 arm_db_page; 27 __aligned_u64 set_db_page; 28 __u32 arm_db_index; 29 __u32 set_db_index; 30 }; 31 struct mthca_create_cq_resp { 32 __u32 cqn; 33 __u32 reserved; 34 }; 35 struct mthca_resize_cq { 36 __u32 lkey; 37 __u32 reserved; 38 }; 39 struct mthca_create_srq { 40 __u32 lkey; 41 __u32 db_index; 42 __aligned_u64 db_page; 43 }; 44 struct mthca_create_srq_resp { 45 __u32 srqn; 46 __u32 reserved; 47 }; 48 struct mthca_create_qp { 49 __u32 lkey; 50 __u32 reserved; 51 __aligned_u64 sq_db_page; 52 __aligned_u64 rq_db_page; 53 __u32 sq_db_index; 54 __u32 rq_db_index; 55 }; 56 #endif 57