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 */ 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; 18 }; 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 }; 35 #endif 36