summaryrefslogtreecommitdiff
path: root/drivers/bus/fslmc
diff options
context:
space:
mode:
authorHemant Agrawal <hemant.agrawal@nxp.com>2018-03-14 13:26:03 +0530
committerBruce Richardson <bruce.richardson@intel.com>2018-03-15 17:43:36 +0100
commitbe2a362a82166e9395a639eb85685370c867879e (patch)
tree33207368e351e5c38eea6107f58c7843d6c4b6ac /drivers/bus/fslmc
parentc243ede4d8211a94248af69a467266562e7a7f5e (diff)
downloaddpdk-be2a362a82166e9395a639eb85685370c867879e.zip
dpdk-be2a362a82166e9395a639eb85685370c867879e.tar.gz
dpdk-be2a362a82166e9395a639eb85685370c867879e.tar.xz
bus/fslmc: enable compilation for other platforms
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Diffstat (limited to 'drivers/bus/fslmc')
-rw-r--r--drivers/bus/fslmc/qbman/qbman_sys_decl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/bus/fslmc/qbman/qbman_sys_decl.h b/drivers/bus/fslmc/qbman/qbman_sys_decl.h
index 5640b04..fa6977f 100644
--- a/drivers/bus/fslmc/qbman/qbman_sys_decl.h
+++ b/drivers/bus/fslmc/qbman/qbman_sys_decl.h
@@ -36,4 +36,18 @@ static inline void prefetch_for_store(void *p)
#define dccivac(p) RTE_SET_USED(p)
#define prefetch_for_load(p) { asm volatile ("pld [%0]" : : "r" (p)); }
#define prefetch_for_store(p) { asm volatile ("pld [%0]" : : "r" (p)); }
+
+#else
+#define dcbz(p) RTE_SET_USED(p)
+#define lwsync()
+#define dcbf(p) RTE_SET_USED(p)
+#define dccivac(p) RTE_SET_USED(p)
+static inline void prefetch_for_load(void *p)
+{
+ RTE_SET_USED(p);
+}
+static inline void prefetch_for_store(void *p)
+{
+ RTE_SET_USED(p);
+}
#endif