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 HNS_ABI_USER_H 7 #define HNS_ABI_USER_H 8 #include <linux/types.h> 9 struct hns_roce_ib_create_cq { 10 __aligned_u64 buf_addr; 11 __aligned_u64 db_addr; 12 }; 13 struct hns_roce_ib_create_cq_resp { 14 __aligned_u64 cqn; 15 __aligned_u64 cap_flags; 16 }; 17 struct hns_roce_ib_create_qp { 18 __aligned_u64 buf_addr; 19 __aligned_u64 db_addr; 20 __u8 log_sq_bb_count; 21 __u8 log_sq_stride; 22 __u8 sq_no_prefetch; 23 __u8 reserved[5]; 24 __aligned_u64 sdb_addr; 25 }; 26 struct hns_roce_ib_create_qp_resp { 27 __aligned_u64 cap_flags; 28 }; 29 struct hns_roce_ib_alloc_ucontext_resp { 30 __u32 qp_tab_size; 31 __u32 reserved; 32 }; 33 struct hns_roce_ib_alloc_pd_resp { 34 __u32 pdn; 35 }; 36 #endif 37