22 #include <sys/queue.h> 41 RTE_IOVA_PA = (1 << 0),
42 RTE_IOVA_VA = (1 << 1)
161 uint64_t iova,
size_t len);
182 uint64_t iova,
size_t len);
217 RTE_BUS_SCAN_UNDEFINED,
218 RTE_BUS_SCAN_WHITELIST,
219 RTE_BUS_SCAN_BLACKLIST,
378 #define RTE_REGISTER_BUS(nm, bus) \ 379 RTE_INIT_PRIO(businitfn_ ##nm, BUS) \ 381 (bus).name = RTE_STR(nm);\ 382 rte_bus_register(&bus); \ enum rte_iova_mode(* rte_bus_get_iommu_class_t)(void)
void *(* rte_dev_iterate_t)(const void *start, const char *devstr, const struct rte_dev_iterator *it)
int(* rte_bus_sigbus_handler_t)(const void *failure_addr)
enum rte_iova_mode rte_bus_get_iommu_class(void)
void rte_bus_register(struct rte_bus *bus)
int(* rte_dev_dma_unmap_t)(struct rte_device *dev, void *addr, uint64_t iova, size_t len)
struct rte_device *(* rte_bus_find_device_t)(const struct rte_device *start, rte_dev_cmp_t cmp, const void *data)
TAILQ_HEAD(rte_bus_list, rte_bus)
rte_bus_find_device_t find_device
int(* rte_bus_cmp_t)(const struct rte_bus *bus, const void *data)
rte_dev_dma_unmap_t dma_unmap
rte_dev_dma_map_t dma_map
rte_bus_hot_unplug_handler_t hot_unplug_handler
int(* rte_dev_dma_map_t)(struct rte_device *dev, void *addr, uint64_t iova, size_t len)
int(* rte_bus_plug_t)(struct rte_device *dev)
void rte_bus_dump(FILE *f)
rte_dev_iterate_t dev_iterate
struct rte_bus * rte_bus_find_by_name(const char *busname)
int(* rte_bus_parse_t)(const char *name, void *addr)
rte_bus_sigbus_handler_t sigbus_handler
struct rte_bus * rte_bus_find(const struct rte_bus *start, rte_bus_cmp_t cmp, const void *data)
int(* rte_bus_probe_t)(void)
int(* rte_bus_hot_unplug_handler_t)(struct rte_device *dev)
struct rte_bus * rte_bus_find_by_device(const struct rte_device *dev)
rte_bus_get_iommu_class_t get_iommu_class
void rte_bus_unregister(struct rte_bus *bus)
enum rte_bus_scan_mode scan_mode
int(* rte_bus_scan_t)(void)
int(* rte_bus_unplug_t)(struct rte_device *dev)
int(* rte_dev_cmp_t)(const struct rte_device *dev, const void *data)