[v3,1/1] eal: add internal function to get base address
Checks
Commit Message
Added an internal helper to get OS-specific EAL mapping base address
This helper can be used by the drivers to map host address range with
offload devices and would be need for device specific operations like
firmware load
Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>
Change-Id: I19eec79e46066e3b08896d84ce3f3cb15a59c124
---
lib/eal/common/eal_common_config.c | 7 +++++++
lib/eal/include/rte_eal.h | 9 +++++++++
lib/eal/version.map | 1 +
3 files changed, 17 insertions(+)
@@ -87,3 +87,10 @@ rte_eal_has_pci(void)
{
return !internal_config.no_pci;
}
+
+/* Get the EAL base address */
+uint64_t
+rte_eal_get_baseaddr(void)
+{
+ return eal_get_baseaddr();
+}
@@ -475,6 +475,15 @@ rte_eal_mbuf_user_pool_ops(void);
const char *
rte_eal_get_runtime_dir(void);
+/**
+ * Get the OS-specific EAL base address.
+ *
+ * @return
+ * The base address.
+ */
+__rte_internal
+uint64_t rte_eal_get_baseaddr(void);
+
#ifdef __cplusplus
}
#endif
@@ -425,6 +425,7 @@ EXPERIMENTAL {
INTERNAL {
global:
+ rte_eal_get_baseaddr;
rte_firmware_read;
rte_intr_allow_others;
rte_intr_cap_multiple;