DPDK  24.03.0
rte_bus.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2016 NXP
3  */
4 
5 #ifndef _RTE_BUS_H_
6 #define _RTE_BUS_H_
7 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 #include <stdio.h>
22 
23 #include <rte_eal.h>
24 
25 struct rte_bus;
26 struct rte_device;
27 
36 const char *rte_bus_name(const struct rte_bus *bus);
37 
45 int rte_bus_scan(void);
46 
55 int rte_bus_probe(void);
56 
63 void rte_bus_dump(FILE *f);
64 
80 typedef int (*rte_bus_cmp_t)(const struct rte_bus *bus, const void *data);
81 
104 struct rte_bus *rte_bus_find(const struct rte_bus *start, rte_bus_cmp_t cmp,
105  const void *data);
106 
110 struct rte_bus *rte_bus_find_by_device(const struct rte_device *dev);
111 
115 struct rte_bus *rte_bus_find_by_name(const char *busname);
116 
117 
126 
127 #ifdef __cplusplus
128 }
129 #endif
130 
131 #endif /* _RTE_BUS_H */
enum rte_iova_mode rte_bus_get_iommu_class(void)
int rte_bus_probe(void)
int(* rte_bus_cmp_t)(const struct rte_bus *bus, const void *data)
Definition: rte_bus.h:80
void rte_bus_dump(FILE *f)
struct rte_bus * rte_bus_find_by_name(const char *busname)
const char * rte_bus_name(const struct rte_bus *bus)
rte_iova_mode
Definition: rte_eal.h:461
struct rte_bus * rte_bus_find(const struct rte_bus *start, rte_bus_cmp_t cmp, const void *data)
struct rte_bus * rte_bus_find_by_device(const struct rte_device *dev)
int rte_bus_scan(void)