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