50 #include <sys/queue.h> 159 RTE_BUS_SCAN_UNDEFINED,
160 RTE_BUS_SCAN_WHITELIST,
161 RTE_BUS_SCAN_BLACKLIST,
287 #define RTE_REGISTER_BUS(nm, bus) \ 288 RTE_INIT_PRIO(businitfn_ ##nm, 101); \ 289 static void businitfn_ ##nm(void) \ 291 (bus).name = RTE_STR(nm);\ 292 rte_bus_register(&bus); \ 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)
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)
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)