1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2014-2020 Broadcom
9 #include <rte_malloc.h>
10 #include <rte_ethdev.h>
12 #define BNXT_MAX_CFA_CODE 65536
13 #define BNXT_VF_IDX_INVALID 0xffff
16 bnxt_vfr_recv(uint16_t port_id, uint16_t queue_id, struct rte_mbuf *mbuf);
17 int bnxt_vf_representor_init(struct rte_eth_dev *eth_dev, void *params);
18 int bnxt_vf_representor_uninit(struct rte_eth_dev *eth_dev);
19 int bnxt_vf_rep_dev_info_get_op(struct rte_eth_dev *eth_dev,
20 struct rte_eth_dev_info *dev_info);
21 int bnxt_vf_rep_dev_configure_op(struct rte_eth_dev *eth_dev);
23 int bnxt_vf_rep_link_update_op(struct rte_eth_dev *eth_dev, int wait_to_compl);
24 int bnxt_vf_rep_dev_start_op(struct rte_eth_dev *eth_dev);
25 int bnxt_vf_rep_rx_queue_setup_op(struct rte_eth_dev *eth_dev,
26 __rte_unused uint16_t queue_idx,
27 __rte_unused uint16_t nb_desc,
28 __rte_unused unsigned int socket_id,
29 __rte_unused const struct rte_eth_rxconf *
31 __rte_unused struct rte_mempool *mp);
32 int bnxt_vf_rep_tx_queue_setup_op(struct rte_eth_dev *eth_dev,
33 __rte_unused uint16_t queue_idx,
34 __rte_unused uint16_t nb_desc,
35 __rte_unused unsigned int socket_id,
36 __rte_unused const struct rte_eth_txconf *
38 void bnxt_vf_rep_rx_queue_release_op(void *rx_queue);
39 void bnxt_vf_rep_tx_queue_release_op(void *tx_queue);
40 void bnxt_vf_rep_dev_stop_op(struct rte_eth_dev *eth_dev);
41 void bnxt_vf_rep_dev_close_op(struct rte_eth_dev *eth_dev);
42 int bnxt_vf_rep_stats_get_op(struct rte_eth_dev *eth_dev,
43 struct rte_eth_stats *stats);
44 int bnxt_vf_rep_stats_reset_op(struct rte_eth_dev *eth_dev);
45 #endif /* _BNXT_REPS_H_ */