diff options
Diffstat (limited to 'platform/linux-generic/include/odp/api/plat/packet_io_types.h')
-rw-r--r-- | platform/linux-generic/include/odp/api/plat/packet_io_types.h | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/platform/linux-generic/include/odp/api/plat/packet_io_types.h b/platform/linux-generic/include/odp/api/plat/packet_io_types.h deleted file mode 100644 index 5a45321fb..000000000 --- a/platform/linux-generic/include/odp/api/plat/packet_io_types.h +++ /dev/null @@ -1,64 +0,0 @@ -/* Copyright (c) 2015, Linaro Limited - * All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - */ - - -/** - * @file - * - * ODP Packet IO - */ - -#ifndef ODP_PACKET_IO_TYPES_H_ -#define ODP_PACKET_IO_TYPES_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include <odp/api/std_types.h> -#include <odp/api/plat/strong_types.h> - -/** @addtogroup odp_packet_io - * Operations on a packet. - * @{ - */ - -typedef ODP_HANDLE_T(odp_pktio_t); - -/** @internal */ -typedef struct odp_pktin_queue_t { - odp_pktio_t pktio; /**< @internal pktio handle */ - int index; /**< @internal pktio queue index */ -} odp_pktin_queue_t; - -/** @internal */ -typedef struct odp_pktout_queue_t { - odp_pktio_t pktio; /**< @internal pktio handle */ - int index; /**< @internal pktio queue index */ -} odp_pktout_queue_t; - -#define ODP_PKTIO_INVALID _odp_cast_scalar(odp_pktio_t, 0) - -#define ODP_PKTIO_MACADDR_MAXSIZE 16 - -#define ODP_PKTIN_NO_WAIT 0 -#define ODP_PKTIN_WAIT UINT64_MAX - -/** Get printable format of odp_pktio_t */ -static inline uint64_t odp_pktio_to_u64(odp_pktio_t hdl) -{ - return _odp_pri(hdl); -} - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif |