|
AM273x MCU+ SDK
09.02.00
|
|
Go to the documentation of this file.
58 #include <sdl/include/sdl_types.h>
59 #include <sdl/include/hw_types.h>
60 #include <sdl/esm/sdlr_esm.h>
64 #include <sdl/esm/soc/sdl_esm_soc.h>
75 #define SDL_ESM_ERRNO_BASE (-3000)
78 #define SDL_ESM_INTNUMBER_INVALID (0xffffffffu)
81 #define SDL_ESM_INST_INVALID (0xfffffffeu)
84 #define SDL_ESM_ERRORADDR_INVALID (0xffffffffu)
87 #define SDL_ESM_ERRORRAMID_INVALID (0xffffffffu)
90 #define SDL_ESM_ERRORBITOFFSET_INVALID (0xffffffffffffffffu)
93 #define SDL_ESM_ERRORBITGROUP_INVALID (0xffffffffu)
96 #define SDL_ESM_MAX_EVENT_MAP_NUM_WORDS (32u)
104 #define SDL_ESM_EINVAL (SDL_ESM_ERRNO_BASE-1)
106 #define SDL_ESM_ENOINIT (SDL_ESM_ERRNO_BASE-2)
108 #define SDL_ESM_EREINIT (SDL_ESM_ERRNO_BASE-3)
110 #define SDL_ESM_ENOMEM (SDL_ESM_ERRNO_BASE-4)
114 #define SDL_ESM_MAX_NOTIFIERS (256U)
116 #define SDL_ESM_MAX_ISR_COUNT (256U)
118 #define CONFIG_ESM0 (0U)
133 #define SDL_ESM_ECC_PARAM_MCU_CPU0_SEC_ERROR (1u)
135 #define SDL_ESM_ECC_PARAM_MCU_CPU0_DED_ERROR (2u)
137 #define SDL_ESM_ECC_PARAM_MCU_CPU1_SEC_ERROR (3u)
139 #define SDL_ESM_ECC_PARAM_MCU_CPU1_DED_ERROR (4u)
141 #define SDL_ESM_ECC_PARAM_MCU_CBASS_SEC_ERROR (5u)
143 #define SDL_ESM_ECC_PARAM_MCU_CBASS_DED_ERROR (6u)
163 typedef int32_t (*
SDL_ESM_CallBack) (SDL_ESM_Inst instance, int32_t grpChannel, int32_t vecNum,
void *arg);
178 typedef struct SDL_ESM_Errorconfig_s
318 .ptrCtrlRegs = (SDL_mss_ctrlRegs *)SDL_MSS_CTRL_U_BASE,
320 .highPrioIntNum = SDL_MSS_ESM_HI_INTNO,
321 .lowPrioIntNum = SDL_MSS_ESM_LOW_INTNO,
323 .intrLowPriority = 8U,
328 .ptrCtrlRegs = (SDL_mss_ctrlRegs *)SDL_DSS_CTRL_U_BASE,
330 .highPrioIntNum = SDL_DSS_ESM_HI_INTNO,
331 .lowPrioIntNum = SDL_DSS_ESM_LOW_INTNO,
333 .intrLowPriority = 1U,
529 if (openPrms != NULL)
Parameters used to register the ESM notify function to handle Group1 and Group2 errors....
Definition: sdl_esm.h:193
void * SDL_ESM_Handle
A handle that is returned from a ESM_Init() call.
Definition: sdl/esm/v1/esm.h:193
ESM error configuration.
Definition: sdl_esm.h:179
uint32_t eventNumber
Definition: sdl_esm.h:182
SDL_ESM_IntType
Definition: sdl_esm.h:364
uint32_t groupNumber
Definition: sdl_esm.h:194
SDL_Result SDL_ESM_init(const SDL_ESM_Inst esmInstType, SDL_ESM_NotifyParams *params, SDL_ESM_OpenParams *esmOpenParams, void *arg)
SDL ESM API to initialize an ESM instance. The API initializes the specified ESM instance with the pr...
bool bClearErrors
Definition: sdl_esm.h:222
SDL_ESM_ErrorConfig_t esmErrorConfig
Definition: sdl_esm.h:206
ESM Open Parameters.
Definition: sdl_esm.h:221
SDL_mss_ctrlRegs * ptrCtrlRegs
Definition: sdl_esm.h:247
static void SDL_ESM_Params_init(SDL_ESM_OpenParams *openPrms)
Definition: sdl_esm.h:527
uint32_t sdlEsmEccErrorSource_t
Source of the ECC error which maps to the ESM interrupt source.
Definition: sdl_esm.h:130
uint32_t setIntrPriorityLvl
Definition: sdl_esm.h:198
#define SDL_ESM_MAX_ISR_COUNT
Maximum ISR supported.
Definition: sdl_esm.h:116
@ SDL_ESM_INT_TYPE_CFG
Definition: sdl_esm.h:369
ESM static registers list.
Definition: sdl/esm/v1/esm.h:212
SDL_ESM_ErrorConfig_t esmErrorConfig
Definition: sdl_esm.h:243
SDL_ESM_Object * object
Definition: sdl_esm.h:306
static SDL_ESM_Config gEsmConfig[SDL_ESM_INST_DSS_ESM]
Definition: sdl_esm.h:344
@ SDL_ESM_INT_TYPE_LO
Definition: sdl_esm.h:367
int32_t SDL_Result
Definition: sdl_esm.h:120
uint8_t intrHighPriority
Definition: sdl_esm.h:255
int32_t SDL_ESM_clrNError(SDL_ESM_Inst instance)
SDL ESM API to clear the nError pin for the specified ESM instance.
int32_t SDL_ESM_registerECCCallback(SDL_ESM_Inst esmInstType, uint32_t eccEvent, SDL_ESM_CallBack callBack, void *callbackArg)
There are modules within SDL which will generate ESM errors intentionally in the course of running se...
uint32_t errorNumber
Definition: sdl_esm.h:196
#define SDL_ESM_NUM_INTR_PER_GROUP
Definition: sdl/esm/v1/esm.h:145
int32_t SDL_ESM_getNErrorStatus(SDL_ESM_Inst instance, uint32_t *pStatus)
SDL ESM API to get the status of the nError pin for the specified ESM instance.
uint32_t numGroup1Err
Definition: sdl_esm.h:280
SDL_ESM_Handle esmHandle
Definition: sdl_esm.h:276
Definition: sdlr_esm.h:51
SDL_esmRegs * ptrESMRegs
Definition: sdl_esm.h:245
SDL_ESM_Handle gEsmHandle
bool enableInfluenceOnErrPin
Definition: sdl_esm.h:200
ESM Module Object.
Definition: sdl_esm.h:269
This file contains the SDL DPL API's.
int32_t SDL_ESM_getStaticRegisters(SDL_ESM_Inst instance, SDL_ESM_staticRegs *pStaticRegs)
SDL ESM API to read the static registers. The API reads and returns the static register configuration...
#define SDL_ESM_EN_KEY_ENBALE_VAL
Definition: sdl/esm/v1/esm.h:85
uint32_t numGroup1Err
Definition: sdl_esm.h:249
uint8_t intrLowPriority
Definition: sdl_esm.h:257
int32_t SDL_ESM_verifyConfig(SDL_ESM_Inst instance, SDL_ESM_NotifyParams *params)
SDL ESM API to verify the written configuration of the ESM module. The API verifies the written confi...
int32_t SDL_ESM_setNError(SDL_ESM_Inst instance)
SDL ESM API to set the nError pin for the specified ESM instance.
SDL_ESM_CallBack callBackFunction
Definition: sdl_esm.h:204
void * arg
Definition: sdl_esm.h:202
int32_t SDL_ESM_registerCCMCallback(SDL_ESM_Inst esmInstType, uint32_t eccEvent, SDL_ESM_CallBack callBack, void *callbackArg)
There are modules within SDL which will generate ESM errors intentionally in the course of running se...
static SDL_ESM_Object gEsmObjects[CONFIG_ESM0]
Definition: sdl_esm.h:338
volatile bool selfTestFlag
Definition: sdl_esm.h:270
int32_t(* SDL_ESM_CallBack)(SDL_ESM_Inst instance, int32_t grpChannel, int32_t vecNum, void *arg)
Callback function which is invoked by the ESM module if a notify function is registered using the SDL...
Definition: sdl_esm.h:163
@ SDL_ESM_INT_TYPE_HI
Definition: sdl_esm.h:365
@ SDL_ESM_INT_TYPE_MAX
Definition: sdl_esm.h:371
#define CONFIG_ESM0
Definition: sdl_esm.h:118
Structure to access the status of interrupts belonging to a group.
Definition: drivers/esm/v0/esm.h:133
SDL_ESM_Params * esmConfig
Definition: sdl_esm.h:304
#define BITS_PER_WORD
Definition: sdl/esm/v1/esm.h:133
ESM Instance configuration.
Definition: sdl_esm.h:303
uint32_t highPrioIntNum
Definition: sdl_esm.h:251
static SDL_ESM_Params gEsmParams[SDL_ESM_INST_DSS_ESM]
Definition: sdl_esm.h:314
This file contains the prototypes of the APIs present in the device abstraction layer file of ESM....
uint32_t groupNumber
Definition: sdl_esm.h:180
uint32_t lowPrioIntNum
Definition: sdl_esm.h:253
SDL_ESM_OpenParams params
Definition: sdl_esm.h:274
#define SDL_ESM_MAX_NOTIFIERS
Maximum number of notify callbacks supported.
Definition: sdl_esm.h:114
uint32_t esmBaseAddr
Definition: sdl_esm.h:272
ESM Hardware Attributes.
Definition: sdl_esm.h:242