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 I40IW_ABI_H
20 #define I40IW_ABI_H
21 #include <linux/types.h>
22 #define I40IW_ABI_VER 5
23 struct i40iw_alloc_ucontext_req {
24   __u32 reserved32;
25   __u8 userspace_ver;
26   __u8 reserved8[3];
27 };
28 struct i40iw_alloc_ucontext_resp {
29   __u32 max_pds;
30   __u32 max_qps;
31   __u32 wq_size;
32   __u8 kernel_ver;
33   __u8 reserved[3];
34 };
35 struct i40iw_alloc_pd_resp {
36   __u32 pd_id;
37   __u8 reserved[4];
38 };
39 struct i40iw_create_cq_req {
40   __aligned_u64 user_cq_buffer;
41   __aligned_u64 user_shadow_area;
42 };
43 struct i40iw_create_qp_req {
44   __aligned_u64 user_wqe_buffers;
45   __aligned_u64 user_compl_ctx;
46   __aligned_u64 user_sq_phb;
47   __aligned_u64 user_rq_phb;
48 };
49 enum i40iw_memreg_type {
50   IW_MEMREG_TYPE_MEM = 0x0000,
51   IW_MEMREG_TYPE_QP = 0x0001,
52   IW_MEMREG_TYPE_CQ = 0x0002,
53 };
54 struct i40iw_mem_reg_req {
55   __u16 reg_type;
56   __u16 cq_pages;
57   __u16 rq_pages;
58   __u16 sq_pages;
59 };
60 struct i40iw_create_cq_resp {
61   __u32 cq_id;
62   __u32 cq_size;
63   __u32 mmap_db_index;
64   __u32 reserved;
65 };
66 struct i40iw_create_qp_resp {
67   __u32 qp_id;
68   __u32 actual_sq_size;
69   __u32 actual_rq_size;
70   __u32 i40iw_drv_opt;
71   __u16 push_idx;
72   __u8 lsmm;
73   __u8 rsvd2;
74 };
75 #endif
76