UDMA Low Level Driver AM64x SOC specific file.
Go to the source code of this file.
Functions | |
uint32_t | Udma_isCacheCoherent (void) |
Returns TRUE if the memory is cache coherent. More... | |
#define UDMA_INST_ID_BCDMA_0 (UDMA_INST_ID_2) |
BCDMA instance.
#define UDMA_INST_ID_PKTDMA_0 (UDMA_INST_ID_3) |
PKTDMA instance.
#define UDMA_INST_ID_START (UDMA_INST_ID_2) |
Start of UDMA instance.
#define UDMA_INST_ID_MAX (UDMA_INST_ID_3) |
Maximum number of UDMA instance.
#define UDMA_NUM_INST_ID (UDMA_INST_ID_MAX - UDMA_INST_ID_START + 1U) |
Total number of UDMA instances.
#define UDMA_SOC_CFG_LCDMA_PRESENT (1U) |
Flag to indicate LCDMA module is present or not in the SOC.
#define UDMA_SOC_CFG_RA_LCDMA_PRESENT (1U) |
Flag to indicate LCDMA RA is present or not in the SOC.
#define UDMA_SOC_CFG_UDMAP_PRESENT (0U) |
#define UDMA_SOC_CFG_PROXY_PRESENT (0U) |
Flag to indicate Proxy is present or not in the SOC.
#define UDMA_SOC_CFG_CLEC_PRESENT (0U) |
Flag to indicate Clec is present or not in the SOC.
#define UDMA_SOC_CFG_RA_NORMAL_PRESENT (0U) |
Flag to indicate Normal RA is present or not in the SOC.
#define UDMA_SOC_CFG_RING_MON_PRESENT (0U) |
Flag to indicate Ring Monitor is present or not in the SOC.
#define UDMA_SOC_CFG_APPLY_RING_WORKAROUND (0U) |
Flag to indicate the SOC needs ring reset workaround.
#define UDMA_TX_UHC_CHANS_FDEPTH (0U) |
Tx Ultra High Capacity Channel FDEPTH.
#define UDMA_TX_HC_CHANS_FDEPTH (0U) |
Tx High Capacity Channel FDEPTH.
#define UDMA_TX_CHANS_FDEPTH (192U) |
Tx Normal Channel FDEPTH.
#define UDMA_RINGACC_ASEL_ENDPOINT_PHYSADDR ((uint32_t) 0U) |
Physical address (normal)
#define UDMA_RINGACC_ASEL_ENDPOINT_PCIE0 ((uint32_t) 1U) |
PCIE0.
#define UDMA_RINGACC_ASEL_ENDPOINT_ACP_WR_ALLOC ((uint32_t) 14U) |
ARM ACP port: write-allocate cacheable, bufferable.
#define UDMA_RINGACC_ASEL_ENDPOINT_ACP_RD_ALLOC ((uint32_t) 15U) |
ARM ACP port: read-allocate, cacheable, bufferable.
#define UDMA_NUM_MAPPED_TX_GROUP (4U) |
Number of Mapped TX Group.
#define UDMA_MAPPED_TX_GROUP_CPSW (UDMA_MAPPED_GROUP0) |
#define UDMA_MAPPED_TX_GROUP_SAUL (UDMA_MAPPED_GROUP1) |
#define UDMA_MAPPED_TX_GROUP_ICSSG_0 (UDMA_MAPPED_GROUP2) |
#define UDMA_MAPPED_TX_GROUP_ICSSG_1 (UDMA_MAPPED_GROUP3) |
#define UDMA_NUM_MAPPED_RX_GROUP (4U) |
Number of Mapped RX Group.
#define UDMA_MAPPED_RX_GROUP_CPSW (UDMA_MAPPED_GROUP4) |
#define UDMA_MAPPED_RX_GROUP_SAUL (UDMA_MAPPED_GROUP5) |
#define UDMA_MAPPED_RX_GROUP_ICSSG_0 (UDMA_MAPPED_GROUP6) |
#define UDMA_MAPPED_RX_GROUP_ICSSG_1 (UDMA_MAPPED_GROUP7) |
#define UDMA_CORE_ID_MPU1_0 (0U) |
#define UDMA_CORE_ID_MCU2_0 (1U) |
#define UDMA_CORE_ID_MCU2_1 (2U) |
#define UDMA_CORE_ID_MCU1_0 (3U) |
#define UDMA_CORE_ID_MCU1_1 (4U) |
#define UDMA_CORE_ID_M4F_0 (5U) |
#define UDMA_NUM_CORE (6U) |
#define UDMA_RM_RES_ID_BC_UHC (0U) |
Ultra High Capacity Block Copy Channels.
#define UDMA_RM_RES_ID_BC_HC (1U) |
High Capacity Block Copy Channels.
#define UDMA_RM_RES_ID_BC (2U) |
Normal Capacity Block Copy Channels.
#define UDMA_RM_RES_ID_TX_UHC (3U) |
Ultra High Capacity TX Channels.
#define UDMA_RM_RES_ID_TX_HC (4U) |
High Capacity TX Channels.
#define UDMA_RM_RES_ID_TX (5U) |
Normal Capacity TX Channels.
#define UDMA_RM_RES_ID_RX_UHC (6U) |
Ultra High Capacity RX Channels.
#define UDMA_RM_RES_ID_RX_HC (7U) |
High Capacity RX Channels.
#define UDMA_RM_RES_ID_RX (8U) |
Normal Capacity RX Channels.
#define UDMA_RM_RES_ID_GLOBAL_EVENT (9U) |
Global Event.
#define UDMA_RM_RES_ID_VINTR (10U) |
Virtual Interrupts.
#define UDMA_RM_RES_ID_MAPPED_TX_CPSW (11U) |
[Pktdma Only] Mapped TX Channels for CPSW
#define UDMA_RM_RES_ID_MAPPED_TX_SAUL_0 (12U) |
[Pktdma Only] Mapped TX Channels for SAUL_0
#define UDMA_RM_RES_ID_MAPPED_TX_SAUL_1 (13U) |
[Pktdma Only] Mapped TX Channels for SAUL_1
#define UDMA_RM_RES_ID_MAPPED_TX_ICSSG_0 (14U) |
[Pktdma Only] Mapped TX Channels for ICSSG_0
#define UDMA_RM_RES_ID_MAPPED_TX_ICSSG_1 (15U) |
[Pktdma Only] Mapped TX Channels for ICSSG_1
#define UDMA_RM_RES_ID_MAPPED_RX_CPSW (16U) |
[Pktdma Only] Mapped RX Channels for CPSW
#define UDMA_RM_RES_ID_MAPPED_RX_SAUL_0 (17U) |
[Pktdma Only] Mapped RX Channels for SAUL_0
#define UDMA_RM_RES_ID_MAPPED_RX_SAUL_1 (18U) |
[Pktdma Only] Mapped RX Channels for SAUL_1
#define UDMA_RM_RES_ID_MAPPED_RX_SAUL_2 (19U) |
[Pktdma Only] Mapped RX Channels for SAUL_2
#define UDMA_RM_RES_ID_MAPPED_RX_SAUL_3 (20U) |
[Pktdma Only] Mapped RX Channels for SAUL_3
#define UDMA_RM_RES_ID_MAPPED_RX_ICSSG_0 (21U) |
[Pktdma Only] Mapped RX Channels for ICSSG_0
#define UDMA_RM_RES_ID_MAPPED_RX_ICSSG_1 (22U) |
[Pktdma Only] Mapped RX Channels for ICSSG_1
#define UDMA_RM_RES_ID_MAPPED_TX_RING_CPSW (23U) |
[Pktdma Only] Mapped TX Rings for CPSW
#define UDMA_RM_RES_ID_MAPPED_TX_RING_SAUL_0 (24U) |
[Pktdma Only] Mapped TX Rings for SAUL_0
#define UDMA_RM_RES_ID_MAPPED_TX_RING_SAUL_1 (25U) |
[Pktdma Only] Mapped TX Rings for SAUL_1
#define UDMA_RM_RES_ID_MAPPED_TX_RING_ICSSG_0 (26U) |
[Pktdma Only] Mapped TX Rings for ICSSG_0
#define UDMA_RM_RES_ID_MAPPED_TX_RING_ICSSG_1 (27U) |
[Pktdma Only] Mapped TX Rings for ICSSG_1
#define UDMA_RM_RES_ID_MAPPED_RX_RING_CPSW (28U) |
[Pktdma Only] Mapped RX Rings for CPSW
#define UDMA_RM_RES_ID_MAPPED_RX_RING_SAUL_0 (29U) |
[Pktdma Only] Mapped RX Rings for SAUL_0
#define UDMA_RM_RES_ID_MAPPED_RX_RING_SAUL_1 (30U) |
[Pktdma Only] Mapped RX Rings for SAUL_1
#define UDMA_RM_RES_ID_MAPPED_RX_RING_SAUL_2 (31U) |
[Pktdma Only] Mapped RX Rings for SAUL_2
#define UDMA_RM_RES_ID_MAPPED_RX_RING_SAUL_3 (32U) |
[Pktdma Only] Mapped RX Rings for SAUL_3
#define UDMA_RM_RES_ID_MAPPED_RX_RING_ICSSG_0 (33U) |
[Pktdma Only] Mapped RX Rings for ICSSG_0
#define UDMA_RM_RES_ID_MAPPED_RX_RING_ICSSG_1 (34U) |
[Pktdma Only] Mapped RX Rings for ICSSG_1
#define UDMA_RM_NUM_BCDMA_RES (11U) |
Total number of BCDMA resources.
#define UDMA_RM_NUM_PKTDMA_RES (35U) |
Total number of PKTDMA resources.
#define UDMA_RM_NUM_RES (35U) |
Total number of resources.
#define UDMA_RM_NUM_SHARED_RES (2U) |
Total number of shared resources - Global_Event/IR Intr.
#define UDMA_RM_SHARED_RES_MAX_INST (UDMA_NUM_CORE) |
Maximum no.of instances to split a shared resource. This should be max(UDMA_NUM_CORE,UDMA_NUM_INST_ID)
#define UDMA_PSIL_DEST_THREAD_OFFSET (0x8000U) |
Destination thread offset.
#define UDMA_PSIL_CH_CPSW2_RX (0x4500U) |
#define UDMA_PSIL_CH_SAUL0_RX (0x4000U) |
#define UDMA_PSIL_CH_ICSS_G0_RX (0x4100U) |
#define UDMA_PSIL_CH_ICSS_G1_RX (0x4200U) |
#define UDMA_PSIL_CH_CPSW2_TX (UDMA_PSIL_CH_CPSW2_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PSIL_CH_SAUL0_TX (UDMA_PSIL_CH_SAUL0_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PSIL_CH_ICSS_G0_TX (UDMA_PSIL_CH_ICSS_G0_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PSIL_CH_ICSS_G1_TX (UDMA_PSIL_CH_ICSS_G1_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PSIL_CH_CPSW2_TX_CNT (8U) |
#define UDMA_PSIL_CH_SAUL0_TX_CNT (2U) |
#define UDMA_PSIL_CH_ICSS_G0_TX_CNT (9U) |
#define UDMA_PSIL_CH_ICSS_G1_TX_CNT (9U) |
#define UDMA_PSIL_CH_CPSW2_RX_CNT (1U) |
#define UDMA_PSIL_CH_SAUL0_RX_CNT (4U) |
#define UDMA_PSIL_CH_ICSS_G0_RX_CNT (5U) |
#define UDMA_PSIL_CH_ICSS_G1_RX_CNT (5U) |
#define UDMA_PDMA_CH_MAIN0_MCSPI0_CH0_RX (0x4300U + 0U) |
#define UDMA_PDMA_CH_MAIN0_MCSPI0_CH1_RX (0x4300U + 1U) |
#define UDMA_PDMA_CH_MAIN0_MCSPI0_CH2_RX (0x4300U + 2U) |
#define UDMA_PDMA_CH_MAIN0_MCSPI0_CH3_RX (0x4300U + 3U) |
#define UDMA_PDMA_CH_MAIN0_MCSPI1_CH0_RX (0x4300U + 4U) |
#define UDMA_PDMA_CH_MAIN0_MCSPI1_CH1_RX (0x4300U + 5U) |
#define UDMA_PDMA_CH_MAIN0_MCSPI1_CH2_RX (0x4300U + 6U) |
#define UDMA_PDMA_CH_MAIN0_MCSPI1_CH3_RX (0x4300U + 7U) |
#define UDMA_PDMA_CH_MAIN0_MCSPI2_CH0_RX (0x4300U + 8U) |
#define UDMA_PDMA_CH_MAIN0_MCSPI2_CH1_RX (0x4300U + 9U) |
#define UDMA_PDMA_CH_MAIN0_MCSPI2_CH2_RX (0x4300U + 10U) |
#define UDMA_PDMA_CH_MAIN0_MCSPI2_CH3_RX (0x4300U + 11U) |
#define UDMA_PDMA_CH_MAIN0_MCSPI3_CH0_RX (0x4300U + 12U) |
#define UDMA_PDMA_CH_MAIN0_MCSPI3_CH1_RX (0x4300U + 13U) |
#define UDMA_PDMA_CH_MAIN0_MCSPI3_CH2_RX (0x4300U + 14U) |
#define UDMA_PDMA_CH_MAIN0_MCSPI3_CH3_RX (0x4300U + 15U) |
#define UDMA_PDMA_CH_MAIN0_UART0_RX (0x4300U + 16U) |
#define UDMA_PDMA_CH_MAIN0_UART1_RX (0x4300U + 17U) |
#define UDMA_PDMA_CH_MAIN0_MCSPI0_CH0_TX (UDMA_PDMA_CH_MAIN0_MCSPI0_CH0_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN0_MCSPI0_CH1_TX (UDMA_PDMA_CH_MAIN0_MCSPI0_CH1_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN0_MCSPI0_CH2_TX (UDMA_PDMA_CH_MAIN0_MCSPI0_CH2_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN0_MCSPI0_CH3_TX (UDMA_PDMA_CH_MAIN0_MCSPI0_CH3_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN0_MCSPI1_CH0_TX (UDMA_PDMA_CH_MAIN0_MCSPI1_CH0_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN0_MCSPI1_CH1_TX (UDMA_PDMA_CH_MAIN0_MCSPI1_CH1_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN0_MCSPI1_CH2_TX (UDMA_PDMA_CH_MAIN0_MCSPI1_CH2_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN0_MCSPI1_CH3_TX (UDMA_PDMA_CH_MAIN0_MCSPI1_CH3_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN0_MCSPI2_CH0_TX (UDMA_PDMA_CH_MAIN0_MCSPI2_CH0_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN0_MCSPI2_CH1_TX (UDMA_PDMA_CH_MAIN0_MCSPI2_CH1_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN0_MCSPI2_CH2_TX (UDMA_PDMA_CH_MAIN0_MCSPI2_CH2_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN0_MCSPI2_CH3_TX (UDMA_PDMA_CH_MAIN0_MCSPI2_CH3_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN0_MCSPI3_CH0_TX (UDMA_PDMA_CH_MAIN0_MCSPI3_CH0_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN0_MCSPI3_CH1_TX (UDMA_PDMA_CH_MAIN0_MCSPI3_CH1_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN0_MCSPI3_CH2_TX (UDMA_PDMA_CH_MAIN0_MCSPI3_CH2_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN0_MCSPI3_CH3_TX (UDMA_PDMA_CH_MAIN0_MCSPI3_CH3_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN0_UART0_TX (UDMA_PDMA_CH_MAIN0_UART0_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN0_UART1_TX (UDMA_PDMA_CH_MAIN0_UART1_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN1_MCSPI4_CH0_RX (0x4400U + 0U) |
#define UDMA_PDMA_CH_MAIN1_MCSPI4_CH1_RX (0x4400U + 1U) |
#define UDMA_PDMA_CH_MAIN1_MCSPI4_CH2_RX (0x4400U + 2U) |
#define UDMA_PDMA_CH_MAIN1_MCSPI4_CH3_RX (0x4400U + 3U) |
#define UDMA_PDMA_CH_MAIN1_UART2_RX (0x4400U + 4U) |
#define UDMA_PDMA_CH_MAIN1_UART3_RX (0x4400U + 5U) |
#define UDMA_PDMA_CH_MAIN1_UART4_RX (0x4400U + 6U) |
#define UDMA_PDMA_CH_MAIN1_UART5_RX (0x4400U + 7U) |
#define UDMA_PDMA_CH_MAIN1_UART6_RX (0x4400U + 8U) |
#define UDMA_PDMA_CH_MAIN1_MCAN0_CH0_RX (0x4400U + 9U) |
#define UDMA_PDMA_CH_MAIN1_MCAN0_CH1_RX (0x4400U + 10U) |
#define UDMA_PDMA_CH_MAIN1_MCAN0_CH2_RX (0x4400U + 11U) |
#define UDMA_PDMA_CH_MAIN1_MCAN1_CH0_RX (0x4400U + 12U) |
#define UDMA_PDMA_CH_MAIN1_MCAN1_CH1_RX (0x4400U + 13U) |
#define UDMA_PDMA_CH_MAIN1_MCAN1_CH2_RX (0x4400U + 14U) |
#define UDMA_PDMA_CH_MAIN1_ADC0_CH0_RX (0x4400U + 15U) |
#define UDMA_PDMA_CH_MAIN1_ADC0_CH1_RX (0x4400U + 16U) |
#define UDMA_PDMA_CH_MAIN1_MCSPI4_CH0_TX (UDMA_PDMA_CH_MAIN1_MCSPI4_CH0_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN1_MCSPI4_CH1_TX (UDMA_PDMA_CH_MAIN1_MCSPI4_CH1_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN1_MCSPI4_CH2_TX (UDMA_PDMA_CH_MAIN1_MCSPI4_CH2_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN1_MCSPI4_CH3_TX (UDMA_PDMA_CH_MAIN1_MCSPI4_CH3_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN1_UART2_TX (UDMA_PDMA_CH_MAIN1_UART2_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN1_UART3_TX (UDMA_PDMA_CH_MAIN1_UART3_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN1_UART4_TX (UDMA_PDMA_CH_MAIN1_UART4_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN1_UART5_TX (UDMA_PDMA_CH_MAIN1_UART5_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN1_UART6_TX (UDMA_PDMA_CH_MAIN1_UART6_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN1_MCAN0_CH0_TX (UDMA_PDMA_CH_MAIN1_MCAN0_CH0_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN1_MCAN0_CH1_TX (UDMA_PDMA_CH_MAIN1_MCAN0_CH1_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN1_MCAN0_CH2_TX (UDMA_PDMA_CH_MAIN1_MCAN0_CH2_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN1_MCAN1_CH0_TX (UDMA_PDMA_CH_MAIN1_MCAN1_CH0_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN1_MCAN1_CH1_TX (UDMA_PDMA_CH_MAIN1_MCAN1_CH1_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
#define UDMA_PDMA_CH_MAIN1_MCAN1_CH2_TX (UDMA_PDMA_CH_MAIN1_MCAN1_CH2_RX | UDMA_PSIL_DEST_THREAD_OFFSET) |
uint32_t Udma_isCacheCoherent | ( | void | ) |
Returns TRUE if the memory is cache coherent.