AM62Ax MCU+ SDK  10.01.00
udma_soc.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018-2024 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_SOC_H_
48 #define UDMA_SOC_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 
73 #define UDMA_INST_ID_BCDMA_0 (UDMA_INST_ID_2)
74 
75 #define UDMA_INST_ID_PKTDMA_0 (UDMA_INST_ID_3)
76 
77 #define UDMA_INST_ID_START (UDMA_INST_ID_2)
78 
79 #define UDMA_INST_ID_MAX (UDMA_INST_ID_3)
80 
81 #define UDMA_NUM_INST_ID (UDMA_INST_ID_MAX - UDMA_INST_ID_START + 1U)
82 
93 #define UDMA_SOC_CFG_LCDMA_PRESENT (1U)
94 
96 #define UDMA_SOC_CFG_RA_LCDMA_PRESENT (1U)
97 
98 #define UDMA_SOC_CFG_UDMAP_PRESENT (0U)
99 
101 #define UDMA_SOC_CFG_PROXY_PRESENT (0U)
102 
104 #define UDMA_SOC_CFG_CLEC_PRESENT (0U)
105 
107 #define UDMA_SOC_CFG_RA_NORMAL_PRESENT (0U)
108 
110 #define UDMA_SOC_CFG_RING_MON_PRESENT (0U)
111 
113 #define UDMA_SOC_CFG_APPLY_RING_WORKAROUND (0U)
114 
126 #define UDMA_TX_UHC_CHANS_FDEPTH (0U)
127 
128 #define UDMA_TX_HC_CHANS_FDEPTH (0U)
129 
130 #define UDMA_TX_CHANS_FDEPTH (192U)
131 
142 #define UDMA_RINGACC_ASEL_ENDPOINT_PHYSADDR ((uint32_t) 0U)
143 
144 #define UDMA_RINGACC_ASEL_ENDPOINT_PCIE0 ((uint32_t) 1U)
145 
146 #define UDMA_RINGACC_ASEL_ENDPOINT_ACP_WR_ALLOC ((uint32_t) 14U)
147 
148 #define UDMA_RINGACC_ASEL_ENDPOINT_ACP_RD_ALLOC ((uint32_t) 15U)
149 
152 #define UDMA_NUM_MAPPED_TX_GROUP (4U)
153 
161 #define UDMA_MAPPED_TX_GROUP_CPSW (UDMA_MAPPED_GROUP0)
162 #define UDMA_MAPPED_TX_GROUP_SAUL (UDMA_MAPPED_GROUP1)
163 #define UDMA_MAPPED_TX_GROUP_ICSSG_0 (UDMA_MAPPED_GROUP2)
164 #define UDMA_MAPPED_TX_GROUP_ICSSG_1 (UDMA_MAPPED_GROUP3)
165 
168 #define UDMA_NUM_MAPPED_RX_GROUP (4U)
169 
177 #define UDMA_MAPPED_RX_GROUP_CPSW (UDMA_MAPPED_GROUP4)
178 #define UDMA_MAPPED_RX_GROUP_SAUL (UDMA_MAPPED_GROUP5)
179 #define UDMA_MAPPED_RX_GROUP_ICSSG_0 (UDMA_MAPPED_GROUP6)
180 #define UDMA_MAPPED_RX_GROUP_ICSSG_1 (UDMA_MAPPED_GROUP7)
181 
191 #define UDMA_UTC_TYPE_DRU (0U)
192 #define UDMA_UTC_TYPE_DRU_VHWA (1U)
193 
194 #define UDMA_DEFAULT_UTC_CH_BUS_PRIORITY (4U)
195 
196 #define UDMA_DEFAULT_UTC_CH_BUS_QOS (4U)
197 
198 #define UDMA_DEFAULT_UTC_CH_BUS_ORDERID (0U)
199 
200 #define CSL_PSILCFG_DMSS_MAIN_VPAC_TC0_CC_PSILD_THREAD_OFFSET (0x8000U | 0x4820U)
201 
202 #define UDMA_DEFAULT_UTC_CH_DMA_PRIORITY \
203  (TISCI_MSG_VALUE_RM_UDMAP_CH_SCHED_PRIOR_MEDHIGH)
204 
206 #define UDMA_DEFAULT_UTC_DRU_QUEUE_ID (CSL_DRU_QUEUE_ID_3)
207 
209 #define UDMA_NUM_UTC_INSTANCE (2U)
210 
220 #define UDMA_UTC_ID_MSMC_DRU0 (UDMA_UTC_ID0)
221 #define UDMA_UTC_ID_VPAC_TC0 (UDMA_UTC_ID1)
222 
225 #define UDMA_UTC_START_CH_DRU0 (0U)
226 
227 #define UDMA_UTC_NUM_CH_DRU0 (32U)
228 
229 #define UDMA_UTC_START_THREAD_ID_DRU0 (0x8000U | 0x4800U)
230 
232 #define UDMA_UTC_START_CH_VPAC_TC0 (CSL_PSILCFG_DMSS_MAIN_VPAC_TC0_CC_PSILS_THREAD_OFFSET - CSL_PSILCFG_DMSS_MAIN_MSMC0_PSILS_THREAD_OFFSET)
233 
234 #define UDMA_UTC_NUM_CH_VPAC_TC0 (CSL_PSILCFG_DMSS_MAIN_VPAC_TC0_CC_PSILS_THREAD_CNT)
235 
236 #define UDMA_UTC_START_THREAD_ID_VPAC_TC0 (CSL_PSILCFG_DMSS_MAIN_VPAC_TC0_CC_PSILD_THREAD_OFFSET)
237 
239 #if defined(__C7504__)
240 #define UDMA_UTC_BASE_DRU0 (CSL_C7X256V0_DRU_BASE)
241 #else
242 #define UDMA_UTC_BASE_DRU0 (CSL_VPAC0_IVPAC_TOP_0_CFG_SLV_DRU_UTC_VPAC0_DRU_MMR_CFG_DRU_DRU_BASE)
243 #endif
244 
253 /*
254  * Locally used core ID to define default RM configuration.
255  * Not to be used by caller
256  */
257 #define UDMA_CORE_ID_MPU1_0 (0U)
258 #define UDMA_CORE_ID_MCU2_0 (1U)
259 #define UDMA_CORE_ID_MCU2_1 (2U)
260 #define UDMA_CORE_ID_MCU1_0 (3U)
261 #define UDMA_CORE_ID_MCU1_1 (4U)
262 /* Total number of cores */
263 #define UDMA_NUM_CORE (5U)
264 
282 #define UDMA_DRU_CORE_ID_MPU1_0 (CSL_DRU_CORE_ID_2)
283 #define UDMA_DRU_CORE_ID_MCU2_0 (CSL_DRU_CORE_ID_2)
284 #define UDMA_DRU_CORE_ID_MCU2_1 (CSL_DRU_CORE_ID_2)
285 #define UDMA_DRU_CORE_ID_MCU3_0 (CSL_DRU_CORE_ID_2)
286 #define UDMA_DRU_CORE_ID_MCU3_1 (CSL_DRU_CORE_ID_2)
287 #define UDMA_DRU_CORE_ID_C7X_1 (CSL_DRU_CORE_ID_0)
288 #define UDMA_DRU_CORE_ID_C66X_1 (CSL_DRU_CORE_ID_1)
289 #define UDMA_DRU_CORE_ID_C66X_2 (CSL_DRU_CORE_ID_2)
290 #define UDMA_DRU_CORE_ID_MCU1_0 (CSL_DRU_CORE_ID_2)
291 #define UDMA_DRU_CORE_ID_MCU1_1 (CSL_DRU_CORE_ID_2)
292 
304 #define UDMA_RM_RES_ID_BC_UHC (0U)
305 
306 #define UDMA_RM_RES_ID_BC_HC (1U)
307 
308 #define UDMA_RM_RES_ID_BC (2U)
309 
310 #define UDMA_RM_RES_ID_TX_UHC (3U)
311 
312 #define UDMA_RM_RES_ID_TX_HC (4U)
313 
314 #define UDMA_RM_RES_ID_TX (5U)
315 
316 #define UDMA_RM_RES_ID_RX_UHC (6U)
317 
318 #define UDMA_RM_RES_ID_RX_HC (7U)
319 
320 #define UDMA_RM_RES_ID_RX (8U)
321 
322 #define UDMA_RM_RES_ID_GLOBAL_EVENT (9U)
323 
324 #define UDMA_RM_RES_ID_VINTR (10U)
325 
326 #define UDMA_RM_RES_ID_MAPPED_TX_CPSW (11U)
327 
328 #define UDMA_RM_RES_ID_MAPPED_TX_SAUL_0 (12U)
329 
330 #define UDMA_RM_RES_ID_MAPPED_TX_SAUL_1 (13U)
331 
332 #define UDMA_RM_RES_ID_MAPPED_TX_ICSSG_0 (14U)
333 
334 #define UDMA_RM_RES_ID_MAPPED_TX_ICSSG_1 (15U)
335 
336 #define UDMA_RM_RES_ID_MAPPED_RX_CPSW (16U)
337 
338 #define UDMA_RM_RES_ID_MAPPED_RX_SAUL_0 (17U)
339 
340 #define UDMA_RM_RES_ID_MAPPED_RX_SAUL_1 (18U)
341 
342 #define UDMA_RM_RES_ID_MAPPED_RX_SAUL_2 (19U)
343 
344 #define UDMA_RM_RES_ID_MAPPED_RX_SAUL_3 (20U)
345 
346 #define UDMA_RM_RES_ID_MAPPED_RX_ICSSG_0 (21U)
347 
348 #define UDMA_RM_RES_ID_MAPPED_RX_ICSSG_1 (22U)
349 
350 #define UDMA_RM_RES_ID_MAPPED_TX_RING_CPSW (23U)
351 
352 #define UDMA_RM_RES_ID_MAPPED_TX_RING_SAUL_0 (24U)
353 
354 #define UDMA_RM_RES_ID_MAPPED_TX_RING_SAUL_1 (25U)
355 
356 #define UDMA_RM_RES_ID_MAPPED_TX_RING_ICSSG_0 (26U)
357 
358 #define UDMA_RM_RES_ID_MAPPED_TX_RING_ICSSG_1 (27U)
359 
360 #define UDMA_RM_RES_ID_MAPPED_RX_RING_CPSW (28U)
361 
362 #define UDMA_RM_RES_ID_MAPPED_RX_RING_SAUL_0 (29U)
363 
364 #define UDMA_RM_RES_ID_MAPPED_RX_RING_SAUL_1 (30U)
365 
366 #define UDMA_RM_RES_ID_MAPPED_RX_RING_SAUL_2 (31U)
367 
368 #define UDMA_RM_RES_ID_MAPPED_RX_RING_SAUL_3 (32U)
369 
370 #define UDMA_RM_RES_ID_MAPPED_RX_RING_ICSSG_0 (33U)
371 
372 #define UDMA_RM_RES_ID_MAPPED_RX_RING_ICSSG_1 (34U)
373 
374 #define UDMA_RM_NUM_BCDMA_RES (11U)
375 
376 #define UDMA_RM_NUM_PKTDMA_RES (35U)
377 
378 #define UDMA_RM_NUM_RES (35U)
379 
383 #define UDMA_RM_NUM_SHARED_RES (2U)
384 
386 #define UDMA_RM_SHARED_RES_MAX_INST (UDMA_NUM_CORE)
387 
389 #define UDMA_PSIL_DEST_THREAD_OFFSET (0x8000U)
390 
400 #define UDMA_PSIL_CH_CPSW2_RX (0x4500U)
401 #define UDMA_PSIL_CH_SAUL0_RX (0x7504U)
402 #define UDMA_PSIL_CH_ICSS_G0_RX (0x4100U)
403 #define UDMA_PSIL_CH_ICSS_G1_RX (0x4200U)
404 
405 #define UDMA_PSIL_CH_CPSW2_TX (UDMA_PSIL_CH_CPSW2_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
406 #define UDMA_PSIL_CH_SAUL0_TX (0xf500U)
407 #define UDMA_PSIL_CH_ICSS_G0_TX (UDMA_PSIL_CH_ICSS_G0_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
408 #define UDMA_PSIL_CH_ICSS_G1_TX (UDMA_PSIL_CH_ICSS_G1_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
409 
410 #define UDMA_PSIL_CH_CPSW2_TX_CNT (8U)
411 #define UDMA_PSIL_CH_SAUL0_TX_CNT (2U)
412 #define UDMA_PSIL_CH_ICSS_G0_TX_CNT (9U)
413 #define UDMA_PSIL_CH_ICSS_G1_TX_CNT (9U)
414 
415 #define UDMA_PSIL_CH_CPSW2_RX_CNT (1U)
416 #define UDMA_PSIL_CH_SAUL0_RX_CNT (4U)
417 #define UDMA_PSIL_CH_ICSS_G0_RX_CNT (5U)
418 #define UDMA_PSIL_CH_ICSS_G1_RX_CNT (5U)
419 
441 /*
442  * PDMA MAIN0 MCSPI RX Channels
443  */
444 #define UDMA_PDMA_CH_MAIN0_MCSPI0_CH0_RX (0x4300U + 0U)
445 #define UDMA_PDMA_CH_MAIN0_MCSPI0_CH1_RX (0x4300U + 1U)
446 #define UDMA_PDMA_CH_MAIN0_MCSPI0_CH2_RX (0x4300U + 2U)
447 #define UDMA_PDMA_CH_MAIN0_MCSPI0_CH3_RX (0x4300U + 3U)
448 #define UDMA_PDMA_CH_MAIN0_MCSPI1_CH0_RX (0x4300U + 4U)
449 #define UDMA_PDMA_CH_MAIN0_MCSPI1_CH1_RX (0x4300U + 5U)
450 #define UDMA_PDMA_CH_MAIN0_MCSPI1_CH2_RX (0x4300U + 6U)
451 #define UDMA_PDMA_CH_MAIN0_MCSPI1_CH3_RX (0x4300U + 7U)
452 #define UDMA_PDMA_CH_MAIN0_MCSPI2_CH0_RX (0x4300U + 8U)
453 #define UDMA_PDMA_CH_MAIN0_MCSPI2_CH1_RX (0x4300U + 9U)
454 #define UDMA_PDMA_CH_MAIN0_MCSPI2_CH2_RX (0x4300U + 10U)
455 #define UDMA_PDMA_CH_MAIN0_MCSPI2_CH3_RX (0x4300U + 11U)
456 #define UDMA_PDMA_CH_MAIN0_MCSPI3_CH0_RX (0x4300U + 12U)
457 #define UDMA_PDMA_CH_MAIN0_MCSPI3_CH1_RX (0x4300U + 13U)
458 #define UDMA_PDMA_CH_MAIN0_MCSPI3_CH2_RX (0x4300U + 14U)
459 #define UDMA_PDMA_CH_MAIN0_MCSPI3_CH3_RX (0x4300U + 15U)
460 /*
461  * PDMA MAIN0 UART RX Channels
462  */
463 #define UDMA_PDMA_CH_MAIN0_UART0_RX (0x4400 + 0U)
464 #define UDMA_PDMA_CH_MAIN0_UART1_RX (0x4400 + 1U)
465 #define UDMA_PDMA_CH_MAIN0_UART2_RX (0x4400 + 2U)
466 #define UDMA_PDMA_CH_MAIN0_UART3_RX (0x4400 + 3U)
467 #define UDMA_PDMA_CH_MAIN0_UART4_RX (0x4400 + 4U)
468 #define UDMA_PDMA_CH_MAIN0_UART5_RX (0x4400 + 5U)
469 #define UDMA_PDMA_CH_MAIN0_UART6_RX (0x4400 + 6U)
470 /*
471  * PDMA MAIN0 MCASP RX Channels
472  */
473 #define UDMA_PDMA_CH_MAIN0_MCASP0_RX (0x4500U + 0U)
474 #define UDMA_PDMA_CH_MAIN0_MCASP1_RX (0x4500U + 1U)
475 #define UDMA_PDMA_CH_MAIN0_MCASP2_RX (0x4500U + 2U)
476 
488 /*
489  * PDMA MAIN0 MCSPI TX Channels
490  */
491 #define UDMA_PDMA_CH_MAIN0_MCSPI0_CH0_TX (UDMA_PDMA_CH_MAIN0_MCSPI0_CH0_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
492 #define UDMA_PDMA_CH_MAIN0_MCSPI0_CH1_TX (UDMA_PDMA_CH_MAIN0_MCSPI0_CH1_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
493 #define UDMA_PDMA_CH_MAIN0_MCSPI0_CH2_TX (UDMA_PDMA_CH_MAIN0_MCSPI0_CH2_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
494 #define UDMA_PDMA_CH_MAIN0_MCSPI0_CH3_TX (UDMA_PDMA_CH_MAIN0_MCSPI0_CH3_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
495 #define UDMA_PDMA_CH_MAIN0_MCSPI1_CH0_TX (UDMA_PDMA_CH_MAIN0_MCSPI1_CH0_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
496 #define UDMA_PDMA_CH_MAIN0_MCSPI1_CH1_TX (UDMA_PDMA_CH_MAIN0_MCSPI1_CH1_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
497 #define UDMA_PDMA_CH_MAIN0_MCSPI1_CH2_TX (UDMA_PDMA_CH_MAIN0_MCSPI1_CH2_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
498 #define UDMA_PDMA_CH_MAIN0_MCSPI1_CH3_TX (UDMA_PDMA_CH_MAIN0_MCSPI1_CH3_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
499 #define UDMA_PDMA_CH_MAIN0_MCSPI2_CH0_TX (UDMA_PDMA_CH_MAIN0_MCSPI2_CH0_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
500 #define UDMA_PDMA_CH_MAIN0_MCSPI2_CH1_TX (UDMA_PDMA_CH_MAIN0_MCSPI2_CH1_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
501 #define UDMA_PDMA_CH_MAIN0_MCSPI2_CH2_TX (UDMA_PDMA_CH_MAIN0_MCSPI2_CH2_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
502 #define UDMA_PDMA_CH_MAIN0_MCSPI2_CH3_TX (UDMA_PDMA_CH_MAIN0_MCSPI2_CH3_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
503 #define UDMA_PDMA_CH_MAIN0_MCSPI3_CH0_TX (UDMA_PDMA_CH_MAIN0_MCSPI3_CH0_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
504 #define UDMA_PDMA_CH_MAIN0_MCSPI3_CH1_TX (UDMA_PDMA_CH_MAIN0_MCSPI3_CH1_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
505 #define UDMA_PDMA_CH_MAIN0_MCSPI3_CH2_TX (UDMA_PDMA_CH_MAIN0_MCSPI3_CH2_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
506 #define UDMA_PDMA_CH_MAIN0_MCSPI3_CH3_TX (UDMA_PDMA_CH_MAIN0_MCSPI3_CH3_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
507 /*
508  * PDMA MAIN0 UART TX Channels
509  */
510 #define UDMA_PDMA_CH_MAIN0_UART0_TX (UDMA_PDMA_CH_MAIN0_UART0_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
511 #define UDMA_PDMA_CH_MAIN0_UART1_TX (UDMA_PDMA_CH_MAIN0_UART1_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
512 #define UDMA_PDMA_CH_MAIN0_UART2_TX (UDMA_PDMA_CH_MAIN0_UART2_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
513 #define UDMA_PDMA_CH_MAIN0_UART3_TX (UDMA_PDMA_CH_MAIN0_UART3_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
514 #define UDMA_PDMA_CH_MAIN0_UART4_TX (UDMA_PDMA_CH_MAIN0_UART4_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
515 #define UDMA_PDMA_CH_MAIN0_UART5_TX (UDMA_PDMA_CH_MAIN0_UART5_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
516 #define UDMA_PDMA_CH_MAIN0_UART6_TX (UDMA_PDMA_CH_MAIN0_UART6_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
517 /*
518  * PDMA MAIN0 MCASP TX Channels
519  */
520 #define UDMA_PDMA_CH_MAIN0_MCASP0_TX (UDMA_PDMA_CH_MAIN0_MCASP0_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
521 #define UDMA_PDMA_CH_MAIN0_MCASP1_TX (UDMA_PDMA_CH_MAIN0_MCASP1_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
522 #define UDMA_PDMA_CH_MAIN0_MCASP2_TX (UDMA_PDMA_CH_MAIN0_MCASP2_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
523 
535 /*
536  * PDMA MAIN1 MCSPI RX Channels
537  */
538 #define UDMA_PDMA_CH_MAIN1_MCSPI4_CH0_RX (0x4400U + 0U)
539 #define UDMA_PDMA_CH_MAIN1_MCSPI4_CH1_RX (0x4400U + 1U)
540 #define UDMA_PDMA_CH_MAIN1_MCSPI4_CH2_RX (0x4400U + 2U)
541 #define UDMA_PDMA_CH_MAIN1_MCSPI4_CH3_RX (0x4400U + 3U)
542 /*
543  * PDMA MAIN1 UART RX Channels
544  */
545 #define UDMA_PDMA_CH_MAIN1_UART2_RX (0x4400U + 4U)
546 #define UDMA_PDMA_CH_MAIN1_UART3_RX (0x4400U + 5U)
547 #define UDMA_PDMA_CH_MAIN1_UART4_RX (0x4400U + 6U)
548 #define UDMA_PDMA_CH_MAIN1_UART5_RX (0x4400U + 7U)
549 #define UDMA_PDMA_CH_MAIN1_UART6_RX (0x4400U + 8U)
550 /*
551  * PDMA MAIN1 MCAN RX Channels
552  */
553 #define UDMA_PDMA_CH_MAIN1_MCAN0_CH0_RX (0x4400U + 9U)
554 #define UDMA_PDMA_CH_MAIN1_MCAN0_CH1_RX (0x4400U + 10U)
555 #define UDMA_PDMA_CH_MAIN1_MCAN0_CH2_RX (0x4400U + 11U)
556 #define UDMA_PDMA_CH_MAIN1_MCAN1_CH0_RX (0x4400U + 12U)
557 #define UDMA_PDMA_CH_MAIN1_MCAN1_CH1_RX (0x4400U + 13U)
558 #define UDMA_PDMA_CH_MAIN1_MCAN1_CH2_RX (0x4400U + 14U)
559 /*
560  * PDMA MAIN1 ADC RX Channels
561  */
562 #define UDMA_PDMA_CH_MAIN1_ADC0_CH0_RX (0x4400U + 15U)
563 #define UDMA_PDMA_CH_MAIN1_ADC0_CH1_RX (0x4400U + 16U)
564 
576 /*
577  * PDMA MAIN1 MCSPI TX Channels
578  */
579 #define UDMA_PDMA_CH_MAIN1_MCSPI4_CH0_TX (UDMA_PDMA_CH_MAIN1_MCSPI4_CH0_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
580 #define UDMA_PDMA_CH_MAIN1_MCSPI4_CH1_TX (UDMA_PDMA_CH_MAIN1_MCSPI4_CH1_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
581 #define UDMA_PDMA_CH_MAIN1_MCSPI4_CH2_TX (UDMA_PDMA_CH_MAIN1_MCSPI4_CH2_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
582 #define UDMA_PDMA_CH_MAIN1_MCSPI4_CH3_TX (UDMA_PDMA_CH_MAIN1_MCSPI4_CH3_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
583 /*
584  * PDMA MAIN1 UART TX Channels
585  */
586 #define UDMA_PDMA_CH_MAIN1_UART2_TX (UDMA_PDMA_CH_MAIN1_UART2_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
587 #define UDMA_PDMA_CH_MAIN1_UART3_TX (UDMA_PDMA_CH_MAIN1_UART3_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
588 #define UDMA_PDMA_CH_MAIN1_UART4_TX (UDMA_PDMA_CH_MAIN1_UART4_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
589 #define UDMA_PDMA_CH_MAIN1_UART5_TX (UDMA_PDMA_CH_MAIN1_UART5_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
590 #define UDMA_PDMA_CH_MAIN1_UART6_TX (UDMA_PDMA_CH_MAIN1_UART6_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
591 /*
592  * PDMA MAIN1 MCAN TX Channels
593  */
594 #define UDMA_PDMA_CH_MAIN1_MCAN0_CH0_TX (UDMA_PDMA_CH_MAIN1_MCAN0_CH0_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
595 #define UDMA_PDMA_CH_MAIN1_MCAN0_CH1_TX (UDMA_PDMA_CH_MAIN1_MCAN0_CH1_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
596 #define UDMA_PDMA_CH_MAIN1_MCAN0_CH2_TX (UDMA_PDMA_CH_MAIN1_MCAN0_CH2_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
597 #define UDMA_PDMA_CH_MAIN1_MCAN1_CH0_TX (UDMA_PDMA_CH_MAIN1_MCAN1_CH0_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
598 #define UDMA_PDMA_CH_MAIN1_MCAN1_CH1_TX (UDMA_PDMA_CH_MAIN1_MCAN1_CH1_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
599 #define UDMA_PDMA_CH_MAIN1_MCAN1_CH2_TX (UDMA_PDMA_CH_MAIN1_MCAN1_CH2_RX | UDMA_PSIL_DEST_THREAD_OFFSET)
600 
602 /* Start of C7x events associated to CLEC that UDMA Driver will manage */
603 #define UDMA_C7X_CORE_INTR_OFFSET (32U)
604 /* Number of C7x Events available for UDMA */
605 #define UDMA_C7X_CORE_NUM_INTR (16)
606 
607 /* CLEC offset for VINT */
608 #define UDMA_VINT_CLEC_OFFSET (256U)
609 
612 /* ========================================================================== */
613 /* Structure Declarations */
614 /* ========================================================================== */
615 
616 /* None */
617 
618 /* ========================================================================== */
619 /* Function Declarations */
620 /* ========================================================================== */
621 
627 uint32_t Udma_isCacheCoherent(void);
628 
629 /* ========================================================================== */
630 /* Static Function Definitions */
631 /* ========================================================================== */
632 
633 /* None */
634 
635 #ifdef __cplusplus
636 }
637 #endif
638 
639 #endif /* #ifndef UDMA_SOC_H_ */
640 
Udma_isCacheCoherent
uint32_t Udma_isCacheCoherent(void)
Returns TRUE if the memory is cache coherent.