a04322f616
Make rte_bus opaque for non internal users. This will make extending this object possible without breaking the ABI. Introduce a new driver header and move rte_bus definition and helpers. Update drivers and library to use the internal header. Some applications may have been dereferencing rte_bus objects, mark this object's accessors as stable. Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
28 lines
605 B
C
28 lines
605 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright 2016,2021 NXP
|
|
*/
|
|
|
|
#ifndef BUS_FSLMC_PRIVATE_H
|
|
#define BUS_FSLMC_PRIVATE_H
|
|
|
|
#include <bus_driver.h>
|
|
|
|
#include <bus_fslmc_driver.h>
|
|
|
|
/*
|
|
* FSLMC bus
|
|
*/
|
|
struct rte_fslmc_bus {
|
|
struct rte_bus bus; /**< Generic Bus object */
|
|
TAILQ_HEAD(, rte_dpaa2_device) device_list;
|
|
/**< FSLMC DPAA2 Device list */
|
|
TAILQ_HEAD(, rte_dpaa2_driver) driver_list;
|
|
/**< FSLMC DPAA2 Driver list */
|
|
int device_count[DPAA2_DEVTYPE_MAX];
|
|
/**< Count of all devices scanned */
|
|
};
|
|
|
|
extern struct rte_fslmc_bus rte_fslmc_bus;
|
|
|
|
#endif /* BUS_FSLMC_PRIVATE_H */
|