diff mbox

[API-NEXT,PATCHv2,05/10] linux-generic: pool: add odp_pool_type_t enum

Message ID 1435714761-23951-5-git-send-email-bill.fischofer@linaro.org
State Superseded
Headers show

Commit Message

Bill Fischofer July 1, 2015, 1:39 a.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)
 {