@@ -18,21 +18,8 @@
extern "C" {
#endif
-
-
#include <odp_std_types.h>
-
-
-
-
-
-/**
- * ODP buffer
- */
-typedef uint32_t odp_buffer_t;
-
-#define ODP_BUFFER_INVALID (0xffffffff) /**< Invalid buffer */
-
+#include <plat/odp_buffer.h>
/**
* Buffer start address
@@ -137,5 +137,7 @@ headers_install: libs
$(ECHO) Installing headers to $(DESTDIR)/include
$(COPY) $(ODP_ROOT)/include $(DESTDIR)
$(COPY) include/api/* $(DESTDIR)/include/
+ $(MKDIR) $(DESTDIR)/include/plat
+ $(COPY) include/plat/* $(DESTDIR)/include/plat
install: lib_install headers_install
new file mode 100644
@@ -0,0 +1,12 @@
+/*
+ * No protector.
+ * This file should be included only in one corresponding top level header.
+ */
+
+/**
+ * ODP buffer
+ */
+typedef uint32_t odp_buffer_t;
+
+#define ODP_BUFFER_INVALID (0xffffffff) /**< Invalid buffer */
+
Keep platform specific values in separate header file. Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> --- include/odp_buffer.h | 15 +-------------- platform/linux-generic/Makefile | 2 ++ platform/linux-generic/include/plat/odp_buffer.h | 12 ++++++++++++ 3 files changed, 15 insertions(+), 14 deletions(-) create mode 100644 platform/linux-generic/include/plat/odp_buffer.h