DPDK  18.02.2
rte_ethdev_driver.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2017 Intel Corporation
3  */
4 
5 #ifndef _RTE_ETHDEV_DRIVER_H_
6 #define _RTE_ETHDEV_DRIVER_H_
7 
18 #include <rte_ethdev.h>
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
33 struct rte_eth_dev *rte_eth_dev_allocated(const char *name);
34 
45 struct rte_eth_dev *rte_eth_dev_allocate(const char *name);
46 
58 struct rte_eth_dev *rte_eth_dev_attach_secondary(const char *name);
59 
69 int rte_eth_dev_release_port(struct rte_eth_dev *eth_dev);
70 
82 void _rte_eth_dev_reset(struct rte_eth_dev *dev);
83 
101 int _rte_eth_dev_callback_process(struct rte_eth_dev *dev,
102  enum rte_eth_event_type event, void *ret_param);
103 
116 void rte_eth_dev_probing_finish(struct rte_eth_dev *dev);
117 
137 const struct rte_memzone *
138 rte_eth_dma_zone_reserve(const struct rte_eth_dev *eth_dev, const char *name,
139  uint16_t queue_id, size_t size,
140  unsigned align, int socket_id);
141 
142 #ifdef __cplusplus
143 }
144 #endif
145 
146 #endif /* _RTE_ETHDEV_DRIVER_H_ */