1 /* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) OR Linux-OpenIB */
3 * Copyright (c) 2006 - 2021 Intel Corporation. All rights reserved.
4 * Copyright (c) 2005 Topspin Communications. All rights reserved.
5 * Copyright (c) 2005 Cisco Systems. All rights reserved.
6 * Copyright (c) 2005 Open Grid Computing, Inc. All rights reserved.
12 #include <linux/types.h>
14 /* irdma must support legacy GEN_1 i40iw kernel
15 * and user-space whose last ABI ver is 5
17 #define IRDMA_ABI_VER 5
19 enum irdma_memreg_type {
20 IRDMA_MEMREG_TYPE_MEM = 0,
21 IRDMA_MEMREG_TYPE_QP = 1,
22 IRDMA_MEMREG_TYPE_CQ = 2,
25 struct irdma_alloc_ucontext_req {
31 struct irdma_alloc_ucontext_resp {
34 __u32 wq_size; /* size of the WQs (SQ+RQ) in the mmaped area */
37 __aligned_u64 feature_flags;
38 __aligned_u64 db_mmap_key;
39 __u32 max_hw_wq_frags;
40 __u32 max_hw_read_sges;
42 __u32 max_hw_rq_quanta;
43 __u32 max_hw_wq_quanta;
46 __u16 max_hw_sq_chunk;
51 struct irdma_alloc_pd_resp {
56 struct irdma_resize_cq_req {
57 __aligned_u64 user_cq_buffer;
60 struct irdma_create_cq_req {
61 __aligned_u64 user_cq_buf;
62 __aligned_u64 user_shadow_area;
65 struct irdma_create_qp_req {
66 __aligned_u64 user_wqe_bufs;
67 __aligned_u64 user_compl_ctx;
70 struct irdma_mem_reg_req {
71 __u16 reg_type; /* enum irdma_memreg_type */
77 struct irdma_modify_qp_req {
83 struct irdma_create_cq_resp {
88 struct irdma_create_qp_resp {
99 struct irdma_modify_qp_resp {
100 __aligned_u64 push_wqe_mmap_key;
101 __aligned_u64 push_db_mmap_key;
107 struct irdma_create_ah_resp {
111 #endif /* IRDMA_ABI_H */