blob: 7719d8c97ac38b67c77989db5a81754f6df535e1 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris6a9755d2017-01-13 14:09:31 -08007#ifndef MTHCA_ABI_USER_H
8#define MTHCA_ABI_USER_H
9#include <linux/types.h>
10#define MTHCA_UVERBS_ABI_VERSION 1
Christopher Ferris6a9755d2017-01-13 14:09:31 -080011struct mthca_alloc_ucontext_resp {
12 __u32 qp_tab_size;
13 __u32 uarc_size;
14};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080015struct mthca_alloc_pd_resp {
16 __u32 pdn;
17 __u32 reserved;
18};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080019#define MTHCA_MR_DMASYNC 0x1
20struct mthca_reg_mr {
21 __u32 mr_attrs;
22 __u32 reserved;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080023};
24struct mthca_create_cq {
25 __u32 lkey;
26 __u32 pdn;
Christopher Ferris76a1d452018-06-27 14:12:29 -070027 __aligned_u64 arm_db_page;
28 __aligned_u64 set_db_page;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080029 __u32 arm_db_index;
30 __u32 set_db_index;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080031};
32struct mthca_create_cq_resp {
33 __u32 cqn;
34 __u32 reserved;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080035};
36struct mthca_resize_cq {
37 __u32 lkey;
38 __u32 reserved;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080039};
40struct mthca_create_srq {
41 __u32 lkey;
42 __u32 db_index;
Christopher Ferris76a1d452018-06-27 14:12:29 -070043 __aligned_u64 db_page;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080044};
45struct mthca_create_srq_resp {
46 __u32 srqn;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080047 __u32 reserved;
48};
49struct mthca_create_qp {
50 __u32 lkey;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080051 __u32 reserved;
Christopher Ferris76a1d452018-06-27 14:12:29 -070052 __aligned_u64 sq_db_page;
53 __aligned_u64 rq_db_page;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080054 __u32 sq_db_index;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080055 __u32 rq_db_index;
56};
57#endif