blob: 49632ee65f9191063cde656e1b6ca2ff37e52668 [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -08001/****************************************************************************
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 ****************************************************************************/
Christopher Ferrisb8a95e22019-10-02 18:29:20 -070019#ifndef RVT_ABI_USER_H
20#define RVT_ABI_USER_H
21#include <linux/types.h>
22#include <rdma/ib_user_verbs.h>
23#ifndef RDMA_ATOMIC_UAPI
24#define RDMA_ATOMIC_UAPI(_type,_name) struct { _type val; } _name
25#endif
26struct rvt_wqe_sge {
27 __aligned_u64 addr;
28 __u32 length;
29 __u32 lkey;
Ben Cheng655a7c02013-10-16 16:09:24 -070030};
Christopher Ferrisb8a95e22019-10-02 18:29:20 -070031struct rvt_cq_wc {
32 RDMA_ATOMIC_UAPI(__u32, head);
33 RDMA_ATOMIC_UAPI(__u32, tail);
34 struct ib_uverbs_wc uqueue[];
35};
36struct rvt_rwqe {
37 __u64 wr_id;
38 __u8 num_sge;
39 __u8 padding[7];
40 struct rvt_wqe_sge sg_list[];
41};
42struct rvt_rwq {
43 RDMA_ATOMIC_UAPI(__u32, head);
44 RDMA_ATOMIC_UAPI(__u32, tail);
45 struct rvt_rwqe wq[];
46};
Nick Kralevicha67e4de2013-01-14 11:28:26 -080047#endif