@@ -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
-
-
-
-
-
-
-
new file mode 100644
@@ -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