/* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) OR Linux-OpenIB */
* Copyright (c) 2006 - 2021 Intel Corporation. All rights reserved.
* Copyright (c) 2005 Topspin Communications. All rights reserved.
* Copyright (c) 2005 Cisco Systems. All rights reserved.
* Copyright (c) 2005 Open Grid Computing, Inc. All rights reserved.
/* irdma must support legacy GEN_1 i40iw kernel
* and user-space whose last ABI ver is 5
IRDMA_MEMREG_TYPE_MEM = 0,
IRDMA_MEMREG_TYPE_QP = 1,
IRDMA_MEMREG_TYPE_CQ = 2,
struct irdma_alloc_ucontext_req {
struct irdma_alloc_ucontext_resp {
__u32 wq_size; /* size of the WQs (SQ+RQ) in the mmaped area */
__aligned_u64 feature_flags;
__aligned_u64 db_mmap_key;
struct irdma_alloc_pd_resp {
struct irdma_resize_cq_req {
__aligned_u64 user_cq_buffer;
struct irdma_create_cq_req {
__aligned_u64 user_cq_buf;
__aligned_u64 user_shadow_area;
struct irdma_create_qp_req {
__aligned_u64 user_wqe_bufs;
__aligned_u64 user_compl_ctx;
struct irdma_mem_reg_req {
__u16 reg_type; /* enum irdma_memreg_type */
struct irdma_modify_qp_req {
struct irdma_create_cq_resp {
struct irdma_create_qp_resp {
struct irdma_modify_qp_resp {
__aligned_u64 push_wqe_mmap_key;
__aligned_u64 push_db_mmap_key;
struct irdma_create_ah_resp {