aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp/plat/packet_types.h
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2015-01-07 20:47:11 +0100
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-01-29 20:42:37 +0300
commit896ad66d38abba4508d82776c91e41137c075067 (patch)
tree1d55b3d204e1b726b630481d48956d098112a786 /platform/linux-generic/include/odp/plat/packet_types.h
parentf72ab65c4cfa1cbd4f65007403242fcfbca4f2c3 (diff)
api: plat: move platform type headers into plat directory
Makes it easier to see what's platform specific types Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Reviewed-by: Balasubramanian Manoharan <bala.manoharan@linaro.org> Reviewed-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic/include/odp/plat/packet_types.h')
-rw-r--r--platform/linux-generic/include/odp/plat/packet_types.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/platform/linux-generic/include/odp/plat/packet_types.h b/platform/linux-generic/include/odp/plat/packet_types.h
new file mode 100644
index 000000000..60d64439c
--- /dev/null
+++ b/platform/linux-generic/include/odp/plat/packet_types.h
@@ -0,0 +1,47 @@
+/* Copyright (c) 2015, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+
+/**
+ * @file
+ *
+ * ODP packet descriptor
+ */
+
+#ifndef ODP_PACKET_TYPES_H_
+#define ODP_PACKET_TYPES_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+#include <odp/plat/buffer_types.h>
+
+/** @addtogroup odp_packet ODP PACKET
+ * Operations on a packet.
+ * @{
+ */
+
+typedef odp_buffer_t odp_packet_t;
+
+#define ODP_PACKET_INVALID ODP_BUFFER_INVALID
+
+#define ODP_PACKET_OFFSET_INVALID (0x0fffffff)
+
+typedef odp_buffer_t odp_packet_seg_t;
+
+#define ODP_PACKET_SEG_INVALID ODP_BUFFER_INVALID
+
+/**
+ * @}
+ */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif