diff mbox

[RFC,08/17] Split out platform-specific part of odp_config.h

Message ID 1398685276-4610-9-git-send-email-taras.kondratiuk@linaro.org
State RFC
Headers show

Commit Message

Taras Kondratiuk April 28, 2014, 11:41 a.m. UTC
---
 include/odp_config.h                             |   18 +++------
 platform/linux-generic/include/plat/odp_config.h |   44 ++++++++++++++++++++++
 2 files changed, 50 insertions(+), 12 deletions(-)
 create mode 100644 platform/linux-generic/include/plat/odp_config.h
diff mbox

Patch

diff --git a/include/odp_config.h b/include/odp_config.h
index 1b0b76e..e6d0cae 100644
--- a/include/odp_config.h
+++ b/include/odp_config.h
@@ -18,41 +18,35 @@ 
 extern "C" {
 #endif
 
+#include <plat/odp_config.h>
 
 /**
  * Maximum number of threads
  */
-#define ODP_CONFIG_MAX_THREADS  128
+#define ODP_CONFIG_MAX_THREADS  PLAT_ODP_CONFIG_MAX_THREADS
 
 /**
  * Maximum number of buffer pools
  */
-#define ODP_CONFIG_BUFFER_POOLS 16
+#define ODP_CONFIG_BUFFER_POOLS PLAT_ODP_CONFIG_BUFFER_POOLS
 
 /**
  * Maximum number of queues
  */
-#define ODP_CONFIG_QUEUES       1024
+#define ODP_CONFIG_QUEUES       PLAT_ODP_CONFIG_QUEUES
 
 /**
  * Number of scheduling priorities
  */
-#define ODP_CONFIG_SCHED_PRIOS  8
+#define ODP_CONFIG_SCHED_PRIOS  PLAT_ODP_CONFIG_SCHED_PRIOS
 
 /**
  * Maximum number of packet IO resources
  */
-#define ODP_CONFIG_PKTIO_ENTRIES 64
+#define ODP_CONFIG_PKTIO_ENTRIES PLAT_ODP_CONFIG_PKTIO_ENTRIES
 
 #ifdef __cplusplus
 }
 #endif
 
 #endif
-
-
-
-
-
-
-
diff --git a/platform/linux-generic/include/plat/odp_config.h b/platform/linux-generic/include/plat/odp_config.h
new file mode 100644
index 0000000..7230925
--- /dev/null
+++ b/platform/linux-generic/include/plat/odp_config.h
@@ -0,0 +1,44 @@ 
+/* Copyright (c) 2013, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier:     BSD-3-Clause
+ */
+
+
+/**
+ * @file
+ *
+ * ODP configuration
+ */
+
+#ifndef ODP_CONFIG_H_
+#error This file should be included only into corresponding top level header
+#else
+
+/**
+ * Maximum number of threads
+ */
+#define PLAT_ODP_CONFIG_MAX_THREADS  128
+
+/**
+ * Maximum number of buffer pools
+ */
+#define PLAT_ODP_CONFIG_BUFFER_POOLS 16
+
+/**
+ * Maximum number of queues
+ */
+#define PLAT_ODP_CONFIG_QUEUES       1024
+
+/**
+ * Number of scheduling priorities
+ */
+#define PLAT_ODP_CONFIG_SCHED_PRIOS  8
+
+/**
+ * Maximum number of packet IO resources
+ */
+#define PLAT_ODP_CONFIG_PKTIO_ENTRIES 64
+
+
+#endif