1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef __QEDR_USER_H__ 20 #define __QEDR_USER_H__ 21 #include <linux/types.h> 22 #define QEDR_ABI_VERSION (8) 23 struct qedr_alloc_ucontext_resp { 24 __aligned_u64 db_pa; 25 __u32 db_size; 26 __u32 max_send_wr; 27 __u32 max_recv_wr; 28 __u32 max_srq_wr; 29 __u32 sges_per_send_wr; 30 __u32 sges_per_recv_wr; 31 __u32 sges_per_srq_wr; 32 __u32 max_cqes; 33 __u8 dpm_enabled; 34 __u8 wids_enabled; 35 __u16 wid_count; 36 __u32 reserved; 37 }; 38 struct qedr_alloc_pd_ureq { 39 __aligned_u64 rsvd1; 40 }; 41 struct qedr_alloc_pd_uresp { 42 __u32 pd_id; 43 __u32 reserved; 44 }; 45 struct qedr_create_cq_ureq { 46 __aligned_u64 addr; 47 __aligned_u64 len; 48 }; 49 struct qedr_create_cq_uresp { 50 __u32 db_offset; 51 __u16 icid; 52 __u16 reserved; 53 }; 54 struct qedr_create_qp_ureq { 55 __u32 qp_handle_hi; 56 __u32 qp_handle_lo; 57 __aligned_u64 sq_addr; 58 __aligned_u64 sq_len; 59 __aligned_u64 rq_addr; 60 __aligned_u64 rq_len; 61 }; 62 struct qedr_create_qp_uresp { 63 __u32 qp_id; 64 __u32 atomic_supported; 65 __u32 sq_db_offset; 66 __u16 sq_icid; 67 __u32 rq_db_offset; 68 __u16 rq_icid; 69 __u32 rq_db2_offset; 70 __u32 reserved; 71 }; 72 struct qedr_create_srq_ureq { 73 __aligned_u64 prod_pair_addr; 74 __aligned_u64 srq_addr; 75 __aligned_u64 srq_len; 76 }; 77 struct qedr_create_srq_uresp { 78 __u16 srq_id; 79 __u16 reserved0; 80 __u32 reserved1; 81 }; 82 #endif 83