aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2016-04-26 13:40:45 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2016-04-27 09:24:49 +0300
commit7a56ae3eb9947755d6b58a64bd0d06795cd097c0 (patch)
tree6223a2c9f83c3a54e4b06e3f9af8ed75b2c48962
parent64f8fa212ef3008c66a37938faf011f67fb2cb0d (diff)
api: config: removed config.h
Removed all references to config.h which is now empty. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
-rw-r--r--include/odp/api/spec/config.h44
-rw-r--r--include/odp/api/spec/cpumask.h2
-rw-r--r--include/odp/api/spec/packet.h5
-rw-r--r--include/odp_api.h2
-rw-r--r--platform/Makefile.inc1
-rw-r--r--platform/linux-generic/Makefile.am1
-rw-r--r--platform/linux-generic/include/odp/api/config.h35
-rw-r--r--platform/linux-generic/include/odp_packet_io_internal.h2
-rw-r--r--platform/linux-generic/odp_packet_io.c2
-rw-r--r--platform/linux-generic/odp_pool.c2
-rw-r--r--platform/linux-generic/odp_queue.c2
11 files changed, 6 insertions, 92 deletions
diff --git a/include/odp/api/spec/config.h b/include/odp/api/spec/config.h
deleted file mode 100644
index 4c1df417..00000000
--- a/include/odp/api/spec/config.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Copyright (c) 2013, Linaro Limited
- * All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
-
-
-/**
- * @file
- *
- * ODP configuration
- */
-
-#ifndef ODP_API_CONFIG_H_
-#define ODP_API_CONFIG_H_
-#include <odp/api/visibility_begin.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/** @defgroup odp_config ODP CONFIG
- * Platform-specific configuration limits.
- *
- * @note The API calls defined for ODP configuration limits are the
- * normative means of accessing platform-specific configuration limits.
- * Platforms MAY in addition include \#defines for these limits for
- * internal use in dimensioning arrays, however there is no guarantee
- * that applications using such \#defines will be portable across all
- * ODP implementations. Applications SHOULD expect that over time such
- * \#defines will be deprecated and removed.
- * @{
- */
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#include <odp/api/visibility_end.h>
-#endif
diff --git a/include/odp/api/spec/cpumask.h b/include/odp/api/spec/cpumask.h
index 129b3c18..6e16fd0c 100644
--- a/include/odp/api/spec/cpumask.h
+++ b/include/odp/api/spec/cpumask.h
@@ -19,8 +19,6 @@
extern "C" {
#endif
-#include <odp/api/config.h>
-
/** @defgroup odp_cpumask ODP CPUMASK
* CPU mask operations.
* @{
diff --git a/include/odp/api/spec/packet.h b/include/odp/api/spec/packet.h
index 5e84abbd..ae5a4715 100644
--- a/include/odp/api/spec/packet.h
+++ b/include/odp/api/spec/packet.h
@@ -93,9 +93,8 @@ extern "C" {
* @return Handle of allocated packet
* @retval ODP_PACKET_INVALID Packet could not be allocated
*
- * @note The default headroom and tailroom used for packets is specified by
- * the ODP_CONFIG_PACKET_HEADROOM and ODP_CONFIG_PACKET_TAILROOM defines in
- * odp_config.h.
+ * @note The minimum headroom and tailroom used for packets is specified by
+ * pool capabilities min_headroom and min_tailroom.
*/
odp_packet_t odp_packet_alloc(odp_pool_t pool, uint32_t len);
diff --git a/include/odp_api.h b/include/odp_api.h
index 44b67ee1..ec7fcd2e 100644
--- a/include/odp_api.h
+++ b/include/odp_api.h
@@ -18,8 +18,6 @@
extern "C" {
#endif
-#include <odp/api/config.h>
-
#include <odp/api/version.h>
#include <odp/api/std_types.h>
#include <odp/api/compiler.h>
diff --git a/platform/Makefile.inc b/platform/Makefile.inc
index 863da93b..85bc2e81 100644
--- a/platform/Makefile.inc
+++ b/platform/Makefile.inc
@@ -27,7 +27,6 @@ odpapispecinclude_HEADERS = \
$(top_srcdir)/include/odp/api/spec/byteorder.h \
$(top_srcdir)/include/odp/api/spec/classification.h \
$(top_srcdir)/include/odp/api/spec/compiler.h \
- $(top_srcdir)/include/odp/api/spec/config.h \
$(top_srcdir)/include/odp/api/spec/cpu.h \
$(top_srcdir)/include/odp/api/spec/cpumask.h \
$(top_srcdir)/include/odp/api/spec/crypto.h \
diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am
index cbcb59eb..b3e0d285 100644
--- a/platform/linux-generic/Makefile.am
+++ b/platform/linux-generic/Makefile.am
@@ -22,7 +22,6 @@ odpapiinclude_HEADERS = \
$(srcdir)/include/odp/api/byteorder.h \
$(srcdir)/include/odp/api/classification.h \
$(srcdir)/include/odp/api/compiler.h \
- $(srcdir)/include/odp/api/config.h \
$(srcdir)/include/odp/api/cpu.h \
$(srcdir)/include/odp/api/cpumask.h \
$(srcdir)/include/odp/api/crypto.h \
diff --git a/platform/linux-generic/include/odp/api/config.h b/platform/linux-generic/include/odp/api/config.h
deleted file mode 100644
index 1f16438d..00000000
--- a/platform/linux-generic/include/odp/api/config.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* Copyright (c) 2015, Linaro Limited
- * All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
-
-/**
- * @file
- *
- * ODP configuration
- */
-
-#ifndef ODP_PLAT_CONFIG_H_
-#define ODP_PLAT_CONFIG_H_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/** @ingroup odp_config ODP CONFIG
- * Platform-specific configuration limits
- * @{
- */
-
-#include <odp/api/spec/config.h>
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/platform/linux-generic/include/odp_packet_io_internal.h b/platform/linux-generic/include/odp_packet_io_internal.h
index 5d102f4e..de6dab6f 100644
--- a/platform/linux-generic/include/odp_packet_io_internal.h
+++ b/platform/linux-generic/include/odp_packet_io_internal.h
@@ -25,7 +25,7 @@ extern "C" {
#include <odp_debug_internal.h>
#include <odp_packet_io_ring_internal.h>
-#include <odp/api/config.h>
+#include <odp_config_internal.h>
#include <odp/api/hints.h>
#include <net/if.h>
diff --git a/platform/linux-generic/odp_packet_io.c b/platform/linux-generic/odp_packet_io.c
index c8867334..db5a3df5 100644
--- a/platform/linux-generic/odp_packet_io.c
+++ b/platform/linux-generic/odp_packet_io.c
@@ -15,7 +15,7 @@
#include <odp/api/ticketlock.h>
#include <odp/api/shared_memory.h>
#include <odp_packet_socket.h>
-#include <odp/api/config.h>
+#include <odp_config_internal.h>
#include <odp_queue_internal.h>
#include <odp_schedule_internal.h>
#include <odp_classification_internal.h>
diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c
index ac087a6e..5ed7080a 100644
--- a/platform/linux-generic/odp_pool.c
+++ b/platform/linux-generic/odp_pool.c
@@ -15,7 +15,7 @@
#include <odp/api/shared_memory.h>
#include <odp/api/align.h>
#include <odp_internal.h>
-#include <odp/api/config.h>
+#include <odp_config_internal.h>
#include <odp/api/hints.h>
#include <odp/api/thread.h>
#include <odp_debug_internal.h>
diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c
index d4043f07..16ec1790 100644
--- a/platform/linux-generic/odp_queue.c
+++ b/platform/linux-generic/odp_queue.c
@@ -16,7 +16,7 @@
#include <odp/api/shared_memory.h>
#include <odp/api/schedule.h>
#include <odp_schedule_internal.h>
-#include <odp/api/config.h>
+#include <odp_config_internal.h>
#include <odp_packet_io_internal.h>
#include <odp_packet_io_queue.h>
#include <odp_debug_internal.h>