![]() |
PDK API Guide for J721E
|
Functions | |
| int32_t | CSL_druGetCapabilities (const CSL_DRU_t *pRegs, CSL_DruCapabilities *druCap) |
| This API returns the DRU capabilities. More... | |
| int32_t | CSL_druQueueConfig (const CSL_DRU_t *pRegs, uint32_t queueId, const CSL_DruQueueConfig *queueCfg) |
| This API configures the DRU queue non-real time configurations. More... | |
| int32_t | CSL_druChConfig (const CSL_DRU_t *pRegs, uint32_t chId, const CSL_DruChConfig *chCfg) |
| This API configures the DRU channel non-real time configurations. More... | |
| int32_t | CSL_druChSetEvent (const CSL_DRU_t *pRegs, uint32_t chId, uint64_t evtNum) |
| This API configures the DRU channel event. More... | |
| int32_t | CSL_druChEnable (const CSL_DRU_t *pRegs, uint32_t chId) |
| This API enables the DRU channel using the real time registers. More... | |
| int32_t | CSL_druChDisable (const CSL_DRU_t *pRegs, uint32_t chId) |
| This API disables the DRU channel using the real time registers. More... | |
| int32_t | CSL_druChTeardown (const CSL_DRU_t *pRegs, uint32_t chId) |
| This API teardowns the specified channel. More... | |
| uint32_t | CSL_druChIsTeardownComplete (const CSL_DRU_t *pRegs, uint32_t chId) |
| This API checks if a teardown is complete for specified channel. More... | |
| int32_t | CSL_druChPause (const CSL_DRU_t *pRegs, uint32_t chId) |
| This API pauses the specified channel. More... | |
| int32_t | CSL_druChResume (const CSL_DRU_t *pRegs, uint32_t chId) |
| This API resumes the specified channel. More... | |
| static void | CSL_druChSubmitTr (const CSL_DRU_t *pRegs, uint32_t chId, uint32_t coreId, const CSL_UdmapTR *tr) |
| This API does a direct TR submission to the specified channel and core ID. More... | |
| volatile uint64_t * | CSL_druChGetTriggerRegAddr (CSL_DRU_t *pRegs, uint32_t chId) |
| This API get the triggers register address for the channel. More... | |
| static void | CSL_druChSetLocalTrigger0Raw (volatile uint64_t *pSwTrigReg) |
| This API triggers the local event 0 for the specified channel. More... | |
| static void | CSL_druChSetGlobalTrigger0Raw (volatile uint64_t *pSwTrigReg) |
| This API triggers the global event 0 for the specified channel. More... | |
| static void | CSL_druChSetGlobalTrigger1Raw (volatile uint64_t *pSwTrigReg) |
| This API triggers the global event 1 for the specified channel. More... | |
| int32_t | CSL_druChSetLocalTrigger0 (CSL_DRU_t *pRegs, uint32_t chId) |
| This API triggers the local event 0 for the specified channel. More... | |
| int32_t | CSL_druChSetGlobalTrigger0 (CSL_DRU_t *pRegs, uint32_t chId) |
| This API triggers the global event 0 for the specified channel. More... | |
| int32_t | CSL_druChSetGlobalTrigger1 (CSL_DRU_t *pRegs, uint32_t chId) |
| This API triggers the global event 1 for the specified channel. More... | |
| int32_t | CSL_druGetQueueStatus (const CSL_DRU_t *pRegs, uint32_t queueId, CSL_DruQueueStatus *status) |
| This API returns the status of the specified queue. More... | |
| int32_t CSL_druGetCapabilities | ( | const CSL_DRU_t * | pRegs, |
| CSL_DruCapabilities * | druCap | ||
| ) |
This API returns the DRU capabilities.
| pRegs | [IN] DRU register base. |
| druCap | [OUT] Pointer to DRU capability structure to be filled. |
| int32_t CSL_druQueueConfig | ( | const CSL_DRU_t * | pRegs, |
| uint32_t | queueId, | ||
| const CSL_DruQueueConfig * | queueCfg | ||
| ) |
This API configures the DRU queue non-real time configurations.
| pRegs | [IN] DRU register base. |
| queueId | [IN] Queue ID - 0 to (CSL_DRU_NUM_QUEUE - 1). Refer CSL_DruQueueId. |
| queueCfg | [IN] Pointer to queue configuration. |
| int32_t CSL_druChConfig | ( | const CSL_DRU_t * | pRegs, |
| uint32_t | chId, | ||
| const CSL_DruChConfig * | chCfg | ||
| ) |
This API configures the DRU channel non-real time configurations.
| pRegs | [IN] DRU register base. |
| chId | [IN] Channel ID - 0 to (CSL_DRU_NUM_CH - 1). |
| chCfg | [IN] Pointer to channel configuration. |
| int32_t CSL_druChSetEvent | ( | const CSL_DRU_t * | pRegs, |
| uint32_t | chId, | ||
| uint64_t | evtNum | ||
| ) |
This API configures the DRU channel event.
| pRegs | [IN] DRU register base. |
| chId | [IN] Channel ID - 0 to (CSL_DRU_NUM_CH - 1). |
| evtNum | [IN] Global event number to generate anytime the required event generation criteria specified in a TR are met. A single event with this event number will be generated. |
| int32_t CSL_druChEnable | ( | const CSL_DRU_t * | pRegs, |
| uint32_t | chId | ||
| ) |
This API enables the DRU channel using the real time registers.
| pRegs | [IN] DRU register base. |
| chId | [IN] Channel ID - 0 to (CSL_DRU_NUM_CH - 1). |
| int32_t CSL_druChDisable | ( | const CSL_DRU_t * | pRegs, |
| uint32_t | chId | ||
| ) |
This API disables the DRU channel using the real time registers.
| pRegs | [IN] DRU register base. |
| chId | [IN] Channel ID - 0 to (CSL_DRU_NUM_CH - 1). |
| int32_t CSL_druChTeardown | ( | const CSL_DRU_t * | pRegs, |
| uint32_t | chId | ||
| ) |
This API teardowns the specified channel.
| pRegs | [IN] DRU register base. |
| chId | [IN] Channel ID - 0 to (CSL_DRU_NUM_CH - 1). |
| uint32_t CSL_druChIsTeardownComplete | ( | const CSL_DRU_t * | pRegs, |
| uint32_t | chId | ||
| ) |
This API checks if a teardown is complete for specified channel.
| pRegs | [IN] DRU register base. |
| chId | [IN] Channel ID - 0 to (CSL_DRU_NUM_CH - 1). |
| int32_t CSL_druChPause | ( | const CSL_DRU_t * | pRegs, |
| uint32_t | chId | ||
| ) |
This API pauses the specified channel.
| pRegs | [IN] DRU register base. |
| chId | [IN] Channel ID - 0 to (CSL_DRU_NUM_CH - 1). |
| int32_t CSL_druChResume | ( | const CSL_DRU_t * | pRegs, |
| uint32_t | chId | ||
| ) |
This API resumes the specified channel.
| pRegs | [IN] DRU register base. |
| chId | [IN] Channel ID - 0 to (CSL_DRU_NUM_CH - 1). |
|
inlinestatic |
This API does a direct TR submission to the specified channel and core ID.
Note: No error checks are performed by this API to get maximum performance
| pRegs | [IN] DRU register base. |
| chId | [IN] Channel ID - 0 to (CSL_DRU_NUM_CH - 1). |
| coreId | [IN] Core ID - 0 to (CSL_DRU_NUM_CORE - 1). Refer CSL_DruCoreId |
| tr | [IN] Pointer to TR to be submitted. |
| volatile uint64_t* CSL_druChGetTriggerRegAddr | ( | CSL_DRU_t * | pRegs, |
| uint32_t | chId | ||
| ) |
This API get the triggers register address for the channel.
| pRegs | [IN] DRU register base. |
| chId | [IN] Channel ID - 0 to (CSL_DRU_NUM_CH - 1). |
|
inlinestatic |
This API triggers the local event 0 for the specified channel.
Note: No error checks are performed by this API to get maximum performance
| pSwTrigReg | [IN] DRU SW trigger register address. Use CSL_druChGetTriggerRegAddr API to get the trigger register address. |
|
inlinestatic |
This API triggers the global event 0 for the specified channel.
Note: No error checks are performed by this API to get maximum performance
| pSwTrigReg | [IN] DRU SW trigger register address. Use CSL_druChGetTriggerRegAddr API to get the trigger register address. |
|
inlinestatic |
This API triggers the global event 1 for the specified channel.
Note: No error checks are performed by this API to get maximum performance
| pSwTrigReg | [IN] DRU SW trigger register address. Use CSL_druChGetTriggerRegAddr API to get the trigger register address. |
| int32_t CSL_druChSetLocalTrigger0 | ( | CSL_DRU_t * | pRegs, |
| uint32_t | chId | ||
| ) |
This API triggers the local event 0 for the specified channel.
| pRegs | [IN] DRU register base. |
| chId | [IN] Channel ID - 0 to (CSL_DRU_NUM_CH - 1). |
| int32_t CSL_druChSetGlobalTrigger0 | ( | CSL_DRU_t * | pRegs, |
| uint32_t | chId | ||
| ) |
This API triggers the global event 0 for the specified channel.
| pRegs | [IN] DRU register base. |
| chId | [IN] Channel ID - 0 to (CSL_DRU_NUM_CH - 1). |
| int32_t CSL_druChSetGlobalTrigger1 | ( | CSL_DRU_t * | pRegs, |
| uint32_t | chId | ||
| ) |
This API triggers the global event 1 for the specified channel.
| pRegs | [IN] DRU register base. |
| chId | [IN] Channel ID - 0 to (CSL_DRU_NUM_CH - 1). |
| int32_t CSL_druGetQueueStatus | ( | const CSL_DRU_t * | pRegs, |
| uint32_t | queueId, | ||
| CSL_DruQueueStatus * | status | ||
| ) |
This API returns the status of the specified queue.
| pRegs | [IN] DRU register base. |
| queueId | [IN] Queue ID - 0 to (CSL_DRU_NUM_QUEUE - 1). Refer CSL_DruQueueId. |
| status | [OUT] Pointer to DRU queue status structure where status is returned. |