blob: f9effb33524f7675c2e52f952a236f8b921a1336 [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 Ferris48af7cb2017-02-21 12:35:09 -08007#ifndef HNS_ABI_USER_H
8#define HNS_ABI_USER_H
9#include <linux/types.h>
10struct hns_roce_ib_create_cq {
Christopher Ferris76a1d452018-06-27 14:12:29 -070011 __aligned_u64 buf_addr;
12 __aligned_u64 db_addr;
Christopher Ferris32ff3f82020-12-14 13:10:04 -080013 __u32 cqe_size;
14 __u32 reserved;
Christopher Ferris76a1d452018-06-27 14:12:29 -070015};
Christopher Ferris05667cd2021-02-16 16:01:34 -080016enum hns_roce_cq_cap_flags {
17 HNS_ROCE_CQ_FLAG_RECORD_DB = 1 << 0,
18};
Christopher Ferris76a1d452018-06-27 14:12:29 -070019struct hns_roce_ib_create_cq_resp {
20 __aligned_u64 cqn;
21 __aligned_u64 cap_flags;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080022};
Christopher Ferris0f795212024-01-17 14:17:28 -080023enum hns_roce_srq_cap_flags {
24 HNS_ROCE_SRQ_CAP_RECORD_DB = 1 << 0,
25};
26enum hns_roce_srq_cap_flags_resp {
27 HNS_ROCE_RSP_SRQ_CAP_RECORD_DB = 1 << 0,
28};
Christopher Ferrisd842e432019-03-07 10:21:59 -080029struct hns_roce_ib_create_srq {
30 __aligned_u64 buf_addr;
31 __aligned_u64 db_addr;
32 __aligned_u64 que_addr;
Christopher Ferris0f795212024-01-17 14:17:28 -080033 __u32 req_cap_flags;
34 __u32 reserved;
Christopher Ferrisd842e432019-03-07 10:21:59 -080035};
36struct hns_roce_ib_create_srq_resp {
37 __u32 srqn;
Christopher Ferris0f795212024-01-17 14:17:28 -080038 __u32 cap_flags;
Christopher Ferrisd842e432019-03-07 10:21:59 -080039};
Christopher Ferris48af7cb2017-02-21 12:35:09 -080040struct hns_roce_ib_create_qp {
Christopher Ferris76a1d452018-06-27 14:12:29 -070041 __aligned_u64 buf_addr;
42 __aligned_u64 db_addr;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080043 __u8 log_sq_bb_count;
44 __u8 log_sq_stride;
45 __u8 sq_no_prefetch;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080046 __u8 reserved[5];
Christopher Ferris9ce28842018-10-25 12:11:39 -070047 __aligned_u64 sdb_addr;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080048};
Christopher Ferris05667cd2021-02-16 16:01:34 -080049enum hns_roce_qp_cap_flags {
50 HNS_ROCE_QP_CAP_RQ_RECORD_DB = 1 << 0,
51 HNS_ROCE_QP_CAP_SQ_RECORD_DB = 1 << 1,
52 HNS_ROCE_QP_CAP_OWNER_DB = 1 << 2,
Christopher Ferris1ed55342022-03-22 16:06:25 -070053 HNS_ROCE_QP_CAP_DIRECT_WQE = 1 << 5,
Christopher Ferris05667cd2021-02-16 16:01:34 -080054};
Christopher Ferris76a1d452018-06-27 14:12:29 -070055struct hns_roce_ib_create_qp_resp {
56 __aligned_u64 cap_flags;
Christopher Ferris1ed55342022-03-22 16:06:25 -070057 __aligned_u64 dwqe_mmap_key;
Christopher Ferris76a1d452018-06-27 14:12:29 -070058};
Christopher Ferris8b7fdc92023-02-21 13:36:32 -080059enum {
60 HNS_ROCE_EXSGE_FLAGS = 1 << 0,
Christopher Ferrisb7cef6d2023-05-09 19:04:15 +000061 HNS_ROCE_RQ_INLINE_FLAGS = 1 << 1,
62 HNS_ROCE_CQE_INLINE_FLAGS = 1 << 2,
Christopher Ferris8b7fdc92023-02-21 13:36:32 -080063};
64enum {
65 HNS_ROCE_RSP_EXSGE_FLAGS = 1 << 0,
Christopher Ferrisb7cef6d2023-05-09 19:04:15 +000066 HNS_ROCE_RSP_RQ_INLINE_FLAGS = 1 << 1,
67 HNS_ROCE_RSP_CQE_INLINE_FLAGS = 1 << 2,
Christopher Ferris8b7fdc92023-02-21 13:36:32 -080068};
Christopher Ferris48af7cb2017-02-21 12:35:09 -080069struct hns_roce_ib_alloc_ucontext_resp {
70 __u32 qp_tab_size;
Christopher Ferris32ff3f82020-12-14 13:10:04 -080071 __u32 cqe_size;
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +000072 __u32 srq_tab_size;
73 __u32 reserved;
Christopher Ferris8b7fdc92023-02-21 13:36:32 -080074 __u32 config;
75 __u32 max_inline_data;
76};
77struct hns_roce_ib_alloc_ucontext {
78 __u32 config;
79 __u32 reserved;
Christopher Ferris76a1d452018-06-27 14:12:29 -070080};
81struct hns_roce_ib_alloc_pd_resp {
82 __u32 pdn;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080083};
84#endif