AM65x MCU+ SDK
09.01.00
udma_types.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018-2021 Texas Instruments Incorporated
3
*
4
* Redistribution and use in source and binary forms, with or without
5
* modification, are permitted provided that the following conditions
6
* are met:
7
*
8
* Redistributions of source code must retain the above copyright
9
* notice, this list of conditions and the following disclaimer.
10
*
11
* Redistributions in binary form must reproduce the above copyright
12
* notice, this list of conditions and the following disclaimer in the
13
* documentation and/or other materials provided with the
14
* distribution.
15
*
16
* Neither the name of Texas Instruments Incorporated nor the names of
17
* its contributors may be used to endorse or promote products derived
18
* from this software without specific prior written permission.
19
*
20
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
*/
32
47
#ifndef UDMA_TYPES_H_
48
#define UDMA_TYPES_H_
49
50
/* ========================================================================== */
51
/* Include Files */
52
/* ========================================================================== */
53
54
/* None */
55
56
#ifdef __cplusplus
57
extern
"C"
{
58
#endif
59
60
/* ========================================================================== */
61
/* Macros & Typedefs */
62
/* ========================================================================== */
63
65
typedef
void
*
Udma_DrvHandle
;
67
typedef
void
*
Udma_ChHandle
;
69
typedef
void
*
Udma_EventHandle
;
71
typedef
void
*
Udma_RingHandle
;
73
typedef
void
*
Udma_FlowHandle
;
74
#if (UDMA_SOC_CFG_RING_MON_PRESENT == 1)
75
76
typedef
struct
Udma_RingMonObj * Udma_RingMonHandle;
77
#endif
78
80
#define UDMA_CACHELINE_ALIGNMENT (128U)
81
83
#define UDMA_ALIGN_SIZE(x) (((x) + UDMA_CACHELINE_ALIGNMENT) & ~(UDMA_CACHELINE_ALIGNMENT - 1U))
84
86
#define UDMA_DEFAULT_CH_DISABLE_TIMEOUT (100U)
87
97
#define UDMA_SOK ( (int32_t) (0))
98
100
#define UDMA_EFAIL (-(int32_t) (1))
101
103
#define UDMA_EBADARGS (-(int32_t) (2))
104
106
#define UDMA_EINVALID_PARAMS (-(int32_t) (3))
107
110
#define UDMA_ETIMEOUT (-(int32_t) (4))
111
112
#define UDMA_EALLOC (-(int32_t) (5))
113
125
#define UDMA_INST_ID_0 (0U)
126
#define UDMA_INST_ID_1 (1U)
127
#define UDMA_INST_ID_2 (2U)
128
#define UDMA_INST_ID_3 (3U)
129
140
#define UDMA_UTC_ID0 (0U)
141
#define UDMA_UTC_ID1 (1U)
142
#define UDMA_UTC_ID2 (2U)
143
#define UDMA_UTC_ID3 (3U)
144
157
#define UDMA_MAPPED_GROUP0 (0U)
158
#define UDMA_MAPPED_GROUP1 (1U)
159
#define UDMA_MAPPED_GROUP2 (2U)
160
#define UDMA_MAPPED_GROUP3 (3U)
161
#define UDMA_MAPPED_GROUP4 (4U)
162
#define UDMA_MAPPED_GROUP5 (5U)
163
#define UDMA_MAPPED_GROUP6 (6U)
164
#define UDMA_MAPPED_GROUP7 (7U)
165
167
/* ========================================================================== */
168
/* Structure Declarations */
169
/* ========================================================================== */
170
171
/* None */
172
173
/* ========================================================================== */
174
/* Function Declarations */
175
/* ========================================================================== */
176
177
/* None */
178
179
/* ========================================================================== */
180
/* Static Function Definitions */
181
/* ========================================================================== */
182
183
/* None */
184
185
#ifdef __cplusplus
186
}
187
#endif
188
189
#endif
/* #ifndef UDMA_TYPES_H_ */
190
Udma_FlowHandle
void * Udma_FlowHandle
UDMA flow handle.
Definition:
udma_types.h:73
Udma_ChHandle
void * Udma_ChHandle
UDMA channel handle.
Definition:
udma_types.h:67
Udma_RingHandle
void * Udma_RingHandle
UDMA ring handle.
Definition:
udma_types.h:71
Udma_EventHandle
void * Udma_EventHandle
UDMA event handle.
Definition:
udma_types.h:69
Udma_DrvHandle
void * Udma_DrvHandle
UDMA driver handle.
Definition:
udma_types.h:65
source
drivers
udma
include
udma_types.h
generated by
1.8.20