This file contains the prototypes of the APIs present in the device abstraction layer file of POK. This also contains some related macros.
Go to the source code of this file.
Data Structures | |
struct | SDL_PMU_staticRegs |
PMU Static Registers structure. More... | |
Macros | |
#define | SDL_ARM_R5_PMU_CYCLE_COUNTER_NUM (31U) |
#define | SDL_ARM_R5_PMU_CFG_CNTR_EVENT_TYPE_MASK (0x000000FFU) |
#define | SDL_ARM_R5_PMU_CFG_CNTR_EVENT_TYPE_SHIFT (0x00000000U) |
#define | SDL_ARM_R5_PMU_CFG_CNTR_EVENT_TYPE_RESETVAL (0x00000000U) |
#define | SDL_ARM_R5_PMU_CFG_CNTR_EVENT_TYPE_MAX (0x000000FFU) |
Functions | |
void | SDL_R5PMU_cfg (uint32_t cycleCntDiv, uint32_t exportEvents, uint32_t userEnable) |
Configure the Performance Management Unit (PMU) More... | |
int32_t | SDL_R5PMU_verifyCfg (uint32_t cycleCntDiv, uint32_t exportEvents) |
Configure the Performance Management Unit (PMU) More... | |
void | SDL_R5PMU_enableAllCntrs (uint32_t enable) |
Enable/disable all PMU counters. More... | |
uint32_t | SDL_R5PMU_getNumCntrs (void) |
Get the number of PMU counters supported. More... | |
void | SDL_R5PMU_cfgCntr (uint32_t cntrNum, SDL_R5PmuEventType eventType) |
Configure a PMU counter. More... | |
void | SDL_R5PMU_enableCntrOverflowIntr (uint32_t cntrNum, uint32_t enable) |
Enable/disable overflow interrupt generation for a PMU counter. More... | |
void | SDL_R5PMU_enableCntr (uint32_t cntrNum, uint32_t enable) |
Enable/disable a PMU counter. More... | |
uint32_t | SDL_R5PMU_readCntr (uint32_t cntrNum) |
Read a PMU counter. More... | |
void | SDL_R5PMU_setResetCntr (uint32_t cntrNum, uint32_t cntrVal) |
Set a PMU counter. More... | |
uint32_t | SDL_R5PMU_readCntrOverflowStatus (void) |
Read the overflow status for all of the counters. More... | |
void | SDL_R5PMU_clearCntrOverflowStatus (uint32_t cntrMask) |
Clear the overflow flag for the specified counter(s) More... | |
void | SDL_R5PMU_resetCycleCnt (void) |
Reset the cycle counter to zero. More... | |
void | SDL_R5PMU_resetCntrs (void) |
Reset all counters to zero. More... | |
void | SDL_R5PMU_readStaticRegisters (SDL_PMU_staticRegs *pStaticRegs) |
PMU API to Read the Static Registers. This function reads the values of the static registers such as cycleCntDiv, exportEvents and userEnable status. More... | |