2 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 /************************************************************************
18 * File name : sysup_addr.h
19 * System name : Integrated PF
20 * Subsystem name : Common system
21 * Title : Boot-Related Address Definition Header Files
22 ************************************************************************/
24 #ifndef POSITIONING_BASE_LIBRARY_LIBRARY_INCLUDE_SYSUP_ADDR_H_
25 #define POSITIONING_BASE_LIBRARY_LIBRARY_INCLUDE_SYSUP_ADDR_H_
27 /*****************************************************
29 * Initial management area address space definition
31 ****************************************************/
32 /* Note : Don't forget to change sysup_addr.inc at the same time! */
34 /* SDRAM startup identification table (1) A Offset from the beginning 0x0 */
35 #define ADDR_SYSUP_DRAM1 ((SDRAM_INITIAL_AREA & ADDR_MASK) | ADDR_P2) // NOLINT(runtime/references)
36 /* SDRAM startup identification table (1) S */
37 #define SIZE_SYSUP_DRAM1 0x00000004
39 /* SDRAM Start Identification Table A Offset from the beginning 0x4 */
40 #define ADDR_SYSUP_DRAM_FIX (ADDR_SYSUP_DRAM1 + SIZE_SYSUP_DRAM1)
41 /* SDRAM Start Identification Table S */
42 #define SIZE_SYSUP_DRAM_FIX 0x00000004
44 /* Startup Status Table A Offset from the beginning 0x8 */
45 #define ADDR_SYSUP_STS (ADDR_SYSUP_DRAM_FIX + SIZE_SYSUP_DRAM_FIX)
46 /* Startup Status Table S */
47 #define SIZE_SYSUP_STS 0x00000002
49 #define ADDR_SYS_DUMMY1 (ADDR_SYSUP_STS + SIZE_SYSUP_STS) /* Dummy1 A Offset from the beginning 0xa */
50 #define SIZE_SYS_DUMMY1 0x00000002 /* Dummy1 S */
52 #define ADDR_UPMODE (ADDR_SYS_DUMMY1 + SIZE_SYS_DUMMY1) /* Boot Mode Save Table A Offset from the beginning 0xc */
53 #define SIZE_UPMODE 0x00000004 /* Boot Mode Save Table S */
55 #define ADDR_SYSUP_STS_GINI (ADDR_UPMODE + SIZE_UPMODE) /* System startup status table A Offset from the beginning 0x10 */
56 #define SIZE_SYSUP_STS_GINI 0x00000002 /* System startup status table S */
58 /* Fork Failures Recording Table A Offset from the beginning 0x12 */
59 #define ADDR_SYSUP_RST_CNT (ADDR_SYSUP_STS_GINI + SIZE_SYSUP_STS_GINI)
60 /* Fork Failures Recording Table S */
61 #define SIZE_SYSUP_RST_CNT 0x00000002
63 /* System anomaly process No. table A Offset from the beginning 0x14 */
64 #define ADDR_SYS_ERR_PNO (ADDR_SYSUP_RST_CNT + SIZE_SYSUP_RST_CNT)
65 /* System anomaly process No. table S */
66 #define SIZE_SYS_ERR_PNO 0x00000004
68 /* System error reset cause table A Offset from the beginning 0x18 */
69 #define ADDR_SYS_ERR_RST (ADDR_SYS_ERR_PNO + SIZE_SYS_ERR_PNO)
70 /* System error reset cause table S */
71 #define SIZE_SYS_ERR_RST 0x00000004
73 /* System startup failure table A Offset from the beginning 0x1c */
74 #define ADDR_SYSUP_ERR_STS (ADDR_SYS_ERR_RST + SIZE_SYS_ERR_RST)
75 /* System startup failure table S */
76 #define SIZE_SYSUP_ERR_STS 0x00000004
78 /* Navigation activation state table A Offset from the beginning 0x20 */
79 #define ADDR_NAVIUP_STS (ADDR_SYSUP_ERR_STS + SIZE_SYSUP_ERR_STS)
80 /* Navigation activation state table S */
81 #define SIZE_NAVIUP_STS 0x00000002
83 /* Navigation fork Failed Count Recording Table A Offset from the beginning 0x22*/
84 #define ADDR_NAVIUP_RST_CNT (ADDR_NAVIUP_STS + SIZE_NAVIUP_STS)
85 /* Navigation fork Failed Count Recording Table S */
86 #define SIZE_NAVIUP_RST_CNT 0x00000002
88 /* Navigation error process No. table A Offset from the beginning 0x24 */
89 #define ADDR_NAVI_ERR_PNO (ADDR_NAVIUP_RST_CNT + SIZE_NAVIUP_RST_CNT)
90 /* Navigation error process No. table S */
91 #define SIZE_NAVI_ERR_PNO 0x00000004
93 /* Navigation Error Cause Table A Offset from the beginning 0x28 */
94 #define ADDR_NAVI_ERR (ADDR_NAVI_ERR_PNO + SIZE_NAVI_ERR_PNO)
95 /* Navigation Error Cause Table S */
96 #define SIZE_NAVI_ERR 0x00000004
98 #define ADDR_NAVIUP_ERR_STS (ADDR_NAVI_ERR + SIZE_NAVI_ERR) /* Navigation start failure table A Offset from the beginning 0x2c */
99 #define SIZE_NAVIUP_ERR_STS 0x00000004 /* Navigation start failure table S */
101 /* SDRAM startup identification table (2) A Offset from the beginning 0x30 */
102 #define ADDR_SYSUP_DRAM2 (ADDR_NAVIUP_ERR_STS + SIZE_NAVIUP_ERR_STS)
103 /* SDRAM startup identification table (2) S */
104 #define SIZE_SYSUP_DRAM2 0x00000004
106 /* SDRAM Backup Status Table A Offset from the beginning 0x34 */
107 #define ADDR_SYS_BUP_STS (ADDR_SYSUP_DRAM2 + SIZE_SYSUP_DRAM2)
108 /* SDRAM Backup Status Table S */
109 #define SIZE_SYS_BUP_STS 0x00000004
111 /* NAVI-SYS communication error recording table A Offset from the beginning 0x38 */
112 #define ADDR_SYSCOM_STS (ADDR_SYS_BUP_STS + SIZE_SYS_BUP_STS)
113 /* NAVI-SYS communication error recording table S */
114 #define SIZE_SYSCOM_STS 0x00000004
116 /* SDRAM Power Supply Fault Detection Table A Offset from the beginning 0x3c */
117 #define ADDR_SYS_PW_STS (ADDR_SYSCOM_STS + SIZE_SYSCOM_STS)
118 /* SDRAM Power Supply Fault Detection Table S */
119 #define SIZE_SYS_PW_STS 0x00000004
121 /* Hard WDT generation table A Offset from the beginning 0x40 */
122 #define ADDR_HWDT_STS (ADDR_SYS_PW_STS + SIZE_SYS_PW_STS)
123 /* Hard WDT generation table S */
124 #define SIZE_HWDT_STS 0x00000004
126 /* SDRAM Labels Destruct Status Detection Table A Offset from the beginning 0x44 */
127 #define ADDR_DRAMLABEL_STS (ADDR_HWDT_STS + SIZE_HWDT_STS)
128 /* SDRAM Labels Destruct Status Detection Table S */
129 #define SIZE_DRAMLABEL_STS 0x00000004
131 #define ADDR_SSB_MNG (ADDR_DRAMLABEL_STS + SIZE_DRAMLABEL_STS) /* SSB management table A Offset from the beginning 0x48 */
132 #define SIZE_SSB_MNG 0x00000004 /* SSB management table S */
134 #define ADDR_NMI_END (ADDR_SSB_MNG + SIZE_SSB_MNG) /* NMI completion flag A Offset from the beginning 0x4c */
135 #define SIZE_NMI_END 0x00000004 /* NMI completion flag S */
137 /* Opening indication determination table A Offset from the beginning 0x50 */
138 #define ADDR_OPDSP_CHK (ADDR_NMI_END + SIZE_NMI_END)
139 /* Opening indication determination table S */
140 #define SIZE_OPDSP_CHK 0x00000004
142 #define ADDR_SYS_FROM_STS (ADDR_OPDSP_CHK + SIZE_OPDSP_CHK) /* FROM destruction status table A Offset from the beginning 0x54 */
143 #define SIZE_SYS_FROM_STS 0x00000004 /* FROM destruction status table S */
145 /* BootLoader status A Offset from the beginning 0x58 */
146 #define ADDR_BOOT_STS (ADDR_SYS_FROM_STS + SIZE_SYS_FROM_STS)
147 /* BootLoader status S */
148 #define SIZE_BOOT_STS 0x00000004
150 /* BootLoader Exceptions Recording Table A Offset from the beginning 0x5c */
151 #define ADDR_BOOTEXP_LOG (ADDR_BOOT_STS + SIZE_BOOT_STS)
152 /* BootLoader Exceptions Recording Table S */
153 #define SIZE_BOOTEXP_LOG 0x00000004
155 /* SDRAM startup identification table (3) A Offset from the beginning0x60 */
156 #define ADDR_SYSUP_DRAM3 (ADDR_BOOTEXP_LOG + SIZE_BOOTEXP_LOG)
157 /* SDRAM startup identification table (3) S */
158 #define SIZE_SYSUP_DRAM3 0x00000004
160 /* Error Logging Table in BootLoader Drivers A Offset from the beginning 0x64 */
161 #define ADDR_BOOTERR_LOG (ADDR_SYSUP_DRAM3 + SIZE_SYSUP_DRAM3)
162 /* Error Logging Table in BootLoader Drivers S */
163 #define SIZE_BOOTERR_LOG 0x00000004
165 /* EPC register values at the time of exceptions in the BootLoader A Offset from the beginning 0x68 */
166 #define ADDR_BOOT_EPC (ADDR_BOOTERR_LOG + SIZE_BOOTERR_LOG)
167 /* EPC register values at the time of exceptions in the BootLoader S */
168 #define SIZE_BOOT_EPC 0x00000004
170 /* Status register when exceptions occur in the BootLoader A Offset from the beginning 0x6c */
171 #define ADDR_BOOT_SR (ADDR_BOOT_EPC + SIZE_BOOT_EPC)
172 /* Status register when exceptions occur in the BootLoader S */
173 #define SIZE_BOOT_SR 0x00000004
175 /* Cause Register Values When Internal BootLoader Exceptions Occur A Offset from the beginning 0x70 */
176 #define ADDR_BOOT_CAUSE (ADDR_BOOT_SR + SIZE_BOOT_SR)
177 /* Cause Register Values When Internal BootLoader Exceptions Occur S */
178 #define SIZE_BOOT_CAUSE 0x00000004
180 /* NMI completion flag(Copying) A Offset from the beginning 0x74 */
181 #define ADDR_NMI_END_CPY (ADDR_BOOT_CAUSE + SIZE_BOOT_CAUSE)
182 /* NMI completion flag(Copying) S */
183 #define SIZE_NMI_END_CPY 0x00000004
185 /* Target Type A Offset from the beginning 0x78 */
186 #define ADDR_TARGET (ADDR_NMI_END_CPY + SIZE_NMI_END_CPY)
188 #define SIZE_TARGET 0x00000004
190 #define ADDR_SYS_NR_RST (ADDR_TARGET + SIZE_TARGET) /* Normal reset factor table A 0x7c */
191 #define SIZE_SYS_NR_RST 0x00000004 /* Normal reset factor table S */
193 #define ADDR_NK_LOAD_STS (ADDR_SYS_NR_RST + SIZE_SYS_NR_RST) /* NK Load Status Table A 0x80 */
194 #define SIZE_NK_LOAD_STS 0x00000004 /* NK Load Status Table S */
196 #define ADDR_CRC_RETRY (ADDR_NK_LOAD_STS + SIZE_NK_LOAD_STS) /* CRC retry count table A 0x84 */
197 #define SIZE_CRC_RETRY 0x00000004 /* CRC retry count table S */
199 #define ADDR_BOOT_VBR (ADDR_CRC_RETRY + SIZE_CRC_RETRY) /* VBR-saved table in BootLoaderr A 0x88 */
200 #define SIZE_BOOT_VBR 0x00000004 /* VBR-saved table in BootLoaderr S */
202 #define ADDR_MONI_TYPE (ADDR_BOOT_VBR + SIZE_BOOT_VBR) /* Monitor Type Table A 0x8C */
203 #define SIZE_MONI_TYPE 0x00000004 /* Monitor Type Table S */
205 #define ADDR_B_FLAG (ADDR_MONI_TYPE + SIZE_MONI_TYPE) /* B genuine flag A 0x90 */
206 #define SIZE_B_FLAG 0x00000010 /* B genuine flag S */
208 #define ADDR_RGBCABLE_TYPE (ADDR_B_FLAG + SIZE_B_FLAG) /* Connection RGB Cable Type Table A 0xA0 */
209 #define SIZE_RGBCABLE_TYPE 0x0000004 /* Connection RGB Cable Type Table S */
211 #define ADDR_RESET_LABEL (ADDR_RGBCABLE_TYPE + SIZE_RGBCABLE_TYPE) /* Normal reset label area A 0xA4 */
212 #define SIZE_RESET_LABEL 0x00000010 /* Normal reset label area S */
214 #define ADDR_NK_VUP_FLAG (ADDR_RESET_LABEL + SIZE_RESET_LABEL) /* NK version upgrade flag A 0xB4 */
215 #define SIZE_NK_VUP_FLAG 0x00000004 /* NK version upgrade flag S */
217 #define ADDR_TRANS_VUP (ADDR_NK_VUP_FLAG + SIZE_NK_VUP_FLAG) /* VUP migration flag A */
218 #define SIZE_TRANS_VUP 0x00000004 /* VUP migration flag S */
220 #define ADDR_PRG_SPAR_BOOT (ADDR_TRANS_VUP + SIZE_TRANS_VUP) /* Preliminary program start occurrence flag A */
221 #define SIZE_ADDR_PRG_SPAR_BOOT 0x00000004 /* Preliminary program start occurrence flag S */
223 #define ADDR_BOOT_ERR (ADDR_PRG_SPAR_BOOT + SIZE_ADDR_PRG_SPAR_BOOT) /* OS Pre-boot Error Information Storage Table A */
224 #define SIZE_BOOT_ERR 0x00000004 /* OS Pre-boot Error Information Storage Table S */
226 #endif // POSITIONING_BASE_LIBRARY_LIBRARY_INCLUDE_SYSUP_ADDR_H_