The dpaa bus interface is for drivers only.
Mark as internal and move the header on the driver headers list.
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
drivers/bus/dpaa/base/qbman/qman.c | 2 +-
drivers/bus/dpaa/{rte_dpaa_bus.h => bus_dpaa_driver.h} | 9 ++++++---
drivers/bus/dpaa/dpaa_bus.c | 2 +-
drivers/crypto/dpaa_sec/dpaa_sec.c | 2 +-
drivers/crypto/dpaa_sec/dpaa_sec_raw_dp.c | 2 +-
drivers/dma/dpaa/dpaa_qdma.c | 2 +-
drivers/event/dpaa/dpaa_eventdev.c | 2 +-
drivers/mempool/dpaa/dpaa_mempool.h | 2 +-
drivers/net/dpaa/dpaa_ethdev.c | 2 +-
drivers/net/dpaa/dpaa_rxtx.c | 2 +-
10 files changed, 15 insertions(+), 12 deletions(-)
rename drivers/bus/dpaa/{rte_dpaa_bus.h => bus_dpaa_driver.h} (97%)
@@ -7,7 +7,7 @@
#include "qman.h"
#include <rte_branch_prediction.h>
-#include <rte_dpaa_bus.h>
+#include <bus_dpaa_driver.h>
#include <rte_eventdev.h>
#include <rte_byteorder.h>
similarity index 97%
rename from drivers/bus/dpaa/rte_dpaa_bus.h
rename to drivers/bus/dpaa/bus_dpaa_driver.h
@@ -3,9 +3,10 @@
* Copyright 2017-2022 NXP
*
*/
-#ifndef __RTE_DPAA_BUS_H__
-#define __RTE_DPAA_BUS_H__
+#ifndef BUS_DPAA_DRIVER_H
+#define BUS_DPAA_DRIVER_H
+#include <rte_compat.h>
#include <rte_mbuf_dyn.h>
#include <rte_mempool.h>
#include <dpaax_iova_table.h>
@@ -152,6 +153,7 @@ extern struct dpaa_memseg_list rte_dpaa_memsegs;
/* Either iterate over the list of internal memseg references or fallback to
* EAL memseg based iova2virt.
*/
+__rte_internal
static inline void *rte_dpaa_mem_ptov(phys_addr_t paddr)
{
struct dpaa_memseg *ms;
@@ -178,6 +180,7 @@ static inline void *rte_dpaa_mem_ptov(phys_addr_t paddr)
return va;
}
+__rte_internal
static inline rte_iova_t
rte_dpaa_mem_vtop(void *vaddr)
{
@@ -249,4 +252,4 @@ struct fm_eth_port_cfg *dpaa_get_eth_port_cfg(int dev_id);
}
#endif
-#endif /* __RTE_DPAA_BUS_H__ */
+#endif /* BUS_DPAA_DRIVER_H */
@@ -34,7 +34,7 @@
#include <rte_mbuf_dyn.h>
#include <dpaa_of.h>
-#include <rte_dpaa_bus.h>
+#include <bus_dpaa_driver.h>
#include <rte_dpaa_logs.h>
#include <dpaax_iova_table.h>
@@ -41,7 +41,7 @@
#include <desc/pdcp.h>
#include <desc/sdap.h>
-#include <rte_dpaa_bus.h>
+#include <bus_dpaa_driver.h>
#include <dpaa_sec.h>
#include <dpaa_sec_event.h>
#include <dpaa_sec_log.h>
@@ -15,7 +15,7 @@
#include <desc/algo.h>
#include <desc/ipsec.h>
-#include <rte_dpaa_bus.h>
+#include <bus_dpaa_driver.h>
#include <dpaa_sec.h>
#include <dpaa_sec_log.h>
@@ -2,7 +2,7 @@
* Copyright 2021 NXP
*/
-#include <rte_dpaa_bus.h>
+#include <bus_dpaa_driver.h>
#include <rte_dmadev_pmd.h>
#include "dpaa_qdma.h"
@@ -29,7 +29,7 @@
#include <rte_event_eth_rx_adapter.h>
#include <rte_event_eth_tx_adapter.h>
#include <cryptodev_pmd.h>
-#include <rte_dpaa_bus.h>
+#include <bus_dpaa_driver.h>
#include <rte_dpaa_logs.h>
#include <rte_cycles.h>
#include <rte_kvargs.h>
@@ -14,7 +14,7 @@
#include <rte_mempool.h>
-#include <rte_dpaa_bus.h>
+#include <bus_dpaa_driver.h>
#include <rte_dpaa_logs.h>
#include <fsl_usd.h>
@@ -33,7 +33,7 @@
#include <rte_malloc.h>
#include <rte_ring.h>
-#include <rte_dpaa_bus.h>
+#include <bus_dpaa_driver.h>
#include <rte_dpaa_logs.h>
#include <dpaa_mempool.h>
@@ -37,7 +37,7 @@
#include "dpaa_ethdev.h"
#include "dpaa_rxtx.h"
-#include <rte_dpaa_bus.h>
+#include <bus_dpaa_driver.h>
#include <dpaa_mempool.h>
#include <qman.h>