| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 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 | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 23 | struct mthca_alloc_ucontext_resp { | 
|  | 24 | __u32 qp_tab_size; | 
|  | 25 | __u32 uarc_size; | 
|  | 26 | }; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 27 | struct mthca_alloc_pd_resp { | 
|  | 28 | __u32 pdn; | 
|  | 29 | __u32 reserved; | 
|  | 30 | }; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 31 | #define MTHCA_MR_DMASYNC 0x1 | 
|  | 32 | struct mthca_reg_mr { | 
|  | 33 | __u32 mr_attrs; | 
|  | 34 | __u32 reserved; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 35 | }; | 
|  | 36 | struct mthca_create_cq { | 
|  | 37 | __u32 lkey; | 
|  | 38 | __u32 pdn; | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 39 | __aligned_u64 arm_db_page; | 
|  | 40 | __aligned_u64 set_db_page; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 41 | __u32 arm_db_index; | 
|  | 42 | __u32 set_db_index; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 43 | }; | 
|  | 44 | struct mthca_create_cq_resp { | 
|  | 45 | __u32 cqn; | 
|  | 46 | __u32 reserved; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 47 | }; | 
|  | 48 | struct mthca_resize_cq { | 
|  | 49 | __u32 lkey; | 
|  | 50 | __u32 reserved; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 51 | }; | 
|  | 52 | struct mthca_create_srq { | 
|  | 53 | __u32 lkey; | 
|  | 54 | __u32 db_index; | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 55 | __aligned_u64 db_page; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 56 | }; | 
|  | 57 | struct mthca_create_srq_resp { | 
|  | 58 | __u32 srqn; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 59 | __u32 reserved; | 
|  | 60 | }; | 
|  | 61 | struct mthca_create_qp { | 
|  | 62 | __u32 lkey; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 63 | __u32 reserved; | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 64 | __aligned_u64 sq_db_page; | 
|  | 65 | __aligned_u64 rq_db_page; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 66 | __u32 sq_db_index; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 67 | __u32 rq_db_index; | 
|  | 68 | }; | 
|  | 69 | #endif |