-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux-gen, include: switch packet headers to api+abi
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
- Loading branch information
Dmitry Eremin-Solenikov
committed
Oct 22, 2017
1 parent
90db1d0
commit dfb3cea
Showing
15 changed files
with
136 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* Copyright (c) 2015, Linaro Limited | ||
* All rights reserved. | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
|
||
/** | ||
* @file | ||
* | ||
* ODP packet descriptor | ||
*/ | ||
|
||
#ifndef ODP_API_ABI_PACKET_H_ | ||
#define ODP_API_ABI_PACKET_H_ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#include <odp/api/std_types.h> | ||
#include <odp/api/plat/strong_types.h> | ||
|
||
/** @ingroup odp_packet | ||
* @{ | ||
*/ | ||
|
||
typedef ODP_HANDLE_T(odp_packet_t); | ||
|
||
#define ODP_PACKET_INVALID _odp_cast_scalar(odp_packet_t, 0) | ||
|
||
#define ODP_PACKET_OFFSET_INVALID 0xffff | ||
|
||
typedef uint8_t odp_packet_seg_t; | ||
|
||
static inline uint8_t _odp_packet_seg_to_ndx(odp_packet_seg_t seg) | ||
{ | ||
return (uint8_t)seg; | ||
} | ||
|
||
static inline odp_packet_seg_t _odp_packet_seg_from_ndx(uint8_t ndx) | ||
{ | ||
return (odp_packet_seg_t)ndx; | ||
} | ||
|
||
#define ODP_PACKET_SEG_INVALID ((odp_packet_seg_t)-1) | ||
|
||
typedef enum { | ||
ODP_PACKET_GREEN = 0, | ||
ODP_PACKET_YELLOW = 1, | ||
ODP_PACKET_RED = 2, | ||
ODP_PACKET_ALL_COLORS = 3, | ||
} odp_packet_color_t; | ||
|
||
#define ODP_NUM_PACKET_COLORS 3 | ||
|
||
#include <odp/api/plat/static_inline.h> | ||
#include <odp/api/plat/packet_inlines.h> | ||
#include <odp/api/plat/packet_inlines_api.h> | ||
|
||
/** | ||
* @} | ||
*/ | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |
28 changes: 28 additions & 0 deletions
28
platform/linux-generic/include-abi/odp/api/abi/packet_flags.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* Copyright (c) 2015, Linaro Limited | ||
* All rights reserved. | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
|
||
/** | ||
* @file | ||
* | ||
* ODP packet descriptor | ||
*/ | ||
|
||
#ifndef ODP_API_ABI_PACKET_FLAGS_H_ | ||
#define ODP_API_ABI_PACKET_FLAGS_H_ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#include <odp/api/plat/packet_flag_inlines.h> | ||
#include <odp/api/plat/packet_flag_inlines_api.h> | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.