mthca-abi.h revision 6a9755d20a995756487bb1aafb7e954f4fd868a7
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 MTHCA_ABI_USER_H
20#define MTHCA_ABI_USER_H
21#include <linux/types.h>
22#define MTHCA_UVERBS_ABI_VERSION 1
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24struct mthca_alloc_ucontext_resp {
25  __u32 qp_tab_size;
26  __u32 uarc_size;
27};
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29struct mthca_alloc_pd_resp {
30  __u32 pdn;
31  __u32 reserved;
32};
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define MTHCA_MR_DMASYNC 0x1
35struct mthca_reg_mr {
36  __u32 mr_attrs;
37  __u32 reserved;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39};
40struct mthca_create_cq {
41  __u32 lkey;
42  __u32 pdn;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  __u64 arm_db_page;
45  __u64 set_db_page;
46  __u32 arm_db_index;
47  __u32 set_db_index;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49};
50struct mthca_create_cq_resp {
51  __u32 cqn;
52  __u32 reserved;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54};
55struct mthca_resize_cq {
56  __u32 lkey;
57  __u32 reserved;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59};
60struct mthca_create_srq {
61  __u32 lkey;
62  __u32 db_index;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64  __u64 db_page;
65};
66struct mthca_create_srq_resp {
67  __u32 srqn;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69  __u32 reserved;
70};
71struct mthca_create_qp {
72  __u32 lkey;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74  __u32 reserved;
75  __u64 sq_db_page;
76  __u64 rq_db_page;
77  __u32 sq_db_index;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79  __u32 rq_db_index;
80};
81#endif
82