net/bnxt: add port representor infrastructure
[dpdk.git] / drivers / net / bnxt / bnxt_reps.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2014-2020 Broadcom
3  * All rights reserved.
4  */
5
6 #ifndef _BNXT_REPS_H_
7 #define _BNXT_REPS_H_
8
9 #include <rte_malloc.h>
10 #include <rte_ethdev.h>
11
12 int bnxt_vf_representor_init(struct rte_eth_dev *eth_dev, void *params);
13 int bnxt_vf_representor_uninit(struct rte_eth_dev *eth_dev);
14 int bnxt_vf_rep_dev_info_get_op(struct rte_eth_dev *eth_dev,
15                                 struct rte_eth_dev_info *dev_info);
16 int bnxt_vf_rep_dev_configure_op(struct rte_eth_dev *eth_dev);
17
18 int bnxt_vf_rep_link_update_op(struct rte_eth_dev *eth_dev, int wait_to_compl);
19 int bnxt_vf_rep_dev_start_op(struct rte_eth_dev *eth_dev);
20 int bnxt_vf_rep_rx_queue_setup_op(struct rte_eth_dev *eth_dev,
21                                   __rte_unused uint16_t queue_idx,
22                                   __rte_unused uint16_t nb_desc,
23                                   __rte_unused unsigned int socket_id,
24                                   __rte_unused const struct rte_eth_rxconf *
25                                   rx_conf,
26                                   __rte_unused struct rte_mempool *mp);
27 int bnxt_vf_rep_tx_queue_setup_op(struct rte_eth_dev *eth_dev,
28                                   __rte_unused uint16_t queue_idx,
29                                   __rte_unused uint16_t nb_desc,
30                                   __rte_unused unsigned int socket_id,
31                                   __rte_unused const struct rte_eth_txconf *
32                                   tx_conf);
33 void bnxt_vf_rep_dev_stop_op(struct rte_eth_dev *eth_dev);
34 void bnxt_vf_rep_dev_close_op(struct rte_eth_dev *eth_dev);
35 #endif /* _BNXT_REPS_H_ */