50 #include <sys/queue.h>
69 RTE_IOVA_PA = (1 << 0),
70 RTE_IOVA_VA = (1 << 1)
174 RTE_BUS_SCAN_UNDEFINED,
175 RTE_BUS_SCAN_WHITELIST,
176 RTE_BUS_SCAN_BLACKLIST,
327 #define RTE_REGISTER_BUS(nm, bus) \
328 RTE_INIT_PRIO(businitfn_ ##nm, 110); \
329 static void businitfn_ ##nm(void) \
331 (bus).name = RTE_STR(nm);\
332 rte_bus_register(&bus); \
enum rte_iova_mode(* rte_bus_get_iommu_class_t)(void)
enum rte_iova_mode rte_bus_get_iommu_class(void)
void rte_bus_register(struct rte_bus *bus)
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)
TAILQ_ENTRY(rte_bus) next
int(* rte_bus_plug_t)(struct rte_device *dev)
void rte_bus_dump(FILE *f)
struct rte_bus * rte_bus_find_by_name(const char *busname)
int(* rte_bus_parse_t)(const char *name, void *addr)
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)
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)