AM62x MCU+ SDK  09.00.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 (0xffu)
46 #define SDL_ECC_INJECTTYPE_INVALID (0xffffffffu)
47 #define SDL_ECC_TYPE_INVALID (0xffu)
48 
54 #if defined(SOC_AM62X)
55 typedef struct SDL_GrpChkConfig_s
56 {
57  uint8_t dataWidth;
59 } SDL_GrpChkConfig_t;
60 #endif
61 #if defined(SOC_AM62AX)
62 typedef struct SDL_GrpChkConfig_s
63 {
64  uint32_t checkerType;
65  uint32_t dataWidth;
67 } SDL_GrpChkConfig_t;
68 #endif
69 typedef struct SDL_RAMIdEntry_s
70 {
71  uint8_t RAMId;
79  uint8_t ramIdType;
82  uint16_t numCheckers;
85  const SDL_GrpChkConfig_t *grpChkConfig;
89 
94 typedef struct SDL_MemConfig_s
95 {
98  uintptr_t memStartAddr;
100  uint32_t size;
102  uint32_t stride;
104  uint32_t rowSize;
106  bool readable;
109 
110 typedef struct SDL_EccAggrEntry_s
111 {
112  uint32_t numRams;
114  uint32_t numMemEntries;
116  uint32_t esmInst;
117  uint32_t esmIntSEC;
118  uint32_t esmIntDED;
120 
121 #endif /* INCLUDE_SDL_ECC_PRIV_H_ */
SDL_EccAggrEntry_t::esmIntSEC
uint32_t esmIntSEC
Definition: sdl_ecc_priv.h:117
SDL_EccAggrEntry_t::memConfigTable
const SDL_MemConfig_t * memConfigTable
Definition: sdl_ecc_priv.h:115
SDL_MemConfig_t::rowSize
uint32_t rowSize
Definition: sdl_ecc_priv.h:104
SDL_MemConfig_t::size
uint32_t size
Definition: sdl_ecc_priv.h:100
SDL_MemConfig_t::readable
bool readable
Definition: sdl_ecc_priv.h:106
SDL_MemConfig_t::memSubType
SDL_ECC_MemSubType memSubType
Definition: sdl_ecc_priv.h:96
SDL_RAMIdEntry_t::aggregatorTypeInjectOnly
uint8_t aggregatorTypeInjectOnly
Definition: sdl_ecc_priv.h:73
SDL_MemConfig_t::stride
uint32_t stride
Definition: sdl_ecc_priv.h:102
SDL_EccAggrEntry_t::numRams
uint32_t numRams
Definition: sdl_ecc_priv.h:112
SDL_RAMIdEntry_t::grpChkConfig
const SDL_GrpChkConfig_t * grpChkConfig
Definition: sdl_ecc_priv.h:85
SDL_MemConfig_t
Definition: sdl_ecc_priv.h:95
SDL_EccAggrEntry_t::esmInst
uint32_t esmInst
Definition: sdl_ecc_priv.h:116
SDL_EccAggrEntry_t::ramTable
const SDL_RAMIdEntry_t * ramTable
Definition: sdl_ecc_priv.h:113
SDL_RAMIdEntry_t::RAMId
uint8_t RAMId
Definition: sdl_ecc_priv.h:71
SDL_MemConfig_t::memStartAddr
uintptr_t memStartAddr
Definition: sdl_ecc_priv.h:98
SDL_RAMIdEntry_t
This structure defines the elements of ECC Group checker for Interconnect.
Definition: sdl_ecc_priv.h:70
SDL_EccAggrEntry_t::numMemEntries
uint32_t numMemEntries
Definition: sdl_ecc_priv.h:114
SDL_ECC_MemSubType
uint32_t SDL_ECC_MemSubType
This enumerator indicate ECC memory Sub Type.
Definition: sdl_ecc.h:276
SDL_EccAggrEntry_t::esmIntDED
uint32_t esmIntDED
Definition: sdl_ecc_priv.h:118
SDL_RAMIdEntry_t::ramIdType
uint8_t ramIdType
Definition: sdl_ecc_priv.h:79
SDL_EccAggrEntry_t
Definition: sdl_ecc_priv.h:111
SDL_RAMIdEntry_t::numCheckers
uint16_t numCheckers
Definition: sdl_ecc_priv.h:82