AM62Px MCU+ SDK  09.02.01
sdl_ecc_priv.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2023 Texas Instruments Incorporated
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
33 #ifndef INCLUDE_SDL_ECC_PRIV_H_
34 #define INCLUDE_SDL_ECC_PRIV_H_
35 
36 #include <stdbool.h>
37 #include <sdl/ecc/soc/sdl_soc_ecc.h>
38 
39 #define SDL_ECC_EVENT_FOUND (1u)
40 
41 #define SDL_ECC_RAMID_INVALID (0xffu)
42 #define SDL_ECC_INJECTTYPE_INVALID (0xffffffffu)
43 #define SDL_ECC_TYPE_INVALID (0xffu)
44 
45 typedef struct SDL_RAMIdEntry_s
46 {
47  uint8_t RAMId;
55  uint8_t ramIdType;
58  uint16_t numCheckers;
61  const SDL_GrpChkConfig_t *grpChkConfig;
65 
70 typedef struct SDL_MemConfig_s
71 {
74  uintptr_t memStartAddr;
76  uint32_t size;
78  uint32_t stride;
80  uint32_t rowSize;
82  bool readable;
85 
86 typedef struct SDL_EccAggrEntry_s
87 {
88  uint32_t numRams;
90  uint32_t numMemEntries;
92  uint32_t esmInst;
93  uint32_t esmIntSEC;
94  uint32_t esmIntDED;
96 
97 #endif /* INCLUDE_SDL_ECC_PRIV_H_ */
SDL_EccAggrEntry_t::esmIntSEC
uint32_t esmIntSEC
Definition: sdl_ecc_priv.h:93
SDL_EccAggrEntry_t::memConfigTable
const SDL_MemConfig_t * memConfigTable
Definition: sdl_ecc_priv.h:91
SDL_MemConfig_t::rowSize
uint32_t rowSize
Definition: sdl_ecc_priv.h:80
SDL_MemConfig_t::size
uint32_t size
Definition: sdl_ecc_priv.h:76
SDL_MemConfig_t::readable
bool readable
Definition: sdl_ecc_priv.h:82
SDL_MemConfig_t::memSubType
SDL_ECC_MemSubType memSubType
Definition: sdl_ecc_priv.h:72
SDL_RAMIdEntry_t::aggregatorTypeInjectOnly
uint8_t aggregatorTypeInjectOnly
Definition: sdl_ecc_priv.h:49
SDL_MemConfig_t::stride
uint32_t stride
Definition: sdl_ecc_priv.h:78
SDL_EccAggrEntry_t::numRams
uint32_t numRams
Definition: sdl_ecc_priv.h:88
SDL_RAMIdEntry_t::grpChkConfig
const SDL_GrpChkConfig_t * grpChkConfig
Definition: sdl_ecc_priv.h:61
SDL_MemConfig_t
Definition: sdl_ecc_priv.h:71
SDL_EccAggrEntry_t::esmInst
uint32_t esmInst
Definition: sdl_ecc_priv.h:92
SDL_EccAggrEntry_t::ramTable
const SDL_RAMIdEntry_t * ramTable
Definition: sdl_ecc_priv.h:89
SDL_RAMIdEntry_t::RAMId
uint8_t RAMId
Definition: sdl_ecc_priv.h:47
SDL_MemConfig_t::memStartAddr
uintptr_t memStartAddr
Definition: sdl_ecc_priv.h:74
SDL_RAMIdEntry_t
Definition: sdl_ecc_priv.h:46
SDL_EccAggrEntry_t::numMemEntries
uint32_t numMemEntries
Definition: sdl_ecc_priv.h:90
SDL_ECC_MemSubType
uint32_t SDL_ECC_MemSubType
This enumerator indicate ECC memory Sub Type.
Definition: sdl_ecc.h:117
SDL_EccAggrEntry_t::esmIntDED
uint32_t esmIntDED
Definition: sdl_ecc_priv.h:94
SDL_RAMIdEntry_t::ramIdType
uint8_t ramIdType
Definition: sdl_ecc_priv.h:55
SDL_EccAggrEntry_t
Definition: sdl_ecc_priv.h:87
SDL_RAMIdEntry_t::numCheckers
uint16_t numCheckers
Definition: sdl_ecc_priv.h:58