1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2020 Intel Corporation
8 #include "igc_ethdev.h"
15 * RX/TX function prototypes
17 void eth_igc_tx_queue_release(void *txq);
18 void eth_igc_rx_queue_release(void *rxq);
19 void igc_dev_clear_queues(struct rte_eth_dev *dev);
20 int eth_igc_rx_queue_setup(struct rte_eth_dev *dev, uint16_t rx_queue_id,
21 uint16_t nb_rx_desc, unsigned int socket_id,
22 const struct rte_eth_rxconf *rx_conf,
23 struct rte_mempool *mb_pool);
25 uint32_t eth_igc_rx_queue_count(struct rte_eth_dev *dev,
26 uint16_t rx_queue_id);
28 int eth_igc_rx_descriptor_done(void *rx_queue, uint16_t offset);
30 int eth_igc_rx_descriptor_status(void *rx_queue, uint16_t offset);
32 int eth_igc_tx_descriptor_status(void *tx_queue, uint16_t offset);
34 int eth_igc_tx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx,
35 uint16_t nb_desc, unsigned int socket_id,
36 const struct rte_eth_txconf *tx_conf);
37 int eth_igc_tx_done_cleanup(void *txqueue, uint32_t free_cnt);
39 int igc_rx_init(struct rte_eth_dev *dev);
40 void igc_tx_init(struct rte_eth_dev *dev);
41 void eth_igc_rxq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,
42 struct rte_eth_rxq_info *qinfo);
43 void eth_igc_txq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,
44 struct rte_eth_txq_info *qinfo);
50 #endif /* _IGC_TXRX_H_ */