brintos

brintos / linux-shallow public Read only

0
0
Text · 811 B · b7a0222 Raw
50 lines · c
1/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */2/*3 * Copyright (c) 2020-2022, Alibaba Group.4 */5 6#ifndef __ERDMA_USER_H__7#define __ERDMA_USER_H__8 9#include <linux/types.h>10 11#define ERDMA_ABI_VERSION       112 13struct erdma_ureq_create_cq {14	__aligned_u64 db_record_va;15	__aligned_u64 qbuf_va;16	__u32 qbuf_len;17	__u32 rsvd0;18};19 20struct erdma_uresp_create_cq {21	__u32 cq_id;22	__u32 num_cqe;23};24 25struct erdma_ureq_create_qp {26	__aligned_u64 db_record_va;27	__aligned_u64 qbuf_va;28	__u32 qbuf_len;29	__u32 rsvd0;30};31 32struct erdma_uresp_create_qp {33	__u32 qp_id;34	__u32 num_sqe;35	__u32 num_rqe;36	__u32 rq_offset;37};38 39struct erdma_uresp_alloc_ctx {40	__u32 dev_id;41	__u32 pad;42	__u32 sdb_type;43	__u32 sdb_offset;44	__aligned_u64 sdb;45	__aligned_u64 rdb;46	__aligned_u64 cdb;47};48 49#endif50