forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com>
- Loading branch information
1 parent
766cdaf
commit f48b430
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR Linux-OpenIB) */ | ||
/* | ||
* Copyright (c) 2020-2022, Alibaba Group. | ||
*/ | ||
|
||
#ifndef __ERDMA_USER_H__ | ||
#define __ERDMA_USER_H__ | ||
|
||
#include <linux/types.h> | ||
|
||
#define ERDMA_ABI_VERSION 1 | ||
|
||
struct erdma_ureq_create_cq { | ||
__u64 db_record_va; | ||
__u64 qbuf_va; | ||
__u32 qbuf_len; | ||
__u32 rsvd0; | ||
}; | ||
|
||
struct erdma_uresp_create_cq { | ||
__u32 cq_id; | ||
__u32 num_cqe; | ||
}; | ||
|
||
struct erdma_ureq_create_qp { | ||
__u64 db_record_va; | ||
__u64 qbuf_va; | ||
__u32 qbuf_len; | ||
__u32 rsvd0; | ||
}; | ||
|
||
struct erdma_uresp_create_qp { | ||
__u32 qp_id; | ||
__u32 num_sqe; | ||
__u32 num_rqe; | ||
__u32 rq_offset; | ||
}; | ||
|
||
struct erdma_uresp_alloc_ctx { | ||
__u32 dev_id; | ||
__u32 pad; | ||
__u32 sdb_type; | ||
__u32 sdb_offset; | ||
__u64 sdb; | ||
__u64 rdb; | ||
__u64 cdb; | ||
}; | ||
|
||
#endif |