Pavona Software APIs
top_scafi_deprecated_memory.h
Go to the documentation of this file.
1// Copyright lowRISC contributors (OpenTitan project).
2// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3// SPDX-License-Identifier: Apache-2.0
4//
5// ------------------- W A R N I N G: A U T O - G E N E R A T E D C O D E !! -------------------//
6// PLEASE DO NOT HAND-EDIT THIS FILE. IT HAS BEEN AUTO-GENERATED WITH THE FOLLOWING COMMAND:
7// util/gen_top_sw.py -t hw/top_scafi_deprecated/data/autogen/top_scafi_deprecated.gen.hjson
8
9#ifndef OPENTITAN_HW_TOP_SCAFI_DEPRECATED_SW_AUTOGEN_TOP_SCAFI_DEPRECATED_MEMORY_H_
10#define OPENTITAN_HW_TOP_SCAFI_DEPRECATED_SW_AUTOGEN_TOP_SCAFI_DEPRECATED_MEMORY_H_
11
12/**
13 * @file
14 * @brief Assembler-only Top-Specific Definitions.
15 *
16 * This file contains preprocessor definitions for use within assembly code.
17 *
18 * These are not shared with C/C++ code because these are only allowed to be
19 * preprocessor definitions, no data or type declarations are allowed. The
20 * assembler is also stricter about literals (not allowing suffixes for
21 * signed/unsigned which are sensible to use for unsigned values in C/C++).
22 */
23
24// Include guard for assembler
25#ifdef __ASSEMBLER__
26
27/**
28 * Memory base for mem memory on flash_ctrl in top scafi_deprecated.
29 */
30#define TOP_SCAFI_DEPRECATED_FLASH_CTRL_MEM_BASE_ADDR 0x20000000
31
32/**
33 * Memory size for mem memory on flash_ctrl in top scafi_deprecated.
34 */
35#define TOP_SCAFI_DEPRECATED_FLASH_CTRL_MEM_SIZE_BYTES 0x10000
36
37/**
38 * Memory base for ram memory on sram_ctrl_main in top scafi_deprecated.
39 */
40#define TOP_SCAFI_DEPRECATED_SRAM_CTRL_MAIN_RAM_BASE_ADDR 0x10000000
41
42/**
43 * Memory size for ram memory on sram_ctrl_main in top scafi_deprecated.
44 */
45#define TOP_SCAFI_DEPRECATED_SRAM_CTRL_MAIN_RAM_SIZE_BYTES 0x20000
46
47/**
48 * Memory base for rom memory on rom_ctrl in top scafi_deprecated.
49 */
50#define TOP_SCAFI_DEPRECATED_ROM_CTRL_ROM_BASE_ADDR 0x8000
51
52/**
53 * Memory size for rom memory on rom_ctrl in top scafi_deprecated.
54 */
55#define TOP_SCAFI_DEPRECATED_ROM_CTRL_ROM_SIZE_BYTES 0x8000
56
57
58/**
59 * Peripheral base address for uart0 in top scafi_deprecated.
60 *
61 * This should be used with #mmio_region_from_addr to access the memory-mapped
62 * registers associated with the peripheral (usually via a DIF).
63 */
64#define TOP_SCAFI_DEPRECATED_UART0_BASE_ADDR 0x40000000
65
66/**
67 * Peripheral size for uart0 in top scafi_deprecated.
68 *
69 * This is the size (in bytes) of the peripheral's reserved memory area. All
70 * memory-mapped registers associated with this peripheral should have an
71 * address between #TOP_SCAFI_DEPRECATED_UART0_BASE_ADDR and
72 * `TOP_SCAFI_DEPRECATED_UART0_BASE_ADDR + TOP_SCAFI_DEPRECATED_UART0_SIZE_BYTES`.
73 */
74#define TOP_SCAFI_DEPRECATED_UART0_SIZE_BYTES 0x40
75/**
76 * Peripheral base address for uart1 in top scafi_deprecated.
77 *
78 * This should be used with #mmio_region_from_addr to access the memory-mapped
79 * registers associated with the peripheral (usually via a DIF).
80 */
81#define TOP_SCAFI_DEPRECATED_UART1_BASE_ADDR 0x40010000
82
83/**
84 * Peripheral size for uart1 in top scafi_deprecated.
85 *
86 * This is the size (in bytes) of the peripheral's reserved memory area. All
87 * memory-mapped registers associated with this peripheral should have an
88 * address between #TOP_SCAFI_DEPRECATED_UART1_BASE_ADDR and
89 * `TOP_SCAFI_DEPRECATED_UART1_BASE_ADDR + TOP_SCAFI_DEPRECATED_UART1_SIZE_BYTES`.
90 */
91#define TOP_SCAFI_DEPRECATED_UART1_SIZE_BYTES 0x40
92/**
93 * Peripheral base address for gpio in top scafi_deprecated.
94 *
95 * This should be used with #mmio_region_from_addr to access the memory-mapped
96 * registers associated with the peripheral (usually via a DIF).
97 */
98#define TOP_SCAFI_DEPRECATED_GPIO_BASE_ADDR 0x40040000
99
100/**
101 * Peripheral size for gpio in top scafi_deprecated.
102 *
103 * This is the size (in bytes) of the peripheral's reserved memory area. All
104 * memory-mapped registers associated with this peripheral should have an
105 * address between #TOP_SCAFI_DEPRECATED_GPIO_BASE_ADDR and
106 * `TOP_SCAFI_DEPRECATED_GPIO_BASE_ADDR + TOP_SCAFI_DEPRECATED_GPIO_SIZE_BYTES`.
107 */
108#define TOP_SCAFI_DEPRECATED_GPIO_SIZE_BYTES 0x80
109/**
110 * Peripheral base address for spi_device in top scafi_deprecated.
111 *
112 * This should be used with #mmio_region_from_addr to access the memory-mapped
113 * registers associated with the peripheral (usually via a DIF).
114 */
115#define TOP_SCAFI_DEPRECATED_SPI_DEVICE_BASE_ADDR 0x40050000
116
117/**
118 * Peripheral size for spi_device in top scafi_deprecated.
119 *
120 * This is the size (in bytes) of the peripheral's reserved memory area. All
121 * memory-mapped registers associated with this peripheral should have an
122 * address between #TOP_SCAFI_DEPRECATED_SPI_DEVICE_BASE_ADDR and
123 * `TOP_SCAFI_DEPRECATED_SPI_DEVICE_BASE_ADDR + TOP_SCAFI_DEPRECATED_SPI_DEVICE_SIZE_BYTES`.
124 */
125#define TOP_SCAFI_DEPRECATED_SPI_DEVICE_SIZE_BYTES 0x2000
126/**
127 * Peripheral base address for spi_host0 in top scafi_deprecated.
128 *
129 * This should be used with #mmio_region_from_addr to access the memory-mapped
130 * registers associated with the peripheral (usually via a DIF).
131 */
132#define TOP_SCAFI_DEPRECATED_SPI_HOST0_BASE_ADDR 0x40060000
133
134/**
135 * Peripheral size for spi_host0 in top scafi_deprecated.
136 *
137 * This is the size (in bytes) of the peripheral's reserved memory area. All
138 * memory-mapped registers associated with this peripheral should have an
139 * address between #TOP_SCAFI_DEPRECATED_SPI_HOST0_BASE_ADDR and
140 * `TOP_SCAFI_DEPRECATED_SPI_HOST0_BASE_ADDR + TOP_SCAFI_DEPRECATED_SPI_HOST0_SIZE_BYTES`.
141 */
142#define TOP_SCAFI_DEPRECATED_SPI_HOST0_SIZE_BYTES 0x40
143/**
144 * Peripheral base address for rv_timer in top scafi_deprecated.
145 *
146 * This should be used with #mmio_region_from_addr to access the memory-mapped
147 * registers associated with the peripheral (usually via a DIF).
148 */
149#define TOP_SCAFI_DEPRECATED_RV_TIMER_BASE_ADDR 0x40100000
150
151/**
152 * Peripheral size for rv_timer in top scafi_deprecated.
153 *
154 * This is the size (in bytes) of the peripheral's reserved memory area. All
155 * memory-mapped registers associated with this peripheral should have an
156 * address between #TOP_SCAFI_DEPRECATED_RV_TIMER_BASE_ADDR and
157 * `TOP_SCAFI_DEPRECATED_RV_TIMER_BASE_ADDR + TOP_SCAFI_DEPRECATED_RV_TIMER_SIZE_BYTES`.
158 */
159#define TOP_SCAFI_DEPRECATED_RV_TIMER_SIZE_BYTES 0x200
160/**
161 * Peripheral base address for usbdev in top scafi_deprecated.
162 *
163 * This should be used with #mmio_region_from_addr to access the memory-mapped
164 * registers associated with the peripheral (usually via a DIF).
165 */
166#define TOP_SCAFI_DEPRECATED_USBDEV_BASE_ADDR 0x40320000
167
168/**
169 * Peripheral size for usbdev in top scafi_deprecated.
170 *
171 * This is the size (in bytes) of the peripheral's reserved memory area. All
172 * memory-mapped registers associated with this peripheral should have an
173 * address between #TOP_SCAFI_DEPRECATED_USBDEV_BASE_ADDR and
174 * `TOP_SCAFI_DEPRECATED_USBDEV_BASE_ADDR + TOP_SCAFI_DEPRECATED_USBDEV_SIZE_BYTES`.
175 */
176#define TOP_SCAFI_DEPRECATED_USBDEV_SIZE_BYTES 0x1000
177/**
178 * Peripheral base address for pwrmgr_aon in top scafi_deprecated.
179 *
180 * This should be used with #mmio_region_from_addr to access the memory-mapped
181 * registers associated with the peripheral (usually via a DIF).
182 */
183#define TOP_SCAFI_DEPRECATED_PWRMGR_AON_BASE_ADDR 0x40400000
184
185/**
186 * Peripheral size for pwrmgr_aon in top scafi_deprecated.
187 *
188 * This is the size (in bytes) of the peripheral's reserved memory area. All
189 * memory-mapped registers associated with this peripheral should have an
190 * address between #TOP_SCAFI_DEPRECATED_PWRMGR_AON_BASE_ADDR and
191 * `TOP_SCAFI_DEPRECATED_PWRMGR_AON_BASE_ADDR + TOP_SCAFI_DEPRECATED_PWRMGR_AON_SIZE_BYTES`.
192 */
193#define TOP_SCAFI_DEPRECATED_PWRMGR_AON_SIZE_BYTES 0x80
194/**
195 * Peripheral base address for rstmgr_aon in top scafi_deprecated.
196 *
197 * This should be used with #mmio_region_from_addr to access the memory-mapped
198 * registers associated with the peripheral (usually via a DIF).
199 */
200#define TOP_SCAFI_DEPRECATED_RSTMGR_AON_BASE_ADDR 0x40410000
201
202/**
203 * Peripheral size for rstmgr_aon in top scafi_deprecated.
204 *
205 * This is the size (in bytes) of the peripheral's reserved memory area. All
206 * memory-mapped registers associated with this peripheral should have an
207 * address between #TOP_SCAFI_DEPRECATED_RSTMGR_AON_BASE_ADDR and
208 * `TOP_SCAFI_DEPRECATED_RSTMGR_AON_BASE_ADDR + TOP_SCAFI_DEPRECATED_RSTMGR_AON_SIZE_BYTES`.
209 */
210#define TOP_SCAFI_DEPRECATED_RSTMGR_AON_SIZE_BYTES 0x40
211/**
212 * Peripheral base address for clkmgr_aon in top scafi_deprecated.
213 *
214 * This should be used with #mmio_region_from_addr to access the memory-mapped
215 * registers associated with the peripheral (usually via a DIF).
216 */
217#define TOP_SCAFI_DEPRECATED_CLKMGR_AON_BASE_ADDR 0x40420000
218
219/**
220 * Peripheral size for clkmgr_aon in top scafi_deprecated.
221 *
222 * This is the size (in bytes) of the peripheral's reserved memory area. All
223 * memory-mapped registers associated with this peripheral should have an
224 * address between #TOP_SCAFI_DEPRECATED_CLKMGR_AON_BASE_ADDR and
225 * `TOP_SCAFI_DEPRECATED_CLKMGR_AON_BASE_ADDR + TOP_SCAFI_DEPRECATED_CLKMGR_AON_SIZE_BYTES`.
226 */
227#define TOP_SCAFI_DEPRECATED_CLKMGR_AON_SIZE_BYTES 0x80
228/**
229 * Peripheral base address for pinmux_aon in top scafi_deprecated.
230 *
231 * This should be used with #mmio_region_from_addr to access the memory-mapped
232 * registers associated with the peripheral (usually via a DIF).
233 */
234#define TOP_SCAFI_DEPRECATED_PINMUX_AON_BASE_ADDR 0x40460000
235
236/**
237 * Peripheral size for pinmux_aon in top scafi_deprecated.
238 *
239 * This is the size (in bytes) of the peripheral's reserved memory area. All
240 * memory-mapped registers associated with this peripheral should have an
241 * address between #TOP_SCAFI_DEPRECATED_PINMUX_AON_BASE_ADDR and
242 * `TOP_SCAFI_DEPRECATED_PINMUX_AON_BASE_ADDR + TOP_SCAFI_DEPRECATED_PINMUX_AON_SIZE_BYTES`.
243 */
244#define TOP_SCAFI_DEPRECATED_PINMUX_AON_SIZE_BYTES 0x1000
245/**
246 * Peripheral base address for aon_timer_aon in top scafi_deprecated.
247 *
248 * This should be used with #mmio_region_from_addr to access the memory-mapped
249 * registers associated with the peripheral (usually via a DIF).
250 */
251#define TOP_SCAFI_DEPRECATED_AON_TIMER_AON_BASE_ADDR 0x40470000
252
253/**
254 * Peripheral size for aon_timer_aon in top scafi_deprecated.
255 *
256 * This is the size (in bytes) of the peripheral's reserved memory area. All
257 * memory-mapped registers associated with this peripheral should have an
258 * address between #TOP_SCAFI_DEPRECATED_AON_TIMER_AON_BASE_ADDR and
259 * `TOP_SCAFI_DEPRECATED_AON_TIMER_AON_BASE_ADDR + TOP_SCAFI_DEPRECATED_AON_TIMER_AON_SIZE_BYTES`.
260 */
261#define TOP_SCAFI_DEPRECATED_AON_TIMER_AON_SIZE_BYTES 0x40
262/**
263 * Peripheral base address for ast in top scafi_deprecated.
264 *
265 * This should be used with #mmio_region_from_addr to access the memory-mapped
266 * registers associated with the peripheral (usually via a DIF).
267 */
268#define TOP_SCAFI_DEPRECATED_AST_BASE_ADDR 0x40480000
269
270/**
271 * Peripheral size for ast in top scafi_deprecated.
272 *
273 * This is the size (in bytes) of the peripheral's reserved memory area. All
274 * memory-mapped registers associated with this peripheral should have an
275 * address between #TOP_SCAFI_DEPRECATED_AST_BASE_ADDR and
276 * `TOP_SCAFI_DEPRECATED_AST_BASE_ADDR + TOP_SCAFI_DEPRECATED_AST_SIZE_BYTES`.
277 */
278#define TOP_SCAFI_DEPRECATED_AST_SIZE_BYTES 0x400
279/**
280 * Peripheral base address for core device on flash_ctrl in top scafi_deprecated.
281 *
282 * This should be used with #mmio_region_from_addr to access the memory-mapped
283 * registers associated with the peripheral (usually via a DIF).
284 */
285#define TOP_SCAFI_DEPRECATED_FLASH_CTRL_CORE_BASE_ADDR 0x41000000
286
287/**
288 * Peripheral size for core device on flash_ctrl in top scafi_deprecated.
289 *
290 * This is the size (in bytes) of the peripheral's reserved memory area. All
291 * memory-mapped registers associated with this peripheral should have an
292 * address between #TOP_SCAFI_DEPRECATED_FLASH_CTRL_CORE_BASE_ADDR and
293 * `TOP_SCAFI_DEPRECATED_FLASH_CTRL_CORE_BASE_ADDR + TOP_SCAFI_DEPRECATED_FLASH_CTRL_CORE_SIZE_BYTES`.
294 */
295#define TOP_SCAFI_DEPRECATED_FLASH_CTRL_CORE_SIZE_BYTES 0x200
296/**
297 * Peripheral base address for flash_macro_wrapper in top scafi_deprecated.
298 *
299 * This should be used with #mmio_region_from_addr to access the memory-mapped
300 * registers associated with the peripheral (usually via a DIF).
301 */
302#define TOP_SCAFI_DEPRECATED_FLASH_MACRO_WRAPPER_BASE_ADDR 0x41008000
303
304/**
305 * Peripheral size for flash_macro_wrapper in top scafi_deprecated.
306 *
307 * This is the size (in bytes) of the peripheral's reserved memory area. All
308 * memory-mapped registers associated with this peripheral should have an
309 * address between #TOP_SCAFI_DEPRECATED_FLASH_MACRO_WRAPPER_BASE_ADDR and
310 * `TOP_SCAFI_DEPRECATED_FLASH_MACRO_WRAPPER_BASE_ADDR + TOP_SCAFI_DEPRECATED_FLASH_MACRO_WRAPPER_SIZE_BYTES`.
311 */
312#define TOP_SCAFI_DEPRECATED_FLASH_MACRO_WRAPPER_SIZE_BYTES 0x80
313/**
314 * Peripheral base address for rv_plic in top scafi_deprecated.
315 *
316 * This should be used with #mmio_region_from_addr to access the memory-mapped
317 * registers associated with the peripheral (usually via a DIF).
318 */
319#define TOP_SCAFI_DEPRECATED_RV_PLIC_BASE_ADDR 0x48000000
320
321/**
322 * Peripheral size for rv_plic in top scafi_deprecated.
323 *
324 * This is the size (in bytes) of the peripheral's reserved memory area. All
325 * memory-mapped registers associated with this peripheral should have an
326 * address between #TOP_SCAFI_DEPRECATED_RV_PLIC_BASE_ADDR and
327 * `TOP_SCAFI_DEPRECATED_RV_PLIC_BASE_ADDR + TOP_SCAFI_DEPRECATED_RV_PLIC_SIZE_BYTES`.
328 */
329#define TOP_SCAFI_DEPRECATED_RV_PLIC_SIZE_BYTES 0x8000000
330/**
331 * Peripheral base address for aes in top scafi_deprecated.
332 *
333 * This should be used with #mmio_region_from_addr to access the memory-mapped
334 * registers associated with the peripheral (usually via a DIF).
335 */
336#define TOP_SCAFI_DEPRECATED_AES_BASE_ADDR 0x41100000
337
338/**
339 * Peripheral size for aes in top scafi_deprecated.
340 *
341 * This is the size (in bytes) of the peripheral's reserved memory area. All
342 * memory-mapped registers associated with this peripheral should have an
343 * address between #TOP_SCAFI_DEPRECATED_AES_BASE_ADDR and
344 * `TOP_SCAFI_DEPRECATED_AES_BASE_ADDR + TOP_SCAFI_DEPRECATED_AES_SIZE_BYTES`.
345 */
346#define TOP_SCAFI_DEPRECATED_AES_SIZE_BYTES 0x100
347/**
348 * Peripheral base address for regs device on sram_ctrl_main in top scafi_deprecated.
349 *
350 * This should be used with #mmio_region_from_addr to access the memory-mapped
351 * registers associated with the peripheral (usually via a DIF).
352 */
353#define TOP_SCAFI_DEPRECATED_SRAM_CTRL_MAIN_REGS_BASE_ADDR 0x411C0000
354
355/**
356 * Peripheral size for regs device on sram_ctrl_main in top scafi_deprecated.
357 *
358 * This is the size (in bytes) of the peripheral's reserved memory area. All
359 * memory-mapped registers associated with this peripheral should have an
360 * address between #TOP_SCAFI_DEPRECATED_SRAM_CTRL_MAIN_REGS_BASE_ADDR and
361 * `TOP_SCAFI_DEPRECATED_SRAM_CTRL_MAIN_REGS_BASE_ADDR + TOP_SCAFI_DEPRECATED_SRAM_CTRL_MAIN_REGS_SIZE_BYTES`.
362 */
363#define TOP_SCAFI_DEPRECATED_SRAM_CTRL_MAIN_REGS_SIZE_BYTES 0x40
364/**
365 * Peripheral base address for regs device on rom_ctrl in top scafi_deprecated.
366 *
367 * This should be used with #mmio_region_from_addr to access the memory-mapped
368 * registers associated with the peripheral (usually via a DIF).
369 */
370#define TOP_SCAFI_DEPRECATED_ROM_CTRL_REGS_BASE_ADDR 0x411E0000
371
372/**
373 * Peripheral size for regs device on rom_ctrl in top scafi_deprecated.
374 *
375 * This is the size (in bytes) of the peripheral's reserved memory area. All
376 * memory-mapped registers associated with this peripheral should have an
377 * address between #TOP_SCAFI_DEPRECATED_ROM_CTRL_REGS_BASE_ADDR and
378 * `TOP_SCAFI_DEPRECATED_ROM_CTRL_REGS_BASE_ADDR + TOP_SCAFI_DEPRECATED_ROM_CTRL_REGS_SIZE_BYTES`.
379 */
380#define TOP_SCAFI_DEPRECATED_ROM_CTRL_REGS_SIZE_BYTES 0x80
381/**
382 * Peripheral base address for cfg device on rv_core_ibex in top scafi_deprecated.
383 *
384 * This should be used with #mmio_region_from_addr to access the memory-mapped
385 * registers associated with the peripheral (usually via a DIF).
386 */
387#define TOP_SCAFI_DEPRECATED_RV_CORE_IBEX_CFG_BASE_ADDR 0x411F0000
388
389/**
390 * Peripheral size for cfg device on rv_core_ibex in top scafi_deprecated.
391 *
392 * This is the size (in bytes) of the peripheral's reserved memory area. All
393 * memory-mapped registers associated with this peripheral should have an
394 * address between #TOP_SCAFI_DEPRECATED_RV_CORE_IBEX_CFG_BASE_ADDR and
395 * `TOP_SCAFI_DEPRECATED_RV_CORE_IBEX_CFG_BASE_ADDR + TOP_SCAFI_DEPRECATED_RV_CORE_IBEX_CFG_SIZE_BYTES`.
396 */
397#define TOP_SCAFI_DEPRECATED_RV_CORE_IBEX_CFG_SIZE_BYTES 0x100
398
399/**
400 * MMIO Region
401 *
402 * MMIO region excludes any memory that is separate from the module
403 * configuration space, i.e. ROM, main SRAM, and flash are excluded but
404 * retention SRAM, spi_device memory, or usbdev memory are included.
405 */
406#define TOP_SCAFI_DEPRECATED_MMIO_BASE_ADDR 0x40000000
407#define TOP_SCAFI_DEPRECATED_MMIO_SIZE_BYTES 0x10000000
408
409#endif // __ASSEMBLER__
410
411#endif // OPENTITAN_HW_TOP_SCAFI_DEPRECATED_SW_AUTOGEN_TOP_SCAFI_DEPRECATED_MEMORY_H_