summaryrefslogtreecommitdiff
path: root/mainline/runtime/sdk/android/arm/include/bionic/libc/kernel/uapi/rdma/rvt-abi.h
blob: 13c7a6e95beebfa96f8685558162ff27f7083488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * This file is auto-generated. Modifications will be lost.
 *
 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
 * for more information.
 */
#ifndef RVT_ABI_USER_H
#define RVT_ABI_USER_H
#include <linux/types.h>
#include <rdma/ib_user_verbs.h>
#ifndef RDMA_ATOMIC_UAPI
#define RDMA_ATOMIC_UAPI(_type,_name) struct { _type val; } _name
#endif
struct rvt_wqe_sge {
  __aligned_u64 addr;
  __u32 length;
  __u32 lkey;
};
struct rvt_cq_wc {
  RDMA_ATOMIC_UAPI(__u32, head);
  RDMA_ATOMIC_UAPI(__u32, tail);
  struct ib_uverbs_wc uqueue[];
};
struct rvt_rwqe {
  __u64 wr_id;
  __u8 num_sge;
  __u8 padding[7];
  struct rvt_wqe_sge sg_list[];
};
struct rvt_rwq {
  RDMA_ATOMIC_UAPI(__u32, head);
  RDMA_ATOMIC_UAPI(__u32, tail);
  struct rvt_rwqe wq[];
};
#endif