blob: c475ffce6a10adb0f48d3214ef026e7b0fbaf56e [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 IB_USER_CM_H
20#define IB_USER_CM_H
21#include <linux/types.h>
22#include <rdma/ib_user_sa.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define IB_USER_CM_ABI_VERSION 5
25enum {
Tao Baod7db5942015-01-28 10:07:51 -080026 IB_USER_CM_CMD_CREATE_ID,
27 IB_USER_CM_CMD_DESTROY_ID,
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 IB_USER_CM_CMD_ATTR_ID,
30 IB_USER_CM_CMD_LISTEN,
31 IB_USER_CM_CMD_NOTIFY,
32 IB_USER_CM_CMD_SEND_REQ,
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 IB_USER_CM_CMD_SEND_REP,
35 IB_USER_CM_CMD_SEND_RTU,
36 IB_USER_CM_CMD_SEND_DREQ,
37 IB_USER_CM_CMD_SEND_DREP,
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 IB_USER_CM_CMD_SEND_REJ,
40 IB_USER_CM_CMD_SEND_MRA,
41 IB_USER_CM_CMD_SEND_LAP,
42 IB_USER_CM_CMD_SEND_APR,
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 IB_USER_CM_CMD_SEND_SIDR_REQ,
45 IB_USER_CM_CMD_SEND_SIDR_REP,
46 IB_USER_CM_CMD_EVENT,
47 IB_USER_CM_CMD_INIT_QP_ATTR,
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49};
50struct ib_ucm_cmd_hdr {
Tao Baod7db5942015-01-28 10:07:51 -080051 __u32 cmd;
52 __u16 in;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 __u16 out;
Ben Cheng655a7c02013-10-16 16:09:24 -070055};
56struct ib_ucm_create_id {
Tao Baod7db5942015-01-28 10:07:51 -080057 __u64 uid;
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 __u64 response;
Ben Cheng655a7c02013-10-16 16:09:24 -070060};
61struct ib_ucm_create_id_resp {
Tao Baod7db5942015-01-28 10:07:51 -080062 __u32 id;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64};
65struct ib_ucm_destroy_id {
Tao Baod7db5942015-01-28 10:07:51 -080066 __u64 response;
67 __u32 id;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -070070};
71struct ib_ucm_destroy_id_resp {
Tao Baod7db5942015-01-28 10:07:51 -080072 __u32 events_reported;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74};
75struct ib_ucm_attr_id {
Tao Baod7db5942015-01-28 10:07:51 -080076 __u64 response;
77 __u32 id;
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -070080};
81struct ib_ucm_attr_id_resp {
Tao Baod7db5942015-01-28 10:07:51 -080082 __be64 service_id;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 __be64 service_mask;
85 __be32 local_id;
86 __be32 remote_id;
Ben Cheng655a7c02013-10-16 16:09:24 -070087};
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89struct ib_ucm_init_qp_attr {
Tao Baod7db5942015-01-28 10:07:51 -080090 __u64 response;
91 __u32 id;
92 __u32 qp_state;
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94};
95struct ib_ucm_listen {
Tao Baod7db5942015-01-28 10:07:51 -080096 __be64 service_id;
97 __be64 service_mask;
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 __u32 id;
100 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700101};
102struct ib_ucm_notify {
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 __u32 id;
105 __u32 event;
Ben Cheng655a7c02013-10-16 16:09:24 -0700106};
107struct ib_ucm_private_data {
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 __u64 data;
110 __u32 id;
111 __u8 len;
112 __u8 reserved[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114};
115struct ib_ucm_req {
Tao Baod7db5942015-01-28 10:07:51 -0800116 __u32 id;
117 __u32 qpn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 __u32 qp_type;
120 __u32 psn;
121 __be64 sid;
122 __u64 data;
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 __u64 primary_path;
125 __u64 alternate_path;
126 __u8 len;
127 __u8 peer_to_peer;
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 __u8 responder_resources;
130 __u8 initiator_depth;
131 __u8 remote_cm_response_timeout;
132 __u8 flow_control;
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134 __u8 local_cm_response_timeout;
135 __u8 retry_count;
136 __u8 rnr_retry_count;
137 __u8 max_cm_retries;
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 __u8 srq;
140 __u8 reserved[5];
Ben Cheng655a7c02013-10-16 16:09:24 -0700141};
142struct ib_ucm_rep {
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 __u64 uid;
145 __u64 data;
146 __u32 id;
147 __u32 qpn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800149 __u32 psn;
150 __u8 len;
151 __u8 responder_resources;
152 __u8 initiator_depth;
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800154 __u8 target_ack_delay;
155 __u8 failover_accepted;
156 __u8 flow_control;
157 __u8 rnr_retry_count;
Ben Cheng655a7c02013-10-16 16:09:24 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800159 __u8 srq;
160 __u8 reserved[4];
Ben Cheng655a7c02013-10-16 16:09:24 -0700161};
162struct ib_ucm_info {
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800164 __u32 id;
165 __u32 status;
166 __u64 info;
167 __u64 data;
Ben Cheng655a7c02013-10-16 16:09:24 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169 __u8 info_len;
170 __u8 data_len;
171 __u8 reserved[6];
Ben Cheng655a7c02013-10-16 16:09:24 -0700172};
173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174struct ib_ucm_mra {
Tao Baod7db5942015-01-28 10:07:51 -0800175 __u64 data;
176 __u32 id;
177 __u8 len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800179 __u8 timeout;
180 __u8 reserved[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700181};
182struct ib_ucm_lap {
183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800184 __u64 path;
185 __u64 data;
186 __u32 id;
187 __u8 len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800189 __u8 reserved[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700190};
191struct ib_ucm_sidr_req {
Tao Baod7db5942015-01-28 10:07:51 -0800192 __u32 id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800194 __u32 timeout;
195 __be64 sid;
196 __u64 data;
197 __u64 path;
Ben Cheng655a7c02013-10-16 16:09:24 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800199 __u16 reserved_pkey;
200 __u8 len;
201 __u8 max_cm_retries;
202 __u8 reserved[4];
Ben Cheng655a7c02013-10-16 16:09:24 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204};
205struct ib_ucm_sidr_rep {
Tao Baod7db5942015-01-28 10:07:51 -0800206 __u32 id;
207 __u32 qpn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800209 __u32 qkey;
210 __u32 status;
211 __u64 info;
212 __u64 data;
Ben Cheng655a7c02013-10-16 16:09:24 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800214 __u8 info_len;
215 __u8 data_len;
216 __u8 reserved[6];
Ben Cheng655a7c02013-10-16 16:09:24 -0700217};
218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219struct ib_ucm_event_get {
Tao Baod7db5942015-01-28 10:07:51 -0800220 __u64 response;
221 __u64 data;
222 __u64 info;
Ben Cheng655a7c02013-10-16 16:09:24 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800224 __u8 data_len;
225 __u8 info_len;
226 __u8 reserved[6];
Ben Cheng655a7c02013-10-16 16:09:24 -0700227};
228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229struct ib_ucm_req_event_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800230 struct ib_user_path_rec primary_path;
231 struct ib_user_path_rec alternate_path;
232 __be64 remote_ca_guid;
Ben Cheng655a7c02013-10-16 16:09:24 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800234 __u32 remote_qkey;
235 __u32 remote_qpn;
236 __u32 qp_type;
237 __u32 starting_psn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800239 __u8 responder_resources;
240 __u8 initiator_depth;
241 __u8 local_cm_response_timeout;
242 __u8 flow_control;
Ben Cheng655a7c02013-10-16 16:09:24 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800244 __u8 remote_cm_response_timeout;
245 __u8 retry_count;
246 __u8 rnr_retry_count;
247 __u8 srq;
Ben Cheng655a7c02013-10-16 16:09:24 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800249 __u8 port;
250 __u8 reserved[7];
Ben Cheng655a7c02013-10-16 16:09:24 -0700251};
252struct ib_ucm_rep_event_resp {
253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800254 __be64 remote_ca_guid;
255 __u32 remote_qkey;
256 __u32 remote_qpn;
257 __u32 starting_psn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800259 __u8 responder_resources;
260 __u8 initiator_depth;
261 __u8 target_ack_delay;
262 __u8 failover_accepted;
Ben Cheng655a7c02013-10-16 16:09:24 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800264 __u8 flow_control;
265 __u8 rnr_retry_count;
266 __u8 srq;
267 __u8 reserved[5];
Ben Cheng655a7c02013-10-16 16:09:24 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
269};
270struct ib_ucm_rej_event_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800271 __u32 reason;
Ben Cheng655a7c02013-10-16 16:09:24 -0700272};
273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
274struct ib_ucm_mra_event_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800275 __u8 timeout;
276 __u8 reserved[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700277};
278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
279struct ib_ucm_lap_event_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800280 struct ib_user_path_rec path;
Ben Cheng655a7c02013-10-16 16:09:24 -0700281};
282struct ib_ucm_apr_event_resp {
283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800284 __u32 status;
Ben Cheng655a7c02013-10-16 16:09:24 -0700285};
286struct ib_ucm_sidr_req_event_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800287 __u16 pkey;
Ben Cheng655a7c02013-10-16 16:09:24 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800289 __u8 port;
290 __u8 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700291};
292struct ib_ucm_sidr_rep_event_resp {
293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800294 __u32 status;
295 __u32 qkey;
296 __u32 qpn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700297};
298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
299#define IB_UCM_PRES_DATA 0x01
300#define IB_UCM_PRES_INFO 0x02
301#define IB_UCM_PRES_PRIMARY 0x04
302#define IB_UCM_PRES_ALTERNATE 0x08
303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
304struct ib_ucm_event_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800305 __u64 uid;
306 __u32 id;
307 __u32 event;
Ben Cheng655a7c02013-10-16 16:09:24 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800309 __u32 present;
310 __u32 reserved;
311 union {
312 struct ib_ucm_req_event_resp req_resp;
Ben Cheng655a7c02013-10-16 16:09:24 -0700313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800314 struct ib_ucm_rep_event_resp rep_resp;
315 struct ib_ucm_rej_event_resp rej_resp;
316 struct ib_ucm_mra_event_resp mra_resp;
317 struct ib_ucm_lap_event_resp lap_resp;
Ben Cheng655a7c02013-10-16 16:09:24 -0700318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800319 struct ib_ucm_apr_event_resp apr_resp;
320 struct ib_ucm_sidr_req_event_resp sidr_req_resp;
321 struct ib_ucm_sidr_rep_event_resp sidr_rep_resp;
322 __u32 send_status;
Ben Cheng655a7c02013-10-16 16:09:24 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800324 } u;
Ben Cheng655a7c02013-10-16 16:09:24 -0700325};
326#endif