0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef IRDMA_ABI_H
0010 #define IRDMA_ABI_H
0011
0012 #include <linux/types.h>
0013
0014
0015
0016
0017 #define IRDMA_ABI_VER 5
0018
0019 enum irdma_memreg_type {
0020 IRDMA_MEMREG_TYPE_MEM = 0,
0021 IRDMA_MEMREG_TYPE_QP = 1,
0022 IRDMA_MEMREG_TYPE_CQ = 2,
0023 };
0024
0025 struct irdma_alloc_ucontext_req {
0026 __u32 rsvd32;
0027 __u8 userspace_ver;
0028 __u8 rsvd8[3];
0029 };
0030
0031 struct irdma_alloc_ucontext_resp {
0032 __u32 max_pds;
0033 __u32 max_qps;
0034 __u32 wq_size;
0035 __u8 kernel_ver;
0036 __u8 rsvd[3];
0037 __aligned_u64 feature_flags;
0038 __aligned_u64 db_mmap_key;
0039 __u32 max_hw_wq_frags;
0040 __u32 max_hw_read_sges;
0041 __u32 max_hw_inline;
0042 __u32 max_hw_rq_quanta;
0043 __u32 max_hw_wq_quanta;
0044 __u32 min_hw_cq_size;
0045 __u32 max_hw_cq_size;
0046 __u16 max_hw_sq_chunk;
0047 __u8 hw_rev;
0048 __u8 rsvd2;
0049 };
0050
0051 struct irdma_alloc_pd_resp {
0052 __u32 pd_id;
0053 __u8 rsvd[4];
0054 };
0055
0056 struct irdma_resize_cq_req {
0057 __aligned_u64 user_cq_buffer;
0058 };
0059
0060 struct irdma_create_cq_req {
0061 __aligned_u64 user_cq_buf;
0062 __aligned_u64 user_shadow_area;
0063 };
0064
0065 struct irdma_create_qp_req {
0066 __aligned_u64 user_wqe_bufs;
0067 __aligned_u64 user_compl_ctx;
0068 };
0069
0070 struct irdma_mem_reg_req {
0071 __u16 reg_type;
0072 __u16 cq_pages;
0073 __u16 rq_pages;
0074 __u16 sq_pages;
0075 };
0076
0077 struct irdma_modify_qp_req {
0078 __u8 sq_flush;
0079 __u8 rq_flush;
0080 __u8 rsvd[6];
0081 };
0082
0083 struct irdma_create_cq_resp {
0084 __u32 cq_id;
0085 __u32 cq_size;
0086 };
0087
0088 struct irdma_create_qp_resp {
0089 __u32 qp_id;
0090 __u32 actual_sq_size;
0091 __u32 actual_rq_size;
0092 __u32 irdma_drv_opt;
0093 __u16 push_idx;
0094 __u8 lsmm;
0095 __u8 rsvd;
0096 __u32 qp_caps;
0097 };
0098
0099 struct irdma_modify_qp_resp {
0100 __aligned_u64 push_wqe_mmap_key;
0101 __aligned_u64 push_db_mmap_key;
0102 __u16 push_offset;
0103 __u8 push_valid;
0104 __u8 rsvd[5];
0105 };
0106
0107 struct irdma_create_ah_resp {
0108 __u32 ah_id;
0109 __u8 rsvd[4];
0110 };
0111 #endif