diff mbox

[API-NEXT,PATCHv3,2/6] linux-generic: pool: add odp_pool_type_t enum

Message ID 1436051526-15926-2-git-send-email-bill.fischofer@linaro.org
State Accepted
Commit c9c623d7c20ccccc3210a5d461821529960a8146
Headers show

Commit Message

Bill Fischofer July 4, 2015, 11:12 p.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 platform/linux-generic/include/odp/plat/pool_types.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff mbox

Patch

diff --git a/platform/linux-generic/include/odp/plat/pool_types.h b/platform/linux-generic/include/odp/plat/pool_types.h
index 568556f..4b32c29 100644
--- a/platform/linux-generic/include/odp/plat/pool_types.h
+++ b/platform/linux-generic/include/odp/plat/pool_types.h
@@ -15,6 +15,7 @@ 
 
 #include <odp/std_types.h>
 #include <odp/plat/strong_types.h>
+#include <odp/plat/event_types.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -29,6 +30,15 @@  typedef ODP_HANDLE_T(odp_pool_t);
 
 #define ODP_POOL_INVALID _odp_cast_scalar(odp_pool_t, 0xffffffff)
 
+/**
+ * Pool type
+ */
+typedef enum odp_pool_type_t {
+	ODP_POOL_BUFFER  = ODP_EVENT_BUFFER,
+	ODP_POOL_PACKET  = ODP_EVENT_PACKET,
+	ODP_POOL_TIMEOUT = ODP_EVENT_TIMEOUT,
+} odp_pool_type_t;
+
 /** Get printable format of odp_pool_t */
 static inline uint64_t odp_pool_to_u64(odp_pool_t hdl)
 {