18#include <rte_config.h>
40typedef void (*rte_dev_event_cb_fn)(
const char *device_name,
113const struct rte_driver *
142#define RTE_DEV_NAME_MAX_LEN 64
171 const char *drvargs);
233typedef int (*
rte_dev_cmp_t)(
const struct rte_device *dev,
const void *data);
235#define RTE_PMD_EXPORT_NAME_ARRAY(n, idx) n##idx[]
237#define RTE_PMD_EXPORT_NAME(name, idx) \
238static const char RTE_PMD_EXPORT_NAME_ARRAY(this_pmd_name, idx) \
239__rte_used = RTE_STR(name)
241#define DRV_EXP_TAG(name, tag) __##name##_##tag
243#define RTE_PMD_REGISTER_PCI_TABLE(name, table) \
244static const char DRV_EXP_TAG(name, pci_tbl_export)[] __rte_used = \
247#define RTE_PMD_REGISTER_PARAM_STRING(name, str) \
248static const char DRV_EXP_TAG(name, param_string_export)[] \
272#define RTE_PMD_REGISTER_KMOD_DEP(name, str) \
273static const char DRV_EXP_TAG(name, kmod_dep_export)[] \
319typedef void *(*rte_dev_iterate_t)(
const void *start,
365#define RTE_DEV_FOREACH(dev, devstr, it) \
366 for (rte_dev_iterator_init(it, devstr), \
367 dev = rte_dev_iterator_next(it); \
369 dev = rte_dev_iterator_next(it))
389 rte_dev_event_cb_fn cb_fn,
410 rte_dev_event_cb_fn cb_fn,
int rte_dev_dma_map(struct rte_device *dev, void *addr, uint64_t iova, size_t len)
int rte_dev_event_monitor_start(void)
int rte_dev_event_monitor_stop(void)
struct rte_device * rte_dev_iterator_next(struct rte_dev_iterator *it)
int rte_dev_is_probed(const struct rte_device *dev)
int rte_dev_dma_unmap(struct rte_device *dev, void *addr, uint64_t iova, size_t len)
int rte_dev_event_callback_register(const char *device_name, rte_dev_event_cb_fn cb_fn, void *cb_arg)
const struct rte_driver * rte_dev_driver(const struct rte_device *dev)
int rte_dev_iterator_init(struct rte_dev_iterator *it, const char *str)
int rte_dev_probe(const char *devargs)
const char * rte_dev_name(const struct rte_device *dev)
const struct rte_bus * rte_dev_bus(const struct rte_device *dev)
int rte_dev_hotplug_handle_enable(void)
int rte_dev_event_callback_unregister(const char *device_name, rte_dev_event_cb_fn cb_fn, void *cb_arg)
const char * rte_driver_name(const struct rte_driver *driver)
int rte_dev_hotplug_handle_disable(void)
int rte_dev_remove(struct rte_device *dev)
int rte_eal_hotplug_add(const char *busname, const char *devname, const char *drvargs)
int rte_dev_numa_node(const struct rte_device *dev)
const char * rte_dev_bus_info(const struct rte_device *dev)
const struct rte_devargs * rte_dev_devargs(const struct rte_device *dev)
int(* rte_dev_cmp_t)(const struct rte_device *dev, const void *data)
void rte_dev_event_callback_process(const char *device_name, enum rte_dev_event_type event)
int rte_eal_hotplug_remove(const char *busname, const char *devname)
struct rte_device * device