blob: 13c7a6e95beebfa96f8685558162ff27f7083488 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 Ferrisb8a95e22019-10-02 18:29:20 -07007#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
14struct rvt_wqe_sge {
15 __aligned_u64 addr;
16 __u32 length;
17 __u32 lkey;
Ben Cheng655a7c02013-10-16 16:09:24 -070018};
Christopher Ferrisb8a95e22019-10-02 18:29:20 -070019struct rvt_cq_wc {
20 RDMA_ATOMIC_UAPI(__u32, head);
21 RDMA_ATOMIC_UAPI(__u32, tail);
22 struct ib_uverbs_wc uqueue[];
23};
24struct rvt_rwqe {
25 __u64 wr_id;
26 __u8 num_sge;
27 __u8 padding[7];
28 struct rvt_wqe_sge sg_list[];
29};
30struct rvt_rwq {
31 RDMA_ATOMIC_UAPI(__u32, head);
32 RDMA_ATOMIC_UAPI(__u32, tail);
33 struct rvt_rwqe wq[];
34};
Nick Kralevicha67e4de2013-01-14 11:28:26 -080035#endif