|
AM62Ax MCU+ SDK
10.01.00
|
|
Go to the documentation of this file.
72 #define UDMA_TR_TYPE_0 (CSL_UDMAP_TR_FLAGS_TYPE_1D_DATA_MOVE)
73 #define UDMA_TR_TYPE_1 (CSL_UDMAP_TR_FLAGS_TYPE_2D_DATA_MOVE)
74 #define UDMA_TR_TYPE_2 (CSL_UDMAP_TR_FLAGS_TYPE_3D_DATA_MOVE)
75 #define UDMA_TR_TYPE_3 (CSL_UDMAP_TR_FLAGS_TYPE_4D_DATA_MOVE)
76 #define UDMA_TR_TYPE_4 (CSL_UDMAP_TR_FLAGS_TYPE_4D_DATA_MOVE_FORMATTING)
77 #define UDMA_TR_TYPE_5 (CSL_UDMAP_TR_FLAGS_TYPE_4D_CACHE_WARM)
78 #define UDMA_TR_TYPE_8 (CSL_UDMAP_TR_FLAGS_TYPE_4D_BLOCK_MOVE)
79 #define UDMA_TR_TYPE_9 (CSL_UDMAP_TR_FLAGS_TYPE_4D_BLOCK_MOVE_REPACKING)
80 #define UDMA_TR_TYPE_10 (CSL_UDMAP_TR_FLAGS_TYPE_2D_BLOCK_MOVE)
81 #define UDMA_TR_TYPE_11 (CSL_UDMAP_TR_FLAGS_TYPE_2D_BLOCK_MOVE_REPACKING)
82 #define UDMA_TR_TYPE_15 (CSL_UDMAP_TR_FLAGS_TYPE_4D_BLOCK_MOVE_REPACKING_INDIRECTION)
94 #define UDMA_GET_TRPD_TR15_SIZE(n) (UDMA_ALIGN_SIZE(sizeof(CSL_UdmapTR15) + ((n) * (sizeof(CSL_UdmapTR15) + 4U))))
105 #define UDMA_GET_TRPD_TR3_SIZE(n) (UDMA_ALIGN_SIZE(sizeof(CSL_UdmapTR3) + ((n) * (sizeof(CSL_UdmapTR3) + 4U))))
110 #define UDMA_TR1_OFFSET (32U)
115 #define UDMA_TR3_OFFSET (32U)
207 uint32_t localeventID, uint32_t eventMode);
217 uint32_t reloadEnable, uint32_t reloadIdx);
262 uint32_t trRespStatus;
263 const uint32_t *pTrResp;;
266 pTrResp = (
const uint32_t *) (trpdMem +
267 (
sizeof(CSL_UdmapTR15) +
268 (
sizeof(CSL_UdmapTR15) * trCnt) +
269 (
sizeof(uint32_t) * trIndex)));
270 trRespStatus = CSL_FEXT(*pTrResp, UDMAP_TR_RESPONSE_STATUS_TYPE);
272 return (trRespStatus);
280 pTr = (CSL_UdmapTR15 *)(trpdMem +
sizeof(CSL_UdmapTR15) + (
sizeof(CSL_UdmapTR15) * trIndex));
uint8_t mode
Definition: tisci_lpm.h:1
void * Udma_ChHandle
UDMA channel handle.
Definition: udma_types.h:67
uint32_t UdmaUtils_getTrSizeEncoded(uint32_t trType)
Returns the size of TR (encoded) based on the type.
int32_t UdmaUtils_setTrpdReload(uint8_t *trpdMem, uint32_t reloadEnable, uint32_t reloadIdx)
Sets the reload count and index for the TRPD.
static CSL_UdmapTR1 * UdmaUtils_getTrpdTr1Pointer(uint8_t *trpdMem, uint32_t trIndex)
Returns the TR1 pointer in the TRPD memory based on the index.
Definition: udma_utils.h:285
void UdmaUtils_makeTrpd(uint8_t *trpdMem, uint32_t trType, uint32_t trCnt, uint32_t cqRingNum)
UDMA utility API to make TRPD. Other TRPD make APIs should be called only after this API.
void UdmaUtils_makeTrpdTr15(uint8_t *trpdMem, uint32_t trCnt, uint32_t cqRingNum)
UDMA utility API to make TRPD with TR15 TR type. Other TRPD make APIs should be called only after thi...
#define UDMA_TR3_OFFSET
Offset for TR3 type TR from TRPD start address.
Definition: udma_utils.h:115
#define UDMA_TR1_OFFSET
Offset for TR1 type TR from TRPD start address.
Definition: udma_utils.h:110
uint32_t UdmaUtils_getTrSizeBytes(uint32_t trType)
Returns the size of TR in bytes based on the type.
static CSL_UdmapTR3 * UdmaUtils_getTrpdTr3Pointer(uint8_t *trpdMem, uint32_t trIndex)
Definition: udma_utils.h:295
void * Udma_DrvHandle
UDMA driver handle.
Definition: udma_types.h:65
static uint32_t UdmaUtils_getTrpdTr15Response(const uint8_t *trpdMem, uint32_t trCnt, uint32_t trIndex)
Returns the TR response in the TRPD memory based on the index.
Definition: udma_utils.h:258
uint32_t UdmaUtils_getRingMemSize(uint8_t mode, uint32_t elemCnt, uint8_t elemSize)
UDMA get ring size utility API.
int32_t UdmaUtils_mapLocaltoGlobalEvent(Udma_DrvHandle drvHandle, Udma_ChHandle chHandle, uint32_t localeventID, uint32_t eventMode)
Map L2G event for BCDMA trigger.
static CSL_UdmapTR15 * UdmaUtils_getTrpdTr15Pointer(uint8_t *trpdMem, uint32_t trIndex)
Returns the TR15 pointer in the TRPD memory based on the index.
Definition: udma_utils.h:275