1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2021-2021 Broadcom 3 * All rights reserved. 4 */ 5 6 #ifndef _BNXT_TF_PMD_ABSTRACT_H_ 7 #define _BNXT_TF_PMD_ABSTRACT_H_ 8 9 #include "bnxt_tf_common.h" 10 #include "ulp_mapper.h" 11 12 int32_t bnxt_rss_config_action_apply(struct bnxt_ulp_mapper_parms *parms); 13 int32_t bnxt_pmd_get_parent_mac_addr(struct bnxt_ulp_mapper_parms *parms, 14 uint8_t *mac); 15 void bnxt_pmd_get_iface_mac(uint16_t port, enum bnxt_ulp_intf_type type, 16 uint8_t *mac, uint8_t *parent_mac); 17 uint16_t bnxt_pmd_get_vnic_id(uint16_t port, enum bnxt_ulp_intf_type type); 18 uint16_t bnxt_pmd_get_parent_vnic_id(uint16_t port, enum bnxt_ulp_intf_type type); 19 struct bnxt *bnxt_pmd_get_bp(uint16_t port); 20 uint16_t bnxt_pmd_get_svif(uint16_t port_id, bool func_svif, 21 enum bnxt_ulp_intf_type type); 22 uint16_t bnxt_pmd_get_fw_func_id(uint16_t port, enum bnxt_ulp_intf_type type); 23 uint16_t bnxt_pmd_get_parif(uint16_t port, enum bnxt_ulp_intf_type type); 24 uint16_t bnxt_pmd_get_phy_port_id(uint16_t port); 25 uint16_t bnxt_pmd_get_vport(uint16_t port); 26 enum bnxt_ulp_intf_type bnxt_pmd_get_interface_type(uint16_t port); 27 int32_t bnxt_pmd_set_unicast_rxmask(struct rte_eth_dev *eth_dev); 28 29 #endif /* _BNXT_TF_PMD_ABSTRACT_H_ */ 30