xref: /aosp_15_r20/prebuilts/build-tools/sysroots/i686-unknown-linux-musl/include/rdma/mana-abi.h (revision cda5da8d549138a6648c5ee6d7a49cf8f4a657be)
1*cda5da8dSAndroid Build Coastguard Worker /*
2*cda5da8dSAndroid Build Coastguard Worker  * This file is auto-generated. Modifications will be lost.
3*cda5da8dSAndroid Build Coastguard Worker  *
4*cda5da8dSAndroid Build Coastguard Worker  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5*cda5da8dSAndroid Build Coastguard Worker  * for more information.
6*cda5da8dSAndroid Build Coastguard Worker  */
7*cda5da8dSAndroid Build Coastguard Worker #ifndef MANA_ABI_USER_H
8*cda5da8dSAndroid Build Coastguard Worker #define MANA_ABI_USER_H
9*cda5da8dSAndroid Build Coastguard Worker #include <linux/types.h>
10*cda5da8dSAndroid Build Coastguard Worker #include <rdma/ib_user_ioctl_verbs.h>
11*cda5da8dSAndroid Build Coastguard Worker #define MANA_IB_UVERBS_ABI_VERSION 1
12*cda5da8dSAndroid Build Coastguard Worker enum mana_ib_create_cq_flags {
13*cda5da8dSAndroid Build Coastguard Worker   MANA_IB_CREATE_RNIC_CQ = 1 << 0,
14*cda5da8dSAndroid Build Coastguard Worker };
15*cda5da8dSAndroid Build Coastguard Worker struct mana_ib_create_cq {
16*cda5da8dSAndroid Build Coastguard Worker   __aligned_u64 buf_addr;
17*cda5da8dSAndroid Build Coastguard Worker   __u16 flags;
18*cda5da8dSAndroid Build Coastguard Worker   __u16 reserved0;
19*cda5da8dSAndroid Build Coastguard Worker   __u32 reserved1;
20*cda5da8dSAndroid Build Coastguard Worker };
21*cda5da8dSAndroid Build Coastguard Worker struct mana_ib_create_cq_resp {
22*cda5da8dSAndroid Build Coastguard Worker   __u32 cqid;
23*cda5da8dSAndroid Build Coastguard Worker   __u32 reserved;
24*cda5da8dSAndroid Build Coastguard Worker };
25*cda5da8dSAndroid Build Coastguard Worker struct mana_ib_create_qp {
26*cda5da8dSAndroid Build Coastguard Worker   __aligned_u64 sq_buf_addr;
27*cda5da8dSAndroid Build Coastguard Worker   __u32 sq_buf_size;
28*cda5da8dSAndroid Build Coastguard Worker   __u32 port;
29*cda5da8dSAndroid Build Coastguard Worker };
30*cda5da8dSAndroid Build Coastguard Worker struct mana_ib_create_qp_resp {
31*cda5da8dSAndroid Build Coastguard Worker   __u32 sqid;
32*cda5da8dSAndroid Build Coastguard Worker   __u32 cqid;
33*cda5da8dSAndroid Build Coastguard Worker   __u32 tx_vp_offset;
34*cda5da8dSAndroid Build Coastguard Worker   __u32 reserved;
35*cda5da8dSAndroid Build Coastguard Worker };
36*cda5da8dSAndroid Build Coastguard Worker struct mana_ib_create_rc_qp {
37*cda5da8dSAndroid Build Coastguard Worker   __aligned_u64 queue_buf[4];
38*cda5da8dSAndroid Build Coastguard Worker   __u32 queue_size[4];
39*cda5da8dSAndroid Build Coastguard Worker };
40*cda5da8dSAndroid Build Coastguard Worker struct mana_ib_create_rc_qp_resp {
41*cda5da8dSAndroid Build Coastguard Worker   __u32 queue_id[4];
42*cda5da8dSAndroid Build Coastguard Worker };
43*cda5da8dSAndroid Build Coastguard Worker struct mana_ib_create_wq {
44*cda5da8dSAndroid Build Coastguard Worker   __aligned_u64 wq_buf_addr;
45*cda5da8dSAndroid Build Coastguard Worker   __u32 wq_buf_size;
46*cda5da8dSAndroid Build Coastguard Worker   __u32 reserved;
47*cda5da8dSAndroid Build Coastguard Worker };
48*cda5da8dSAndroid Build Coastguard Worker enum mana_ib_rx_hash_function_flags {
49*cda5da8dSAndroid Build Coastguard Worker   MANA_IB_RX_HASH_FUNC_TOEPLITZ = 1 << 0,
50*cda5da8dSAndroid Build Coastguard Worker };
51*cda5da8dSAndroid Build Coastguard Worker struct mana_ib_create_qp_rss {
52*cda5da8dSAndroid Build Coastguard Worker   __aligned_u64 rx_hash_fields_mask;
53*cda5da8dSAndroid Build Coastguard Worker   __u8 rx_hash_function;
54*cda5da8dSAndroid Build Coastguard Worker   __u8 reserved[7];
55*cda5da8dSAndroid Build Coastguard Worker   __u32 rx_hash_key_len;
56*cda5da8dSAndroid Build Coastguard Worker   __u8 rx_hash_key[40];
57*cda5da8dSAndroid Build Coastguard Worker   __u32 port;
58*cda5da8dSAndroid Build Coastguard Worker };
59*cda5da8dSAndroid Build Coastguard Worker struct rss_resp_entry {
60*cda5da8dSAndroid Build Coastguard Worker   __u32 cqid;
61*cda5da8dSAndroid Build Coastguard Worker   __u32 wqid;
62*cda5da8dSAndroid Build Coastguard Worker };
63*cda5da8dSAndroid Build Coastguard Worker struct mana_ib_create_qp_rss_resp {
64*cda5da8dSAndroid Build Coastguard Worker   __aligned_u64 num_entries;
65*cda5da8dSAndroid Build Coastguard Worker   struct rss_resp_entry entries[64];
66*cda5da8dSAndroid Build Coastguard Worker };
67*cda5da8dSAndroid Build Coastguard Worker #endif
68