blob: 86224f2c0ca781bccb7a6e9bff8f40550495188b [file] [log] [blame]
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001/****************************************************************************
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 MTHCA_ABI_USER_H
20#define MTHCA_ABI_USER_H
21#include <linux/types.h>
22#define MTHCA_UVERBS_ABI_VERSION 1
Christopher Ferris6a9755d2017-01-13 14:09:31 -080023struct mthca_alloc_ucontext_resp {
24 __u32 qp_tab_size;
25 __u32 uarc_size;
26};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080027struct mthca_alloc_pd_resp {
28 __u32 pdn;
29 __u32 reserved;
30};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080031#define MTHCA_MR_DMASYNC 0x1
32struct mthca_reg_mr {
33 __u32 mr_attrs;
34 __u32 reserved;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080035};
36struct mthca_create_cq {
37 __u32 lkey;
38 __u32 pdn;
Christopher Ferris76a1d452018-06-27 14:12:29 -070039 __aligned_u64 arm_db_page;
40 __aligned_u64 set_db_page;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080041 __u32 arm_db_index;
42 __u32 set_db_index;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080043};
44struct mthca_create_cq_resp {
45 __u32 cqn;
46 __u32 reserved;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080047};
48struct mthca_resize_cq {
49 __u32 lkey;
50 __u32 reserved;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080051};
52struct mthca_create_srq {
53 __u32 lkey;
54 __u32 db_index;
Christopher Ferris76a1d452018-06-27 14:12:29 -070055 __aligned_u64 db_page;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080056};
57struct mthca_create_srq_resp {
58 __u32 srqn;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080059 __u32 reserved;
60};
61struct mthca_create_qp {
62 __u32 lkey;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080063 __u32 reserved;
Christopher Ferris76a1d452018-06-27 14:12:29 -070064 __aligned_u64 sq_db_page;
65 __aligned_u64 rq_db_page;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080066 __u32 sq_db_index;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080067 __u32 rq_db_index;
68};
69#endif