blob: 962ed4c5c4bbdc76fde85675d461d95a5c62ccd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
/* Copyright (c) 2014, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file
* ODP implementation types
* This file contains all of the implementation-defined types for ODP abstract
* definitions. Having this in one file means that other ODP API files are
* implementation-independent and avoids circular dependencies for files that
* refer to types managed by other components. Included here are typedefs and
* related typed constants that are referenced by other ODP API files.
*/
#ifndef ODP_IMPL_TYPES_H_
#define ODP_IMPL_TYPES_H_
/** @defgroup odp_platform_types ODP PLATFORM TYPES
* Implementation specific definitions for ODP abstract types.
* @{
*/
/** ODP Buffer pool */
typedef uint32_t odp_pool_t;
/** Invalid buffer pool */
#define ODP_POOL_INVALID (0xffffffff)
/** ODP buffer */
typedef uint32_t odp_buffer_t;
/** Invalid buffer */
#define ODP_BUFFER_INVALID (0xffffffff)
/** ODP buffer segment */
typedef odp_buffer_t odp_buffer_seg_t;
/** Invalid segment */
#define ODP_SEGMENT_INVALID ODP_BUFFER_INVALID
/** ODP packet */
typedef odp_buffer_t odp_packet_t;
/** Invalid packet */
#define ODP_PACKET_INVALID ODP_BUFFER_INVALID
/** Invalid packet offset */
#define ODP_PACKET_OFFSET_INVALID (0x0fffffff)
/** ODP packet segment */
typedef odp_buffer_t odp_packet_seg_t;
/** Invalid packet segment */
#define ODP_PACKET_SEG_INVALID ODP_BUFFER_INVALID
/** ODP packet IO handle */
typedef uint32_t odp_pktio_t;
/** Invalid packet IO handle */
#define ODP_PKTIO_INVALID 0
/** odp_pktio_t value to indicate any port */
#define ODP_PKTIO_ANY ((odp_pktio_t)~0)
/** ODP event */
typedef odp_buffer_t odp_event_t;
/** Invalid event */
#define ODP_EVENT_INVALID ODP_BUFFER_INVALID
/**
* ODP shared memory block
*/
typedef uint32_t odp_shm_t;
/** Invalid shared memory block */
#define ODP_SHM_INVALID 0
#define ODP_SHM_NULL ODP_SHM_INVALID /**< Synonym for buffer pool use */
/** ODP Class of service handle */
typedef uint32_t odp_cos_t;
/**
* @}
*/
#endif
|