• 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 MANA_ABI_USER_H
20 #define MANA_ABI_USER_H
21 #include <linux/types.h>
22 #include <rdma/ib_user_ioctl_verbs.h>
23 #define MANA_IB_UVERBS_ABI_VERSION 1
24 struct mana_ib_create_cq {
25   __aligned_u64 buf_addr;
26 };
27 struct mana_ib_create_qp {
28   __aligned_u64 sq_buf_addr;
29   __u32 sq_buf_size;
30   __u32 port;
31 };
32 struct mana_ib_create_qp_resp {
33   __u32 sqid;
34   __u32 cqid;
35   __u32 tx_vp_offset;
36   __u32 reserved;
37 };
38 struct mana_ib_create_wq {
39   __aligned_u64 wq_buf_addr;
40   __u32 wq_buf_size;
41   __u32 reserved;
42 };
43 enum mana_ib_rx_hash_function_flags {
44   MANA_IB_RX_HASH_FUNC_TOEPLITZ = 1 << 0,
45 };
46 struct mana_ib_create_qp_rss {
47   __aligned_u64 rx_hash_fields_mask;
48   __u8 rx_hash_function;
49   __u8 reserved[7];
50   __u32 rx_hash_key_len;
51   __u8 rx_hash_key[40];
52   __u32 port;
53 };
54 struct rss_resp_entry {
55   __u32 cqid;
56   __u32 wqid;
57 };
58 struct mana_ib_create_qp_rss_resp {
59   __aligned_u64 num_entries;
60   struct rss_resp_entry entries[64];
61 };
62 #endif
63