Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame^] | 1 | /* |
| 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 Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 7 | #ifndef HNS_ABI_USER_H |
| 8 | #define HNS_ABI_USER_H |
| 9 | #include <linux/types.h> |
| 10 | struct hns_roce_ib_create_cq { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 11 | __aligned_u64 buf_addr; |
| 12 | __aligned_u64 db_addr; |
Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame] | 13 | __u32 cqe_size; |
| 14 | __u32 reserved; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 15 | }; |
Christopher Ferris | 05667cd | 2021-02-16 16:01:34 -0800 | [diff] [blame] | 16 | enum hns_roce_cq_cap_flags { |
| 17 | HNS_ROCE_CQ_FLAG_RECORD_DB = 1 << 0, |
| 18 | }; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 19 | struct hns_roce_ib_create_cq_resp { |
| 20 | __aligned_u64 cqn; |
| 21 | __aligned_u64 cap_flags; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 22 | }; |
Christopher Ferris | d842e43 | 2019-03-07 10:21:59 -0800 | [diff] [blame] | 23 | struct hns_roce_ib_create_srq { |
| 24 | __aligned_u64 buf_addr; |
| 25 | __aligned_u64 db_addr; |
| 26 | __aligned_u64 que_addr; |
| 27 | }; |
| 28 | struct hns_roce_ib_create_srq_resp { |
| 29 | __u32 srqn; |
| 30 | __u32 reserved; |
| 31 | }; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 32 | struct hns_roce_ib_create_qp { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 33 | __aligned_u64 buf_addr; |
| 34 | __aligned_u64 db_addr; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 35 | __u8 log_sq_bb_count; |
| 36 | __u8 log_sq_stride; |
| 37 | __u8 sq_no_prefetch; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 38 | __u8 reserved[5]; |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 39 | __aligned_u64 sdb_addr; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 40 | }; |
Christopher Ferris | 05667cd | 2021-02-16 16:01:34 -0800 | [diff] [blame] | 41 | enum hns_roce_qp_cap_flags { |
| 42 | HNS_ROCE_QP_CAP_RQ_RECORD_DB = 1 << 0, |
| 43 | HNS_ROCE_QP_CAP_SQ_RECORD_DB = 1 << 1, |
| 44 | HNS_ROCE_QP_CAP_OWNER_DB = 1 << 2, |
Christopher Ferris | 1ed5534 | 2022-03-22 16:06:25 -0700 | [diff] [blame] | 45 | HNS_ROCE_QP_CAP_DIRECT_WQE = 1 << 5, |
Christopher Ferris | 05667cd | 2021-02-16 16:01:34 -0800 | [diff] [blame] | 46 | }; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 47 | struct hns_roce_ib_create_qp_resp { |
| 48 | __aligned_u64 cap_flags; |
Christopher Ferris | 1ed5534 | 2022-03-22 16:06:25 -0700 | [diff] [blame] | 49 | __aligned_u64 dwqe_mmap_key; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 50 | }; |
Christopher Ferris | 8b7fdc9 | 2023-02-21 13:36:32 -0800 | [diff] [blame] | 51 | enum { |
| 52 | HNS_ROCE_EXSGE_FLAGS = 1 << 0, |
Christopher Ferris | b7cef6d | 2023-05-09 19:04:15 +0000 | [diff] [blame] | 53 | HNS_ROCE_RQ_INLINE_FLAGS = 1 << 1, |
| 54 | HNS_ROCE_CQE_INLINE_FLAGS = 1 << 2, |
Christopher Ferris | 8b7fdc9 | 2023-02-21 13:36:32 -0800 | [diff] [blame] | 55 | }; |
| 56 | enum { |
| 57 | HNS_ROCE_RSP_EXSGE_FLAGS = 1 << 0, |
Christopher Ferris | b7cef6d | 2023-05-09 19:04:15 +0000 | [diff] [blame] | 58 | HNS_ROCE_RSP_RQ_INLINE_FLAGS = 1 << 1, |
| 59 | HNS_ROCE_RSP_CQE_INLINE_FLAGS = 1 << 2, |
Christopher Ferris | 8b7fdc9 | 2023-02-21 13:36:32 -0800 | [diff] [blame] | 60 | }; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 61 | struct hns_roce_ib_alloc_ucontext_resp { |
| 62 | __u32 qp_tab_size; |
Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame] | 63 | __u32 cqe_size; |
Christopher Ferris | fcc3b4f | 2021-07-01 01:30:21 +0000 | [diff] [blame] | 64 | __u32 srq_tab_size; |
| 65 | __u32 reserved; |
Christopher Ferris | 8b7fdc9 | 2023-02-21 13:36:32 -0800 | [diff] [blame] | 66 | __u32 config; |
| 67 | __u32 max_inline_data; |
| 68 | }; |
| 69 | struct hns_roce_ib_alloc_ucontext { |
| 70 | __u32 config; |
| 71 | __u32 reserved; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 72 | }; |
| 73 | struct hns_roce_ib_alloc_pd_resp { |
| 74 | __u32 pdn; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 75 | }; |
| 76 | #endif |