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,
26 IRDMA_ALLOC_UCTX_USE_RAW_ATTR
= 1 << 0,
27 IRDMA_ALLOC_UCTX_MIN_HW_WQ_SIZE
= 1 << 1,
30 struct irdma_alloc_ucontext_req
{
34 __aligned_u64 comp_mask
;
37 struct irdma_alloc_ucontext_resp
{
40 __u32 wq_size
; /* size of the WQs (SQ+RQ) in the mmaped area */
43 __aligned_u64 feature_flags
;
44 __aligned_u64 db_mmap_key
;
45 __u32 max_hw_wq_frags
;
46 __u32 max_hw_read_sges
;
48 __u32 max_hw_rq_quanta
;
49 __u32 max_hw_wq_quanta
;
52 __u16 max_hw_sq_chunk
;
55 __aligned_u64 comp_mask
;
60 struct irdma_alloc_pd_resp
{
65 struct irdma_resize_cq_req
{
66 __aligned_u64 user_cq_buffer
;
69 struct irdma_create_cq_req
{
70 __aligned_u64 user_cq_buf
;
71 __aligned_u64 user_shadow_area
;
74 struct irdma_create_qp_req
{
75 __aligned_u64 user_wqe_bufs
;
76 __aligned_u64 user_compl_ctx
;
79 struct irdma_mem_reg_req
{
80 __u16 reg_type
; /* enum irdma_memreg_type */
86 struct irdma_modify_qp_req
{
92 struct irdma_create_cq_resp
{
97 struct irdma_create_qp_resp
{
100 __u32 actual_rq_size
;
108 struct irdma_modify_qp_resp
{
109 __aligned_u64 push_wqe_mmap_key
;
110 __aligned_u64 push_db_mmap_key
;
116 struct irdma_create_ah_resp
{
120 #endif /* IRDMA_ABI_H */