diff mbox series

[API-NEXT,PATCHv2,02/23] linux-gen: adding compiler hints in the driver interface

Message ID 1490194110-40168-3-git-send-email-christophe.milard@linaro.org
State New
Headers show
Series driver items registration and probing | expand

Commit Message

Christophe Milard March 22, 2017, 2:48 p.m. UTC
Just including the spec file from the linux-generic side, as usual.

Signed-off-by: Christophe Milard <christophe.milard@linaro.org>

---
 include/odp_drv.h                              |  1 +
 platform/linux-generic/include/odp/drv/hints.h | 34 ++++++++++++++++++++++++++
 2 files changed, 35 insertions(+)
 create mode 100644 platform/linux-generic/include/odp/drv/hints.h

-- 
2.7.4
diff mbox series

Patch

diff --git a/include/odp_drv.h b/include/odp_drv.h
index 96d81ba..cdba226 100644
--- a/include/odp_drv.h
+++ b/include/odp_drv.h
@@ -24,6 +24,7 @@  extern C {
 #include <odp/drv/byteorder.h>
 #include <odp/drv/compiler.h>
 #include <odp/drv/driver.h>
+#include <odp/drv/hints.h>
 #include <odp/drv/shm.h>
 #include <odp/drv/spinlock.h>
 #include <odp/drv/std_types.h>
diff --git a/platform/linux-generic/include/odp/drv/hints.h b/platform/linux-generic/include/odp/drv/hints.h
new file mode 100644
index 0000000..808c22c
--- /dev/null
+++ b/platform/linux-generic/include/odp/drv/hints.h
@@ -0,0 +1,34 @@ 
+/* Copyright (c) 2017, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier:     BSD-3-Clause
+ */
+
+/**
+ * @file
+ *
+ * ODPDRV compiler hints
+ */
+
+#ifndef ODPDRV_PLAT_HINTS_H_
+#define ODPDRV_PLAT_HINTS_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/** @ingroup odpdrv_compiler_optim
+ *  @{
+ */
+
+/**
+ * @}
+ */
+
+#include <odp/drv/spec/hints.h>
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif