@@ -5,6 +5,7 @@ include_HEADERS = \
odpapiincludedir= $(includedir)/odp/api/
odpapiinclude_HEADERS = \
+ odp/api/atomic.h \
odp/api/barrier.h \
odp/api/buffer.h \
odp/api/cpumask.h \
new file mode 100644
@@ -0,0 +1,28 @@
+/* Copyright (c) 2013, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+/**
+ * @file
+ *
+ * ODP atomic operations
+ */
+
+#ifndef ODP_API_ATOMIC_H_
+#define ODP_API_ATOMIC_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <odp/api/abi/atomic.h>
+
+#include <odp/api/spec/atomic.h>
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
@@ -20,7 +20,6 @@ odpinclude_HEADERS = \
odpapiincludedir= $(includedir)/odp/api
odpapiinclude_HEADERS = \
include/odp/api/align.h \
- include/odp/api/atomic.h \
include/odp/api/byteorder.h \
include/odp/api/chksum.h \
include/odp/api/classification.h \
@@ -47,7 +46,6 @@ odpapiinclude_HEADERS = \
odpapiplatincludedir= $(includedir)/odp/api/plat
odpapiplatinclude_HEADERS = \
include/odp/api/plat/atomic_inlines.h \
- include/odp/api/plat/atomic_types.h \
include/odp/api/plat/byteorder_inlines.h \
include/odp/api/plat/byteorder_types.h \
include/odp/api/plat/packet_flag_inlines.h \
@@ -68,6 +66,7 @@ nodist_odpapiplatinclude_HEADERS = \
if !ODP_ABI_COMPAT
odpapiabiarchincludedir= $(includedir)/odp/api/abi
odpapiabiarchinclude_HEADERS = \
+ include-abi/odp/api/abi/atomic.h \
include-abi/odp/api/abi/barrier.h \
include-abi/odp/api/abi/buffer.h \
include-abi/odp/api/abi/classification.h \
similarity index 86%
rename from platform/linux-generic/include/odp/api/plat/atomic_types.h
rename to platform/linux-generic/include-abi/odp/api/abi/atomic.h
@@ -10,8 +10,8 @@
* ODP atomic operations
*/
-#ifndef ODP_ATOMIC_TYPES_H_
-#define ODP_ATOMIC_TYPES_H_
+#ifndef ODP_API_ABI_ATOMIC_H_
+#define ODP_API_ABI_ATOMIC_H_
#ifdef __cplusplus
extern "C" {
@@ -59,6 +59,16 @@ typedef struct odp_atomic_u64_s odp_atomic_u64_t;
typedef struct odp_atomic_u32_s odp_atomic_u32_t;
+/** @ingroup odp_atomic
+ * @{
+ */
+
+#include <odp/api/plat/static_inline.h>
+#include <odp/api/plat/atomic_inlines.h>
+
+/**
+ * @}
+ */
#ifdef __cplusplus
}
#endif
deleted file mode 100644
@@ -1,42 +0,0 @@
-/* Copyright (c) 2013, Linaro Limited
- * All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
-
-/**
- * @file
- *
- * ODP atomic operations
- */
-
-#ifndef ODP_PLAT_ATOMIC_H_
-#define ODP_PLAT_ATOMIC_H_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <odp/api/align.h>
-#include <odp/api/plat/atomic_types.h>
-
-/** @ingroup odp_atomic
- * @{
- */
-
-#include <odp/api/plat/static_inline.h>
-#if ODP_ABI_COMPAT == 0
-#include <odp/api/plat/atomic_inlines.h>
-#endif
-
-/**
- * @}
- */
-
-#include <odp/api/spec/atomic.h>
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
@@ -19,6 +19,7 @@ extern "C" {
#include <odp/api/plat/ticketlock_types.h>
+#include <odp/api/plat/static_inline.h>
#if ODP_ABI_COMPAT == 0
#include <odp/api/plat/ticketlock_inlines.h>
#endif
@@ -7,6 +7,7 @@
#include "config.h"
#include <odp/api/atomic.h>
+#include <odp/api/plat/static_inline.h>
#if ODP_ABI_COMPAT == 1
#include <odp/api/plat/atomic_inlines.h>
#endif
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> --- include/Makefile.am | 1 + include/odp/api/atomic.h | 28 +++++++++++++++ platform/linux-generic/Makefile.am | 3 +- .../odp/api/abi/atomic.h} | 14 ++++++-- platform/linux-generic/include/odp/api/atomic.h | 42 ---------------------- .../linux-generic/include/odp/api/ticketlock.h | 1 + platform/linux-generic/odp_atomic.c | 1 + 7 files changed, 44 insertions(+), 46 deletions(-) create mode 100644 include/odp/api/atomic.h rename platform/linux-generic/{include/odp/api/plat/atomic_types.h => include-abi/odp/api/abi/atomic.h} (86%) delete mode 100644 platform/linux-generic/include/odp/api/atomic.h -- 2.14.2