162306a36Sopenharmony_ci/* 262306a36Sopenharmony_ci * Broadcom NetXtreme-E RoCE driver. 362306a36Sopenharmony_ci * 462306a36Sopenharmony_ci * Copyright (c) 2016 - 2017, Broadcom. All rights reserved. The term 562306a36Sopenharmony_ci * Broadcom refers to Broadcom Limited and/or its subsidiaries. 662306a36Sopenharmony_ci * 762306a36Sopenharmony_ci * This software is available to you under a choice of one of two 862306a36Sopenharmony_ci * licenses. You may choose to be licensed under the terms of the GNU 962306a36Sopenharmony_ci * General Public License (GPL) Version 2, available from the file 1062306a36Sopenharmony_ci * COPYING in the main directory of this source tree, or the 1162306a36Sopenharmony_ci * BSD license below: 1262306a36Sopenharmony_ci * 1362306a36Sopenharmony_ci * Redistribution and use in source and binary forms, with or without 1462306a36Sopenharmony_ci * modification, are permitted provided that the following conditions 1562306a36Sopenharmony_ci * are met: 1662306a36Sopenharmony_ci * 1762306a36Sopenharmony_ci * 1. Redistributions of source code must retain the above copyright 1862306a36Sopenharmony_ci * notice, this list of conditions and the following disclaimer. 1962306a36Sopenharmony_ci * 2. Redistributions in binary form must reproduce the above copyright 2062306a36Sopenharmony_ci * notice, this list of conditions and the following disclaimer in 2162306a36Sopenharmony_ci * the documentation and/or other materials provided with the 2262306a36Sopenharmony_ci * distribution. 2362306a36Sopenharmony_ci * 2462306a36Sopenharmony_ci * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' 2562306a36Sopenharmony_ci * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 2662306a36Sopenharmony_ci * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 2762306a36Sopenharmony_ci * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS 2862306a36Sopenharmony_ci * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2962306a36Sopenharmony_ci * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 3062306a36Sopenharmony_ci * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 3162306a36Sopenharmony_ci * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 3262306a36Sopenharmony_ci * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 3362306a36Sopenharmony_ci * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 3462306a36Sopenharmony_ci * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3562306a36Sopenharmony_ci * 3662306a36Sopenharmony_ci * Description: Slow Path Operators (header) 3762306a36Sopenharmony_ci * 3862306a36Sopenharmony_ci */ 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci#ifndef __BNXT_QPLIB_SP_H__ 4162306a36Sopenharmony_ci#define __BNXT_QPLIB_SP_H__ 4262306a36Sopenharmony_ci 4362306a36Sopenharmony_ci#define BNXT_QPLIB_RESERVED_QP_WRS 128 4462306a36Sopenharmony_ci 4562306a36Sopenharmony_cistruct bnxt_qplib_dev_attr { 4662306a36Sopenharmony_ci#define FW_VER_ARR_LEN 4 4762306a36Sopenharmony_ci u8 fw_ver[FW_VER_ARR_LEN]; 4862306a36Sopenharmony_ci#define BNXT_QPLIB_NUM_GIDS_SUPPORTED 256 4962306a36Sopenharmony_ci u16 max_sgid; 5062306a36Sopenharmony_ci u16 max_mrw; 5162306a36Sopenharmony_ci u32 max_qp; 5262306a36Sopenharmony_ci#define BNXT_QPLIB_MAX_OUT_RD_ATOM 126 5362306a36Sopenharmony_ci u32 max_qp_rd_atom; 5462306a36Sopenharmony_ci u32 max_qp_init_rd_atom; 5562306a36Sopenharmony_ci u32 max_qp_wqes; 5662306a36Sopenharmony_ci u32 max_qp_sges; 5762306a36Sopenharmony_ci u32 max_cq; 5862306a36Sopenharmony_ci u32 max_cq_wqes; 5962306a36Sopenharmony_ci u32 max_cq_sges; 6062306a36Sopenharmony_ci u32 max_mr; 6162306a36Sopenharmony_ci u64 max_mr_size; 6262306a36Sopenharmony_ci u32 max_pd; 6362306a36Sopenharmony_ci u32 max_mw; 6462306a36Sopenharmony_ci u32 max_raw_ethy_qp; 6562306a36Sopenharmony_ci u32 max_ah; 6662306a36Sopenharmony_ci u32 max_srq; 6762306a36Sopenharmony_ci u32 max_srq_wqes; 6862306a36Sopenharmony_ci u32 max_srq_sges; 6962306a36Sopenharmony_ci u32 max_pkey; 7062306a36Sopenharmony_ci u32 max_inline_data; 7162306a36Sopenharmony_ci u32 l2_db_size; 7262306a36Sopenharmony_ci u8 tqm_alloc_reqs[MAX_TQM_ALLOC_REQ]; 7362306a36Sopenharmony_ci bool is_atomic; 7462306a36Sopenharmony_ci u16 dev_cap_flags; 7562306a36Sopenharmony_ci u32 max_dpi; 7662306a36Sopenharmony_ci}; 7762306a36Sopenharmony_ci 7862306a36Sopenharmony_cistruct bnxt_qplib_pd { 7962306a36Sopenharmony_ci u32 id; 8062306a36Sopenharmony_ci}; 8162306a36Sopenharmony_ci 8262306a36Sopenharmony_cistruct bnxt_qplib_gid { 8362306a36Sopenharmony_ci u8 data[16]; 8462306a36Sopenharmony_ci}; 8562306a36Sopenharmony_ci 8662306a36Sopenharmony_cistruct bnxt_qplib_gid_info { 8762306a36Sopenharmony_ci struct bnxt_qplib_gid gid; 8862306a36Sopenharmony_ci u16 vlan_id; 8962306a36Sopenharmony_ci}; 9062306a36Sopenharmony_ci 9162306a36Sopenharmony_cistruct bnxt_qplib_ah { 9262306a36Sopenharmony_ci struct bnxt_qplib_gid dgid; 9362306a36Sopenharmony_ci struct bnxt_qplib_pd *pd; 9462306a36Sopenharmony_ci u32 id; 9562306a36Sopenharmony_ci u8 sgid_index; 9662306a36Sopenharmony_ci /* For Query AH if the hw table and SW table are differnt */ 9762306a36Sopenharmony_ci u8 host_sgid_index; 9862306a36Sopenharmony_ci u8 traffic_class; 9962306a36Sopenharmony_ci u32 flow_label; 10062306a36Sopenharmony_ci u8 hop_limit; 10162306a36Sopenharmony_ci u8 sl; 10262306a36Sopenharmony_ci u8 dmac[6]; 10362306a36Sopenharmony_ci u16 vlan_id; 10462306a36Sopenharmony_ci u8 nw_type; 10562306a36Sopenharmony_ci}; 10662306a36Sopenharmony_ci 10762306a36Sopenharmony_cistruct bnxt_qplib_mrw { 10862306a36Sopenharmony_ci struct bnxt_qplib_pd *pd; 10962306a36Sopenharmony_ci int type; 11062306a36Sopenharmony_ci u32 flags; 11162306a36Sopenharmony_ci#define BNXT_QPLIB_FR_PMR 0x80000000 11262306a36Sopenharmony_ci u32 lkey; 11362306a36Sopenharmony_ci u32 rkey; 11462306a36Sopenharmony_ci#define BNXT_QPLIB_RSVD_LKEY 0xFFFFFFFF 11562306a36Sopenharmony_ci u64 va; 11662306a36Sopenharmony_ci u64 total_size; 11762306a36Sopenharmony_ci u32 npages; 11862306a36Sopenharmony_ci u64 mr_handle; 11962306a36Sopenharmony_ci struct bnxt_qplib_hwq hwq; 12062306a36Sopenharmony_ci}; 12162306a36Sopenharmony_ci 12262306a36Sopenharmony_cistruct bnxt_qplib_frpl { 12362306a36Sopenharmony_ci int max_pg_ptrs; 12462306a36Sopenharmony_ci struct bnxt_qplib_hwq hwq; 12562306a36Sopenharmony_ci}; 12662306a36Sopenharmony_ci 12762306a36Sopenharmony_ci#define BNXT_QPLIB_ACCESS_LOCAL_WRITE BIT(0) 12862306a36Sopenharmony_ci#define BNXT_QPLIB_ACCESS_REMOTE_READ BIT(1) 12962306a36Sopenharmony_ci#define BNXT_QPLIB_ACCESS_REMOTE_WRITE BIT(2) 13062306a36Sopenharmony_ci#define BNXT_QPLIB_ACCESS_REMOTE_ATOMIC BIT(3) 13162306a36Sopenharmony_ci#define BNXT_QPLIB_ACCESS_MW_BIND BIT(4) 13262306a36Sopenharmony_ci#define BNXT_QPLIB_ACCESS_ZERO_BASED BIT(5) 13362306a36Sopenharmony_ci#define BNXT_QPLIB_ACCESS_ON_DEMAND BIT(6) 13462306a36Sopenharmony_ci 13562306a36Sopenharmony_cistruct bnxt_qplib_roce_stats { 13662306a36Sopenharmony_ci u64 to_retransmits; 13762306a36Sopenharmony_ci u64 seq_err_naks_rcvd; 13862306a36Sopenharmony_ci /* seq_err_naks_rcvd is 64 b */ 13962306a36Sopenharmony_ci u64 max_retry_exceeded; 14062306a36Sopenharmony_ci /* max_retry_exceeded is 64 b */ 14162306a36Sopenharmony_ci u64 rnr_naks_rcvd; 14262306a36Sopenharmony_ci /* rnr_naks_rcvd is 64 b */ 14362306a36Sopenharmony_ci u64 missing_resp; 14462306a36Sopenharmony_ci u64 unrecoverable_err; 14562306a36Sopenharmony_ci /* unrecoverable_err is 64 b */ 14662306a36Sopenharmony_ci u64 bad_resp_err; 14762306a36Sopenharmony_ci /* bad_resp_err is 64 b */ 14862306a36Sopenharmony_ci u64 local_qp_op_err; 14962306a36Sopenharmony_ci /* local_qp_op_err is 64 b */ 15062306a36Sopenharmony_ci u64 local_protection_err; 15162306a36Sopenharmony_ci /* local_protection_err is 64 b */ 15262306a36Sopenharmony_ci u64 mem_mgmt_op_err; 15362306a36Sopenharmony_ci /* mem_mgmt_op_err is 64 b */ 15462306a36Sopenharmony_ci u64 remote_invalid_req_err; 15562306a36Sopenharmony_ci /* remote_invalid_req_err is 64 b */ 15662306a36Sopenharmony_ci u64 remote_access_err; 15762306a36Sopenharmony_ci /* remote_access_err is 64 b */ 15862306a36Sopenharmony_ci u64 remote_op_err; 15962306a36Sopenharmony_ci /* remote_op_err is 64 b */ 16062306a36Sopenharmony_ci u64 dup_req; 16162306a36Sopenharmony_ci /* dup_req is 64 b */ 16262306a36Sopenharmony_ci u64 res_exceed_max; 16362306a36Sopenharmony_ci /* res_exceed_max is 64 b */ 16462306a36Sopenharmony_ci u64 res_length_mismatch; 16562306a36Sopenharmony_ci /* res_length_mismatch is 64 b */ 16662306a36Sopenharmony_ci u64 res_exceeds_wqe; 16762306a36Sopenharmony_ci /* res_exceeds_wqe is 64 b */ 16862306a36Sopenharmony_ci u64 res_opcode_err; 16962306a36Sopenharmony_ci /* res_opcode_err is 64 b */ 17062306a36Sopenharmony_ci u64 res_rx_invalid_rkey; 17162306a36Sopenharmony_ci /* res_rx_invalid_rkey is 64 b */ 17262306a36Sopenharmony_ci u64 res_rx_domain_err; 17362306a36Sopenharmony_ci /* res_rx_domain_err is 64 b */ 17462306a36Sopenharmony_ci u64 res_rx_no_perm; 17562306a36Sopenharmony_ci /* res_rx_no_perm is 64 b */ 17662306a36Sopenharmony_ci u64 res_rx_range_err; 17762306a36Sopenharmony_ci /* res_rx_range_err is 64 b */ 17862306a36Sopenharmony_ci u64 res_tx_invalid_rkey; 17962306a36Sopenharmony_ci /* res_tx_invalid_rkey is 64 b */ 18062306a36Sopenharmony_ci u64 res_tx_domain_err; 18162306a36Sopenharmony_ci /* res_tx_domain_err is 64 b */ 18262306a36Sopenharmony_ci u64 res_tx_no_perm; 18362306a36Sopenharmony_ci /* res_tx_no_perm is 64 b */ 18462306a36Sopenharmony_ci u64 res_tx_range_err; 18562306a36Sopenharmony_ci /* res_tx_range_err is 64 b */ 18662306a36Sopenharmony_ci u64 res_irrq_oflow; 18762306a36Sopenharmony_ci /* res_irrq_oflow is 64 b */ 18862306a36Sopenharmony_ci u64 res_unsup_opcode; 18962306a36Sopenharmony_ci /* res_unsup_opcode is 64 b */ 19062306a36Sopenharmony_ci u64 res_unaligned_atomic; 19162306a36Sopenharmony_ci /* res_unaligned_atomic is 64 b */ 19262306a36Sopenharmony_ci u64 res_rem_inv_err; 19362306a36Sopenharmony_ci /* res_rem_inv_err is 64 b */ 19462306a36Sopenharmony_ci u64 res_mem_error; 19562306a36Sopenharmony_ci /* res_mem_error is 64 b */ 19662306a36Sopenharmony_ci u64 res_srq_err; 19762306a36Sopenharmony_ci /* res_srq_err is 64 b */ 19862306a36Sopenharmony_ci u64 res_cmp_err; 19962306a36Sopenharmony_ci /* res_cmp_err is 64 b */ 20062306a36Sopenharmony_ci u64 res_invalid_dup_rkey; 20162306a36Sopenharmony_ci /* res_invalid_dup_rkey is 64 b */ 20262306a36Sopenharmony_ci u64 res_wqe_format_err; 20362306a36Sopenharmony_ci /* res_wqe_format_err is 64 b */ 20462306a36Sopenharmony_ci u64 res_cq_load_err; 20562306a36Sopenharmony_ci /* res_cq_load_err is 64 b */ 20662306a36Sopenharmony_ci u64 res_srq_load_err; 20762306a36Sopenharmony_ci /* res_srq_load_err is 64 b */ 20862306a36Sopenharmony_ci u64 res_tx_pci_err; 20962306a36Sopenharmony_ci /* res_tx_pci_err is 64 b */ 21062306a36Sopenharmony_ci u64 res_rx_pci_err; 21162306a36Sopenharmony_ci /* res_rx_pci_err is 64 b */ 21262306a36Sopenharmony_ci u64 res_oos_drop_count; 21362306a36Sopenharmony_ci /* res_oos_drop_count */ 21462306a36Sopenharmony_ci u64 active_qp_count_p0; 21562306a36Sopenharmony_ci /* port 0 active qps */ 21662306a36Sopenharmony_ci u64 active_qp_count_p1; 21762306a36Sopenharmony_ci /* port 1 active qps */ 21862306a36Sopenharmony_ci u64 active_qp_count_p2; 21962306a36Sopenharmony_ci /* port 2 active qps */ 22062306a36Sopenharmony_ci u64 active_qp_count_p3; 22162306a36Sopenharmony_ci /* port 3 active qps */ 22262306a36Sopenharmony_ci}; 22362306a36Sopenharmony_ci 22462306a36Sopenharmony_cistruct bnxt_qplib_ext_stat { 22562306a36Sopenharmony_ci u64 tx_atomic_req; 22662306a36Sopenharmony_ci u64 tx_read_req; 22762306a36Sopenharmony_ci u64 tx_read_res; 22862306a36Sopenharmony_ci u64 tx_write_req; 22962306a36Sopenharmony_ci u64 tx_send_req; 23062306a36Sopenharmony_ci u64 tx_roce_pkts; 23162306a36Sopenharmony_ci u64 tx_roce_bytes; 23262306a36Sopenharmony_ci u64 rx_atomic_req; 23362306a36Sopenharmony_ci u64 rx_read_req; 23462306a36Sopenharmony_ci u64 rx_read_res; 23562306a36Sopenharmony_ci u64 rx_write_req; 23662306a36Sopenharmony_ci u64 rx_send_req; 23762306a36Sopenharmony_ci u64 rx_roce_pkts; 23862306a36Sopenharmony_ci u64 rx_roce_bytes; 23962306a36Sopenharmony_ci u64 rx_roce_good_pkts; 24062306a36Sopenharmony_ci u64 rx_roce_good_bytes; 24162306a36Sopenharmony_ci u64 rx_out_of_buffer; 24262306a36Sopenharmony_ci u64 rx_out_of_sequence; 24362306a36Sopenharmony_ci u64 tx_cnp; 24462306a36Sopenharmony_ci u64 rx_cnp; 24562306a36Sopenharmony_ci u64 rx_ecn_marked; 24662306a36Sopenharmony_ci}; 24762306a36Sopenharmony_ci 24862306a36Sopenharmony_cistruct bnxt_qplib_cc_param_ext { 24962306a36Sopenharmony_ci u64 ext_mask; 25062306a36Sopenharmony_ci u16 inact_th_hi; 25162306a36Sopenharmony_ci u16 min_delta_cnp; 25262306a36Sopenharmony_ci u16 init_cp; 25362306a36Sopenharmony_ci u8 tr_update_mode; 25462306a36Sopenharmony_ci u8 tr_update_cyls; 25562306a36Sopenharmony_ci u8 fr_rtt; 25662306a36Sopenharmony_ci u8 ai_rate_incr; 25762306a36Sopenharmony_ci u16 rr_rtt_th; 25862306a36Sopenharmony_ci u16 ar_cr_th; 25962306a36Sopenharmony_ci u16 cr_min_th; 26062306a36Sopenharmony_ci u8 bw_avg_weight; 26162306a36Sopenharmony_ci u8 cr_factor; 26262306a36Sopenharmony_ci u16 cr_th_max_cp; 26362306a36Sopenharmony_ci u8 cp_bias_en; 26462306a36Sopenharmony_ci u8 cp_bias; 26562306a36Sopenharmony_ci u8 cnp_ecn; 26662306a36Sopenharmony_ci u8 rtt_jitter_en; 26762306a36Sopenharmony_ci u16 bytes_per_usec; 26862306a36Sopenharmony_ci u16 cc_cr_reset_th; 26962306a36Sopenharmony_ci u8 cr_width; 27062306a36Sopenharmony_ci u8 min_quota; 27162306a36Sopenharmony_ci u8 max_quota; 27262306a36Sopenharmony_ci u8 abs_max_quota; 27362306a36Sopenharmony_ci u16 tr_lb; 27462306a36Sopenharmony_ci u8 cr_prob_fac; 27562306a36Sopenharmony_ci u8 tr_prob_fac; 27662306a36Sopenharmony_ci u16 fair_cr_th; 27762306a36Sopenharmony_ci u8 red_div; 27862306a36Sopenharmony_ci u8 cnp_ratio_th; 27962306a36Sopenharmony_ci u16 ai_ext_rtt; 28062306a36Sopenharmony_ci u8 exp_crcp_ratio; 28162306a36Sopenharmony_ci u8 low_rate_en; 28262306a36Sopenharmony_ci u16 cpcr_update_th; 28362306a36Sopenharmony_ci u16 ai_rtt_th1; 28462306a36Sopenharmony_ci u16 ai_rtt_th2; 28562306a36Sopenharmony_ci u16 cf_rtt_th; 28662306a36Sopenharmony_ci u16 sc_cr_th1; /* severe congestion cr threshold 1 */ 28762306a36Sopenharmony_ci u16 sc_cr_th2; /* severe congestion cr threshold 2 */ 28862306a36Sopenharmony_ci u32 l64B_per_rtt; 28962306a36Sopenharmony_ci u8 cc_ack_bytes; 29062306a36Sopenharmony_ci u16 reduce_cf_rtt_th; 29162306a36Sopenharmony_ci}; 29262306a36Sopenharmony_ci 29362306a36Sopenharmony_cistruct bnxt_qplib_cc_param { 29462306a36Sopenharmony_ci u8 alt_vlan_pcp; 29562306a36Sopenharmony_ci u16 alt_tos_dscp; 29662306a36Sopenharmony_ci u8 cc_mode; 29762306a36Sopenharmony_ci u8 enable; 29862306a36Sopenharmony_ci u16 inact_th; 29962306a36Sopenharmony_ci u16 init_cr; 30062306a36Sopenharmony_ci u16 init_tr; 30162306a36Sopenharmony_ci u16 rtt; 30262306a36Sopenharmony_ci u8 g; 30362306a36Sopenharmony_ci u8 nph_per_state; 30462306a36Sopenharmony_ci u8 time_pph; 30562306a36Sopenharmony_ci u8 pkts_pph; 30662306a36Sopenharmony_ci u8 tos_ecn; 30762306a36Sopenharmony_ci u8 tos_dscp; 30862306a36Sopenharmony_ci u16 tcp_cp; 30962306a36Sopenharmony_ci struct bnxt_qplib_cc_param_ext cc_ext; 31062306a36Sopenharmony_ci u32 mask; 31162306a36Sopenharmony_ci}; 31262306a36Sopenharmony_ci 31362306a36Sopenharmony_ciint bnxt_qplib_get_sgid(struct bnxt_qplib_res *res, 31462306a36Sopenharmony_ci struct bnxt_qplib_sgid_tbl *sgid_tbl, int index, 31562306a36Sopenharmony_ci struct bnxt_qplib_gid *gid); 31662306a36Sopenharmony_ciint bnxt_qplib_del_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl, 31762306a36Sopenharmony_ci struct bnxt_qplib_gid *gid, u16 vlan_id, bool update); 31862306a36Sopenharmony_ciint bnxt_qplib_add_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl, 31962306a36Sopenharmony_ci struct bnxt_qplib_gid *gid, const u8 *mac, u16 vlan_id, 32062306a36Sopenharmony_ci bool update, u32 *index); 32162306a36Sopenharmony_ciint bnxt_qplib_update_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl, 32262306a36Sopenharmony_ci struct bnxt_qplib_gid *gid, u16 gid_idx, 32362306a36Sopenharmony_ci const u8 *smac); 32462306a36Sopenharmony_ciint bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw, 32562306a36Sopenharmony_ci struct bnxt_qplib_dev_attr *attr); 32662306a36Sopenharmony_ciint bnxt_qplib_set_func_resources(struct bnxt_qplib_res *res, 32762306a36Sopenharmony_ci struct bnxt_qplib_rcfw *rcfw, 32862306a36Sopenharmony_ci struct bnxt_qplib_ctx *ctx); 32962306a36Sopenharmony_ciint bnxt_qplib_create_ah(struct bnxt_qplib_res *res, struct bnxt_qplib_ah *ah, 33062306a36Sopenharmony_ci bool block); 33162306a36Sopenharmony_ciint bnxt_qplib_destroy_ah(struct bnxt_qplib_res *res, struct bnxt_qplib_ah *ah, 33262306a36Sopenharmony_ci bool block); 33362306a36Sopenharmony_ciint bnxt_qplib_alloc_mrw(struct bnxt_qplib_res *res, 33462306a36Sopenharmony_ci struct bnxt_qplib_mrw *mrw); 33562306a36Sopenharmony_ciint bnxt_qplib_dereg_mrw(struct bnxt_qplib_res *res, struct bnxt_qplib_mrw *mrw, 33662306a36Sopenharmony_ci bool block); 33762306a36Sopenharmony_ciint bnxt_qplib_reg_mr(struct bnxt_qplib_res *res, struct bnxt_qplib_mrw *mr, 33862306a36Sopenharmony_ci struct ib_umem *umem, int num_pbls, u32 buf_pg_size); 33962306a36Sopenharmony_ciint bnxt_qplib_free_mrw(struct bnxt_qplib_res *res, struct bnxt_qplib_mrw *mr); 34062306a36Sopenharmony_ciint bnxt_qplib_alloc_fast_reg_mr(struct bnxt_qplib_res *res, 34162306a36Sopenharmony_ci struct bnxt_qplib_mrw *mr, int max); 34262306a36Sopenharmony_ciint bnxt_qplib_alloc_fast_reg_page_list(struct bnxt_qplib_res *res, 34362306a36Sopenharmony_ci struct bnxt_qplib_frpl *frpl, int max); 34462306a36Sopenharmony_ciint bnxt_qplib_free_fast_reg_page_list(struct bnxt_qplib_res *res, 34562306a36Sopenharmony_ci struct bnxt_qplib_frpl *frpl); 34662306a36Sopenharmony_ciint bnxt_qplib_get_roce_stats(struct bnxt_qplib_rcfw *rcfw, 34762306a36Sopenharmony_ci struct bnxt_qplib_roce_stats *stats); 34862306a36Sopenharmony_ciint bnxt_qplib_qext_stat(struct bnxt_qplib_rcfw *rcfw, u32 fid, 34962306a36Sopenharmony_ci struct bnxt_qplib_ext_stat *estat); 35062306a36Sopenharmony_ciint bnxt_qplib_modify_cc(struct bnxt_qplib_res *res, 35162306a36Sopenharmony_ci struct bnxt_qplib_cc_param *cc_param); 35262306a36Sopenharmony_ci 35362306a36Sopenharmony_ci#endif /* __BNXT_QPLIB_SP_H__*/ 354