Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Christopher Ferris | b8a95e2 | 2019-10-02 18:29:20 -0700 | [diff] [blame] | 7 | #ifndef RVT_ABI_USER_H |
| 8 | #define RVT_ABI_USER_H |
| 9 | #include <linux/types.h> |
| 10 | #include <rdma/ib_user_verbs.h> |
| 11 | #ifndef RDMA_ATOMIC_UAPI |
| 12 | #define RDMA_ATOMIC_UAPI(_type,_name) struct { _type val; } _name |
| 13 | #endif |
| 14 | struct rvt_wqe_sge { |
| 15 | __aligned_u64 addr; |
| 16 | __u32 length; |
| 17 | __u32 lkey; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 18 | }; |
Christopher Ferris | b8a95e2 | 2019-10-02 18:29:20 -0700 | [diff] [blame] | 19 | struct rvt_cq_wc { |
| 20 | RDMA_ATOMIC_UAPI(__u32, head); |
| 21 | RDMA_ATOMIC_UAPI(__u32, tail); |
| 22 | struct ib_uverbs_wc uqueue[]; |
| 23 | }; |
| 24 | struct rvt_rwqe { |
| 25 | __u64 wr_id; |
| 26 | __u8 num_sge; |
| 27 | __u8 padding[7]; |
| 28 | struct rvt_wqe_sge sg_list[]; |
| 29 | }; |
| 30 | struct rvt_rwq { |
| 31 | RDMA_ATOMIC_UAPI(__u32, head); |
| 32 | RDMA_ATOMIC_UAPI(__u32, tail); |
| 33 | struct rvt_rwqe wq[]; |
| 34 | }; |
Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 35 | #endif |