DPDK 22.11.6
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
18extern "C" {
19#endif
20
21#include <stdio.h>
22
23#include <rte_eal.h>
24
25struct rte_bus;
26struct rte_device;
27
36const char *rte_bus_name(const struct rte_bus *bus);
37
45int rte_bus_scan(void);
46
55int rte_bus_probe(void);
56
63void rte_bus_dump(FILE *f);
64
80typedef int (*rte_bus_cmp_t)(const struct rte_bus *bus, const void *data);
81
104struct rte_bus *rte_bus_find(const struct rte_bus *start, rte_bus_cmp_t cmp,
105 const void *data);
106
110struct rte_bus *rte_bus_find_by_device(const struct rte_device *dev);
111
115struct 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_scan(void)
struct rte_bus * rte_bus_find_by_device(const struct rte_device *dev)
void rte_bus_dump(FILE *f)
const char * rte_bus_name(const struct rte_bus *bus)
struct rte_bus * rte_bus_find_by_name(const char *busname)
int(* rte_bus_cmp_t)(const struct rte_bus *bus, const void *data)
Definition: rte_bus.h:80
int rte_bus_probe(void)
struct rte_bus * rte_bus_find(const struct rte_bus *start, rte_bus_cmp_t cmp, const void *data)
rte_iova_mode
Definition: rte_eal.h:468