• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 EFA_ABI_USER_H
20 #define EFA_ABI_USER_H
21 #include <linux/types.h>
22 #define EFA_UVERBS_ABI_VERSION 1
23 enum efa_ibv_user_cmds_supp_udata {
24   EFA_USER_CMDS_SUPP_UDATA_QUERY_DEVICE = 1 << 0,
25   EFA_USER_CMDS_SUPP_UDATA_CREATE_AH = 1 << 1,
26 };
27 struct efa_ibv_alloc_ucontext_resp {
28   __u32 comp_mask;
29   __u32 cmds_supp_udata_mask;
30   __u16 sub_cqs_per_cq;
31   __u16 inline_buf_size;
32   __u32 max_llq_size;
33 };
34 struct efa_ibv_alloc_pd_resp {
35   __u32 comp_mask;
36   __u16 pdn;
37   __u8 reserved_30[2];
38 };
39 struct efa_ibv_create_cq {
40   __u32 comp_mask;
41   __u32 cq_entry_size;
42   __u16 num_sub_cqs;
43   __u8 reserved_50[6];
44 };
45 struct efa_ibv_create_cq_resp {
46   __u32 comp_mask;
47   __u8 reserved_20[4];
48   __aligned_u64 q_mmap_key;
49   __aligned_u64 q_mmap_size;
50   __u16 cq_idx;
51   __u8 reserved_d0[6];
52 };
53 enum {
54   EFA_QP_DRIVER_TYPE_SRD = 0,
55 };
56 struct efa_ibv_create_qp {
57   __u32 comp_mask;
58   __u32 rq_ring_size;
59   __u32 sq_ring_size;
60   __u32 driver_qp_type;
61 };
62 struct efa_ibv_create_qp_resp {
63   __u32 comp_mask;
64   __u32 rq_db_offset;
65   __u32 sq_db_offset;
66   __u32 llq_desc_offset;
67   __aligned_u64 rq_mmap_key;
68   __aligned_u64 rq_mmap_size;
69   __aligned_u64 rq_db_mmap_key;
70   __aligned_u64 sq_db_mmap_key;
71   __aligned_u64 llq_desc_mmap_key;
72   __u16 send_sub_cq_idx;
73   __u16 recv_sub_cq_idx;
74   __u8 reserved_1e0[4];
75 };
76 struct efa_ibv_create_ah_resp {
77   __u32 comp_mask;
78   __u16 efa_address_handle;
79   __u8 reserved_30[2];
80 };
81 enum {
82   EFA_QUERY_DEVICE_CAPS_RDMA_READ = 1 << 0,
83 };
84 struct efa_ibv_ex_query_device_resp {
85   __u32 comp_mask;
86   __u32 max_sq_wr;
87   __u32 max_rq_wr;
88   __u16 max_sq_sge;
89   __u16 max_rq_sge;
90   __u32 max_rdma_size;
91   __u32 device_caps;
92 };
93 #endif
94