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 OCRDMA_ABI_USER_H
20 #define OCRDMA_ABI_USER_H
21 #include <linux/types.h>
22 #define OCRDMA_ABI_VERSION 2
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define OCRDMA_BE_ROCE_ABI_VERSION 1
25 struct ocrdma_alloc_ucontext_resp {
26   __u32 dev_id;
27   __u32 wqe_size;
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29   __u32 max_inline_data;
30   __u32 dpp_wqe_size;
31   __u64 ah_tbl_page;
32   __u32 ah_tbl_len;
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34   __u32 rqe_size;
35   __u8 fw_ver[32];
36   __u64 rsvd1;
37   __u64 rsvd2;
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 };
40 struct ocrdma_alloc_pd_ureq {
41   __u64 rsvd1;
42 };
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 struct ocrdma_alloc_pd_uresp {
45   __u32 id;
46   __u32 dpp_enabled;
47   __u32 dpp_page_addr_hi;
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49   __u32 dpp_page_addr_lo;
50   __u64 rsvd1;
51 };
52 struct ocrdma_create_cq_ureq {
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54   __u32 dpp_cq;
55   __u32 rsvd;
56 };
57 #define MAX_CQ_PAGES 8
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 struct ocrdma_create_cq_uresp {
60   __u32 cq_id;
61   __u32 page_size;
62   __u32 num_pages;
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64   __u32 max_hw_cqe;
65   __u64 page_addr[MAX_CQ_PAGES];
66   __u64 db_page_addr;
67   __u32 db_page_size;
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69   __u32 phase_change;
70   __u64 rsvd1;
71   __u64 rsvd2;
72 };
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 #define MAX_QP_PAGES 8
75 #define MAX_UD_AV_PAGES 8
76 struct ocrdma_create_qp_ureq {
77   __u8 enable_dpp_cq;
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79   __u8 rsvd;
80   __u16 dpp_cq_id;
81   __u32 rsvd1;
82 };
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 struct ocrdma_create_qp_uresp {
85   __u16 qp_id;
86   __u16 sq_dbid;
87   __u16 rq_dbid;
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89   __u16 resv0;
90   __u32 sq_page_size;
91   __u32 rq_page_size;
92   __u32 num_sq_pages;
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94   __u32 num_rq_pages;
95   __u64 sq_page_addr[MAX_QP_PAGES];
96   __u64 rq_page_addr[MAX_QP_PAGES];
97   __u64 db_page_addr;
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99   __u32 db_page_size;
100   __u32 dpp_credit;
101   __u32 dpp_offset;
102   __u32 num_wqe_allocated;
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104   __u32 num_rqe_allocated;
105   __u32 db_sq_offset;
106   __u32 db_rq_offset;
107   __u32 db_shift;
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109   __u64 rsvd[11];
110 } __packed;
111 struct ocrdma_create_srq_uresp {
112   __u16 rq_dbid;
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114   __u16 resv0;
115   __u32 resv1;
116   __u32 rq_page_size;
117   __u32 num_rq_pages;
118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119   __u64 rq_page_addr[MAX_QP_PAGES];
120   __u64 db_page_addr;
121   __u32 db_page_size;
122   __u32 num_rqe_allocated;
123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124   __u32 db_rq_offset;
125   __u32 db_shift;
126   __u64 rsvd2;
127   __u64 rsvd3;
128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 };
130 #endif
131