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 | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 7 | #ifndef MTHCA_ABI_USER_H |
| 8 | #define MTHCA_ABI_USER_H |
| 9 | #include <linux/types.h> |
| 10 | #define MTHCA_UVERBS_ABI_VERSION 1 |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 11 | struct mthca_alloc_ucontext_resp { |
| 12 | __u32 qp_tab_size; |
| 13 | __u32 uarc_size; |
| 14 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 15 | struct mthca_alloc_pd_resp { |
| 16 | __u32 pdn; |
| 17 | __u32 reserved; |
| 18 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 19 | #define MTHCA_MR_DMASYNC 0x1 |
| 20 | struct mthca_reg_mr { |
| 21 | __u32 mr_attrs; |
| 22 | __u32 reserved; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 23 | }; |
| 24 | struct mthca_create_cq { |
| 25 | __u32 lkey; |
| 26 | __u32 pdn; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 27 | __aligned_u64 arm_db_page; |
| 28 | __aligned_u64 set_db_page; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 29 | __u32 arm_db_index; |
| 30 | __u32 set_db_index; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 31 | }; |
| 32 | struct mthca_create_cq_resp { |
| 33 | __u32 cqn; |
| 34 | __u32 reserved; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 35 | }; |
| 36 | struct mthca_resize_cq { |
| 37 | __u32 lkey; |
| 38 | __u32 reserved; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 39 | }; |
| 40 | struct mthca_create_srq { |
| 41 | __u32 lkey; |
| 42 | __u32 db_index; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 43 | __aligned_u64 db_page; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 44 | }; |
| 45 | struct mthca_create_srq_resp { |
| 46 | __u32 srqn; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 47 | __u32 reserved; |
| 48 | }; |
| 49 | struct mthca_create_qp { |
| 50 | __u32 lkey; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 51 | __u32 reserved; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 52 | __aligned_u64 sq_db_page; |
| 53 | __aligned_u64 rq_db_page; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 54 | __u32 sq_db_index; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 55 | __u32 rq_db_index; |
| 56 | }; |
| 57 | #endif |