 |
AM62Ax MCU+ SDK
11.01.00
|
|
Go to the documentation of this file.
42 #ifndef INCLUDE_SDL_ECC_H_
43 #define INCLUDE_SDL_ECC_H_
48 #include "sdl_common.h"
49 #include <sdl/ecc/sdl_ip_ecc.h>
50 #include <sdl/ecc/soc/sdl_soc_ecc.h>
133 typedef struct SDL_ECC_InitConfig_s
146 typedef struct SDL_ECC_InjectErrorConfig_s
160 typedef struct SDL_ECC_ErrorInfo_s
237 uint32_t selfTestTimeOut);
348 uint64_t bitErrorOffset,
349 uint32_t bitErrorGroup);
void(* SDL_ECC_ErrorCallback_t)(uint32_t errorSrc, uint32_t address)
Definition: sdl_ecc.h:122
SDL_ESM_Inst
Definition: sdl_esm_soc.h:59
Definition: sdl_ecc.h:134
int32_t SDL_ECC_initMemory(SDL_ECC_MemType eccMemType, SDL_ECC_MemSubType memSubType)
Initializes Memory to be ready for ECC error detection. Assumes ECC is already enabled.
SDL_ECC_MemSubType memSubType
Definition: sdl_ecc.h:164
uint32_t numRams
Definition: sdl_ecc.h:135
@ SDL_INJECT_ECC_ERROR_FORCING_2BIT_ONCE
Definition: sdl_ecc.h:85
int32_t SDL_ECC_injectError(SDL_ECC_MemType eccMemType, SDL_ECC_MemSubType memSubType, SDL_ECC_InjectErrorType errorType, const SDL_ECC_InjectErrorConfig_t *pECCErrorConfig)
Injects ECC error at specified location Assumes ECC is already enabled.
int32_t SDL_ECC_ackIntr(SDL_ECC_MemType eccMemType, SDL_Ecc_AggrIntrSrc intrSrc)
Acknowledge the ECC interrupt.
uint32_t SDL_Ecc_AggrEDCErrorSubType
This enumerator defines the types of possible EDC errors.
Definition: sdl_ip_ecc.h:189
uint8_t instance
Definition: tisci_dkek.h:1
int32_t SDL_ECC_getStaticRegisters(SDL_ECC_MemType eccMemType, SDL_ECC_staticRegs *pStaticRegs)
Gets the static registers for the specified ECC instance.
@ SDL_ECC_AGGR_TYPE_INJECT_ONLY
Definition: sdl_ecc.h:67
@ SDL_INJECT_ECC_ERROR_FORCING_1BIT_N_ROW_ONCE
Definition: sdl_ecc.h:87
@ SDL_INJECT_ECC_ERROR_FORCING_1BIT_ONCE
Definition: sdl_ecc.h:83
int32_t SDL_ECC_selfTest(SDL_ECC_MemType eccMemType, SDL_ECC_MemSubType memSubType, SDL_ECC_InjectErrorType errorType, const SDL_ECC_InjectErrorConfig_t *pECCErrorConfig, uint32_t selfTestTimeOut)
Runs self test by injecting and error and monitor response Assumes ECC is already enabled.
uint16_t chkGrp
Definition: sdl_ecc.h:152
uint32_t bitErrorGroup
Definition: sdl_ecc.h:172
@ SDL_INJECT_ECC_ERROR_FORCING_2BIT_N_ROW_ONCE
Definition: sdl_ecc.h:89
SDL_Ecc_AggrIntrSrc intrSrc
Definition: sdl_ecc.h:166
@ SDL_INJECT_ECC_ERROR_FORCING_1BIT_REPEAT
Definition: sdl_ecc.h:91
Definition: sdl_ecc.h:147
@ SDL_INJECT_ECC_NO_ERROR
Definition: sdl_ecc.h:81
uint32_t * pErrMem
Definition: sdl_ecc.h:148
This structure contains the static register group for Ecc aggregator used by the SDL_ecc_aggrReadStat...
Definition: sdl_ip_ecc.h:350
@ SDL_ECC_AGGR_TYPE_FULL_FUNCTION
Definition: sdl_ecc.h:69
SDL_ECC_InjectErrorType
ECC Inject error types.
Definition: sdl_ecc.h:79
int32_t SDL_ECC_initEsm(const SDL_ESM_Inst esmInstType)
Initializes an module for usage with ECC module.
uint64_t bitErrorOffset
Definition: sdl_ecc.h:174
uint32_t flipBitMask
Definition: sdl_ecc.h:150
SDL_ECC_AggregatorType
Definition: sdl_ecc.h:66
@ SDL_INJECT_ECC_ERROR_FORCING_2BIT_REPEAT
Definition: sdl_ecc.h:93
@ SDL_ECC_RAM_ID_TYPE_INTERCONNECT
Definition: sdl_ecc.h:108
uint32_t SDL_Ecc_AggrIntrSrc
This enumerator defines the types of possible ECC errors.
Definition: sdl_ip_ecc.h:108
int32_t SDL_ECC_getESMErrorInfo(SDL_ESM_Inst instance, uint32_t intSrc, SDL_ECC_MemType *eccMemType, SDL_Ecc_AggrIntrSrc *intrSrcType)
Retrieves the ECC error information for the specified ESM error. If it isn't an ECC error or the ECC ...
Definition: sdl_ecc.h:161
SDL_ECC_MemSubType * pMemSubTypeList
Definition: sdl_ecc.h:138
uint32_t SDL_ECC_MemSubType
This enumerator indicate ECC memory Sub Type.
Definition: sdl_ecc.h:117
@ SDL_INJECT_ECC_ERROR_FORCING_1BIT_N_ROW_REPEAT
Definition: sdl_ecc.h:95
int32_t SDL_ECC_clearNIntrPending(SDL_ECC_MemType eccMemType, SDL_ECC_MemSubType memSubType, SDL_Ecc_AggrIntrSrc intrSrc, SDL_Ecc_AggrEDCErrorSubType subType, uint32_t numEvents)
Clears N pending interrupts for the specified memtype, subtype and interrupt source.
uint32_t injectBitErrCnt
Definition: sdl_ecc.h:170
int32_t SDL_ECC_getErrorInfo(SDL_ECC_MemType eccMemType, SDL_Ecc_AggrIntrSrc intrSrc, SDL_ECC_ErrorInfo_t *pErrorInfo)
Retrieves the ECC error information for the specified memtype and interrupt source.
uint32_t bitErrCnt
Definition: sdl_ecc.h:168
SDL_ECC_MemType eccMemType
Definition: sdl_ecc.h:162
void SDL_ECC_applicationCallbackFunction(SDL_ECC_MemType eccMemType, uint32_t errorSrc, uint32_t address, uint32_t ramId, uint64_t bitErrorOffset, uint32_t bitErrorGroup)
Application provided external callback function for ECC handling Called inside the reference function...
@ SDL_INJECT_ECC_ERROR_FORCING_2BIT_N_ROW_REPEAT
Definition: sdl_ecc.h:97
SDL_ECC_RamIdType
Definition: sdl_ecc.h:105
@ SDL_ECC_RAM_ID_TYPE_WRAPPER
Definition: sdl_ecc.h:106
int32_t SDL_ECC_init(SDL_ECC_MemType eccMemType, const SDL_ECC_InitConfig_t *pECCInitConfig)
Initializes ECC module for ECC detection.