Software APIs
top_darjeeling.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/topgen.py -t hw/top_darjeeling/data/top_darjeeling.hjson \
8// -o hw/top_darjeeling/
9
10#ifndef OPENTITAN_HW_TOP_DARJEELING_SW_AUTOGEN_TOP_DARJEELING_H_
11#define OPENTITAN_HW_TOP_DARJEELING_SW_AUTOGEN_TOP_DARJEELING_H_
12
13/**
14 * @file
15 * @brief Top-specific Definitions
16 *
17 * This file contains preprocessor and type definitions for use within the
18 * device C/C++ codebase.
19 *
20 * These definitions are for information that depends on the top-specific chip
21 * configuration, which includes:
22 * - Device Memory Information (for Peripherals and Memory)
23 * - PLIC Interrupt ID Names and Source Mappings
24 * - Alert ID Names and Source Mappings
25 * - Pinmux Pin/Select Names
26 * - Power Manager Wakeups
27 */
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33/**
34 * Peripheral base address for uart0 in top darjeeling.
35 *
36 * This should be used with #mmio_region_from_addr to access the memory-mapped
37 * registers associated with the peripheral (usually via a DIF).
38 */
39#define TOP_DARJEELING_UART0_BASE_ADDR 0x30010000u
40
41/**
42 * Peripheral size for uart0 in top darjeeling.
43 *
44 * This is the size (in bytes) of the peripheral's reserved memory area. All
45 * memory-mapped registers associated with this peripheral should have an
46 * address between #TOP_DARJEELING_UART0_BASE_ADDR and
47 * `TOP_DARJEELING_UART0_BASE_ADDR + TOP_DARJEELING_UART0_SIZE_BYTES`.
48 */
49#define TOP_DARJEELING_UART0_SIZE_BYTES 0x40u
50
51/**
52 * Peripheral base address for gpio in top darjeeling.
53 *
54 * This should be used with #mmio_region_from_addr to access the memory-mapped
55 * registers associated with the peripheral (usually via a DIF).
56 */
57#define TOP_DARJEELING_GPIO_BASE_ADDR 0x30000000u
58
59/**
60 * Peripheral size for gpio in top darjeeling.
61 *
62 * This is the size (in bytes) of the peripheral's reserved memory area. All
63 * memory-mapped registers associated with this peripheral should have an
64 * address between #TOP_DARJEELING_GPIO_BASE_ADDR and
65 * `TOP_DARJEELING_GPIO_BASE_ADDR + TOP_DARJEELING_GPIO_SIZE_BYTES`.
66 */
67#define TOP_DARJEELING_GPIO_SIZE_BYTES 0x100u
68
69/**
70 * Peripheral base address for spi_device in top darjeeling.
71 *
72 * This should be used with #mmio_region_from_addr to access the memory-mapped
73 * registers associated with the peripheral (usually via a DIF).
74 */
75#define TOP_DARJEELING_SPI_DEVICE_BASE_ADDR 0x30310000u
76
77/**
78 * Peripheral size for spi_device in top darjeeling.
79 *
80 * This is the size (in bytes) of the peripheral's reserved memory area. All
81 * memory-mapped registers associated with this peripheral should have an
82 * address between #TOP_DARJEELING_SPI_DEVICE_BASE_ADDR and
83 * `TOP_DARJEELING_SPI_DEVICE_BASE_ADDR + TOP_DARJEELING_SPI_DEVICE_SIZE_BYTES`.
84 */
85#define TOP_DARJEELING_SPI_DEVICE_SIZE_BYTES 0x2000u
86
87/**
88 * Peripheral base address for i2c0 in top darjeeling.
89 *
90 * This should be used with #mmio_region_from_addr to access the memory-mapped
91 * registers associated with the peripheral (usually via a DIF).
92 */
93#define TOP_DARJEELING_I2C0_BASE_ADDR 0x30080000u
94
95/**
96 * Peripheral size for i2c0 in top darjeeling.
97 *
98 * This is the size (in bytes) of the peripheral's reserved memory area. All
99 * memory-mapped registers associated with this peripheral should have an
100 * address between #TOP_DARJEELING_I2C0_BASE_ADDR and
101 * `TOP_DARJEELING_I2C0_BASE_ADDR + TOP_DARJEELING_I2C0_SIZE_BYTES`.
102 */
103#define TOP_DARJEELING_I2C0_SIZE_BYTES 0x80u
104
105/**
106 * Peripheral base address for rv_timer in top darjeeling.
107 *
108 * This should be used with #mmio_region_from_addr to access the memory-mapped
109 * registers associated with the peripheral (usually via a DIF).
110 */
111#define TOP_DARJEELING_RV_TIMER_BASE_ADDR 0x30100000u
112
113/**
114 * Peripheral size for rv_timer in top darjeeling.
115 *
116 * This is the size (in bytes) of the peripheral's reserved memory area. All
117 * memory-mapped registers associated with this peripheral should have an
118 * address between #TOP_DARJEELING_RV_TIMER_BASE_ADDR and
119 * `TOP_DARJEELING_RV_TIMER_BASE_ADDR + TOP_DARJEELING_RV_TIMER_SIZE_BYTES`.
120 */
121#define TOP_DARJEELING_RV_TIMER_SIZE_BYTES 0x200u
122
123/**
124 * Peripheral base address for core device on otp_ctrl in top darjeeling.
125 *
126 * This should be used with #mmio_region_from_addr to access the memory-mapped
127 * registers associated with the peripheral (usually via a DIF).
128 */
129#define TOP_DARJEELING_OTP_CTRL_CORE_BASE_ADDR 0x30130000u
130
131/**
132 * Peripheral size for core device on otp_ctrl in top darjeeling.
133 *
134 * This is the size (in bytes) of the peripheral's reserved memory area. All
135 * memory-mapped registers associated with this peripheral should have an
136 * address between #TOP_DARJEELING_OTP_CTRL_CORE_BASE_ADDR and
137 * `TOP_DARJEELING_OTP_CTRL_CORE_BASE_ADDR + TOP_DARJEELING_OTP_CTRL_CORE_SIZE_BYTES`.
138 */
139#define TOP_DARJEELING_OTP_CTRL_CORE_SIZE_BYTES 0x8000u
140
141/**
142 * Peripheral base address for prim device on otp_macro in top darjeeling.
143 *
144 * This should be used with #mmio_region_from_addr to access the memory-mapped
145 * registers associated with the peripheral (usually via a DIF).
146 */
147#define TOP_DARJEELING_OTP_MACRO_PRIM_BASE_ADDR 0x30140000u
148
149/**
150 * Peripheral size for prim device on otp_macro in top darjeeling.
151 *
152 * This is the size (in bytes) of the peripheral's reserved memory area. All
153 * memory-mapped registers associated with this peripheral should have an
154 * address between #TOP_DARJEELING_OTP_MACRO_PRIM_BASE_ADDR and
155 * `TOP_DARJEELING_OTP_MACRO_PRIM_BASE_ADDR + TOP_DARJEELING_OTP_MACRO_PRIM_SIZE_BYTES`.
156 */
157#define TOP_DARJEELING_OTP_MACRO_PRIM_SIZE_BYTES 0x20u
158
159/**
160 * Peripheral base address for regs device on lc_ctrl in top darjeeling.
161 *
162 * This should be used with #mmio_region_from_addr to access the memory-mapped
163 * registers associated with the peripheral (usually via a DIF).
164 */
165#define TOP_DARJEELING_LC_CTRL_REGS_BASE_ADDR 0x30150000u
166
167/**
168 * Peripheral size for regs device on lc_ctrl in top darjeeling.
169 *
170 * This is the size (in bytes) of the peripheral's reserved memory area. All
171 * memory-mapped registers associated with this peripheral should have an
172 * address between #TOP_DARJEELING_LC_CTRL_REGS_BASE_ADDR and
173 * `TOP_DARJEELING_LC_CTRL_REGS_BASE_ADDR + TOP_DARJEELING_LC_CTRL_REGS_SIZE_BYTES`.
174 */
175#define TOP_DARJEELING_LC_CTRL_REGS_SIZE_BYTES 0x100u
176
177/**
178 * Peripheral base address for alert_handler in top darjeeling.
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_DARJEELING_ALERT_HANDLER_BASE_ADDR 0x30160000u
184
185/**
186 * Peripheral size for alert_handler in top darjeeling.
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_DARJEELING_ALERT_HANDLER_BASE_ADDR and
191 * `TOP_DARJEELING_ALERT_HANDLER_BASE_ADDR + TOP_DARJEELING_ALERT_HANDLER_SIZE_BYTES`.
192 */
193#define TOP_DARJEELING_ALERT_HANDLER_SIZE_BYTES 0x800u
194
195/**
196 * Peripheral base address for spi_host0 in top darjeeling.
197 *
198 * This should be used with #mmio_region_from_addr to access the memory-mapped
199 * registers associated with the peripheral (usually via a DIF).
200 */
201#define TOP_DARJEELING_SPI_HOST0_BASE_ADDR 0x30300000u
202
203/**
204 * Peripheral size for spi_host0 in top darjeeling.
205 *
206 * This is the size (in bytes) of the peripheral's reserved memory area. All
207 * memory-mapped registers associated with this peripheral should have an
208 * address between #TOP_DARJEELING_SPI_HOST0_BASE_ADDR and
209 * `TOP_DARJEELING_SPI_HOST0_BASE_ADDR + TOP_DARJEELING_SPI_HOST0_SIZE_BYTES`.
210 */
211#define TOP_DARJEELING_SPI_HOST0_SIZE_BYTES 0x40u
212
213/**
214 * Peripheral base address for pwrmgr_aon in top darjeeling.
215 *
216 * This should be used with #mmio_region_from_addr to access the memory-mapped
217 * registers associated with the peripheral (usually via a DIF).
218 */
219#define TOP_DARJEELING_PWRMGR_AON_BASE_ADDR 0x30400000u
220
221/**
222 * Peripheral size for pwrmgr_aon in top darjeeling.
223 *
224 * This is the size (in bytes) of the peripheral's reserved memory area. All
225 * memory-mapped registers associated with this peripheral should have an
226 * address between #TOP_DARJEELING_PWRMGR_AON_BASE_ADDR and
227 * `TOP_DARJEELING_PWRMGR_AON_BASE_ADDR + TOP_DARJEELING_PWRMGR_AON_SIZE_BYTES`.
228 */
229#define TOP_DARJEELING_PWRMGR_AON_SIZE_BYTES 0x80u
230
231/**
232 * Peripheral base address for rstmgr_aon in top darjeeling.
233 *
234 * This should be used with #mmio_region_from_addr to access the memory-mapped
235 * registers associated with the peripheral (usually via a DIF).
236 */
237#define TOP_DARJEELING_RSTMGR_AON_BASE_ADDR 0x30410000u
238
239/**
240 * Peripheral size for rstmgr_aon in top darjeeling.
241 *
242 * This is the size (in bytes) of the peripheral's reserved memory area. All
243 * memory-mapped registers associated with this peripheral should have an
244 * address between #TOP_DARJEELING_RSTMGR_AON_BASE_ADDR and
245 * `TOP_DARJEELING_RSTMGR_AON_BASE_ADDR + TOP_DARJEELING_RSTMGR_AON_SIZE_BYTES`.
246 */
247#define TOP_DARJEELING_RSTMGR_AON_SIZE_BYTES 0x80u
248
249/**
250 * Peripheral base address for clkmgr_aon in top darjeeling.
251 *
252 * This should be used with #mmio_region_from_addr to access the memory-mapped
253 * registers associated with the peripheral (usually via a DIF).
254 */
255#define TOP_DARJEELING_CLKMGR_AON_BASE_ADDR 0x30420000u
256
257/**
258 * Peripheral size for clkmgr_aon in top darjeeling.
259 *
260 * This is the size (in bytes) of the peripheral's reserved memory area. All
261 * memory-mapped registers associated with this peripheral should have an
262 * address between #TOP_DARJEELING_CLKMGR_AON_BASE_ADDR and
263 * `TOP_DARJEELING_CLKMGR_AON_BASE_ADDR + TOP_DARJEELING_CLKMGR_AON_SIZE_BYTES`.
264 */
265#define TOP_DARJEELING_CLKMGR_AON_SIZE_BYTES 0x40u
266
267/**
268 * Peripheral base address for pinmux_aon in top darjeeling.
269 *
270 * This should be used with #mmio_region_from_addr to access the memory-mapped
271 * registers associated with the peripheral (usually via a DIF).
272 */
273#define TOP_DARJEELING_PINMUX_AON_BASE_ADDR 0x30460000u
274
275/**
276 * Peripheral size for pinmux_aon in top darjeeling.
277 *
278 * This is the size (in bytes) of the peripheral's reserved memory area. All
279 * memory-mapped registers associated with this peripheral should have an
280 * address between #TOP_DARJEELING_PINMUX_AON_BASE_ADDR and
281 * `TOP_DARJEELING_PINMUX_AON_BASE_ADDR + TOP_DARJEELING_PINMUX_AON_SIZE_BYTES`.
282 */
283#define TOP_DARJEELING_PINMUX_AON_SIZE_BYTES 0x800u
284
285/**
286 * Peripheral base address for aon_timer_aon in top darjeeling.
287 *
288 * This should be used with #mmio_region_from_addr to access the memory-mapped
289 * registers associated with the peripheral (usually via a DIF).
290 */
291#define TOP_DARJEELING_AON_TIMER_AON_BASE_ADDR 0x30470000u
292
293/**
294 * Peripheral size for aon_timer_aon in top darjeeling.
295 *
296 * This is the size (in bytes) of the peripheral's reserved memory area. All
297 * memory-mapped registers associated with this peripheral should have an
298 * address between #TOP_DARJEELING_AON_TIMER_AON_BASE_ADDR and
299 * `TOP_DARJEELING_AON_TIMER_AON_BASE_ADDR + TOP_DARJEELING_AON_TIMER_AON_SIZE_BYTES`.
300 */
301#define TOP_DARJEELING_AON_TIMER_AON_SIZE_BYTES 0x40u
302
303/**
304 * Peripheral base address for ast in top darjeeling.
305 *
306 * This should be used with #mmio_region_from_addr to access the memory-mapped
307 * registers associated with the peripheral (usually via a DIF).
308 */
309#define TOP_DARJEELING_AST_BASE_ADDR 0x30480000u
310
311/**
312 * Peripheral size for ast in top darjeeling.
313 *
314 * This is the size (in bytes) of the peripheral's reserved memory area. All
315 * memory-mapped registers associated with this peripheral should have an
316 * address between #TOP_DARJEELING_AST_BASE_ADDR and
317 * `TOP_DARJEELING_AST_BASE_ADDR + TOP_DARJEELING_AST_SIZE_BYTES`.
318 */
319#define TOP_DARJEELING_AST_SIZE_BYTES 0x400u
320
321/**
322 * Peripheral base address for core device on soc_proxy in top darjeeling.
323 *
324 * This should be used with #mmio_region_from_addr to access the memory-mapped
325 * registers associated with the peripheral (usually via a DIF).
326 */
327#define TOP_DARJEELING_SOC_PROXY_CORE_BASE_ADDR 0x22030000u
328
329/**
330 * Peripheral size for core device on soc_proxy in top darjeeling.
331 *
332 * This is the size (in bytes) of the peripheral's reserved memory area. All
333 * memory-mapped registers associated with this peripheral should have an
334 * address between #TOP_DARJEELING_SOC_PROXY_CORE_BASE_ADDR and
335 * `TOP_DARJEELING_SOC_PROXY_CORE_BASE_ADDR + TOP_DARJEELING_SOC_PROXY_CORE_SIZE_BYTES`.
336 */
337#define TOP_DARJEELING_SOC_PROXY_CORE_SIZE_BYTES 0x10u
338
339/**
340 * Peripheral base address for regs device on sram_ctrl_ret_aon in top darjeeling.
341 *
342 * This should be used with #mmio_region_from_addr to access the memory-mapped
343 * registers associated with the peripheral (usually via a DIF).
344 */
345#define TOP_DARJEELING_SRAM_CTRL_RET_AON_REGS_BASE_ADDR 0x30500000u
346
347/**
348 * Peripheral size for regs device on sram_ctrl_ret_aon in top darjeeling.
349 *
350 * This is the size (in bytes) of the peripheral's reserved memory area. All
351 * memory-mapped registers associated with this peripheral should have an
352 * address between #TOP_DARJEELING_SRAM_CTRL_RET_AON_REGS_BASE_ADDR and
353 * `TOP_DARJEELING_SRAM_CTRL_RET_AON_REGS_BASE_ADDR + TOP_DARJEELING_SRAM_CTRL_RET_AON_REGS_SIZE_BYTES`.
354 */
355#define TOP_DARJEELING_SRAM_CTRL_RET_AON_REGS_SIZE_BYTES 0x40u
356
357/**
358 * Peripheral base address for regs device on rv_dm in top darjeeling.
359 *
360 * This should be used with #mmio_region_from_addr to access the memory-mapped
361 * registers associated with the peripheral (usually via a DIF).
362 */
363#define TOP_DARJEELING_RV_DM_REGS_BASE_ADDR 0x21200000u
364
365/**
366 * Peripheral size for regs device on rv_dm in top darjeeling.
367 *
368 * This is the size (in bytes) of the peripheral's reserved memory area. All
369 * memory-mapped registers associated with this peripheral should have an
370 * address between #TOP_DARJEELING_RV_DM_REGS_BASE_ADDR and
371 * `TOP_DARJEELING_RV_DM_REGS_BASE_ADDR + TOP_DARJEELING_RV_DM_REGS_SIZE_BYTES`.
372 */
373#define TOP_DARJEELING_RV_DM_REGS_SIZE_BYTES 0x10u
374
375/**
376 * Peripheral base address for mem device on rv_dm in top darjeeling.
377 *
378 * This should be used with #mmio_region_from_addr to access the memory-mapped
379 * registers associated with the peripheral (usually via a DIF).
380 */
381#define TOP_DARJEELING_RV_DM_MEM_BASE_ADDR 0x40000u
382
383/**
384 * Peripheral size for mem device on rv_dm in top darjeeling.
385 *
386 * This is the size (in bytes) of the peripheral's reserved memory area. All
387 * memory-mapped registers associated with this peripheral should have an
388 * address between #TOP_DARJEELING_RV_DM_MEM_BASE_ADDR and
389 * `TOP_DARJEELING_RV_DM_MEM_BASE_ADDR + TOP_DARJEELING_RV_DM_MEM_SIZE_BYTES`.
390 */
391#define TOP_DARJEELING_RV_DM_MEM_SIZE_BYTES 0x1000u
392
393/**
394 * Peripheral base address for rv_plic in top darjeeling.
395 *
396 * This should be used with #mmio_region_from_addr to access the memory-mapped
397 * registers associated with the peripheral (usually via a DIF).
398 */
399#define TOP_DARJEELING_RV_PLIC_BASE_ADDR 0x28000000u
400
401/**
402 * Peripheral size for rv_plic in top darjeeling.
403 *
404 * This is the size (in bytes) of the peripheral's reserved memory area. All
405 * memory-mapped registers associated with this peripheral should have an
406 * address between #TOP_DARJEELING_RV_PLIC_BASE_ADDR and
407 * `TOP_DARJEELING_RV_PLIC_BASE_ADDR + TOP_DARJEELING_RV_PLIC_SIZE_BYTES`.
408 */
409#define TOP_DARJEELING_RV_PLIC_SIZE_BYTES 0x8000000u
410
411/**
412 * Peripheral base address for aes in top darjeeling.
413 *
414 * This should be used with #mmio_region_from_addr to access the memory-mapped
415 * registers associated with the peripheral (usually via a DIF).
416 */
417#define TOP_DARJEELING_AES_BASE_ADDR 0x21100000u
418
419/**
420 * Peripheral size for aes in top darjeeling.
421 *
422 * This is the size (in bytes) of the peripheral's reserved memory area. All
423 * memory-mapped registers associated with this peripheral should have an
424 * address between #TOP_DARJEELING_AES_BASE_ADDR and
425 * `TOP_DARJEELING_AES_BASE_ADDR + TOP_DARJEELING_AES_SIZE_BYTES`.
426 */
427#define TOP_DARJEELING_AES_SIZE_BYTES 0x100u
428
429/**
430 * Peripheral base address for hmac in top darjeeling.
431 *
432 * This should be used with #mmio_region_from_addr to access the memory-mapped
433 * registers associated with the peripheral (usually via a DIF).
434 */
435#define TOP_DARJEELING_HMAC_BASE_ADDR 0x21110000u
436
437/**
438 * Peripheral size for hmac in top darjeeling.
439 *
440 * This is the size (in bytes) of the peripheral's reserved memory area. All
441 * memory-mapped registers associated with this peripheral should have an
442 * address between #TOP_DARJEELING_HMAC_BASE_ADDR and
443 * `TOP_DARJEELING_HMAC_BASE_ADDR + TOP_DARJEELING_HMAC_SIZE_BYTES`.
444 */
445#define TOP_DARJEELING_HMAC_SIZE_BYTES 0x2000u
446
447/**
448 * Peripheral base address for kmac in top darjeeling.
449 *
450 * This should be used with #mmio_region_from_addr to access the memory-mapped
451 * registers associated with the peripheral (usually via a DIF).
452 */
453#define TOP_DARJEELING_KMAC_BASE_ADDR 0x21120000u
454
455/**
456 * Peripheral size for kmac in top darjeeling.
457 *
458 * This is the size (in bytes) of the peripheral's reserved memory area. All
459 * memory-mapped registers associated with this peripheral should have an
460 * address between #TOP_DARJEELING_KMAC_BASE_ADDR and
461 * `TOP_DARJEELING_KMAC_BASE_ADDR + TOP_DARJEELING_KMAC_SIZE_BYTES`.
462 */
463#define TOP_DARJEELING_KMAC_SIZE_BYTES 0x1000u
464
465/**
466 * Peripheral base address for otbn in top darjeeling.
467 *
468 * This should be used with #mmio_region_from_addr to access the memory-mapped
469 * registers associated with the peripheral (usually via a DIF).
470 */
471#define TOP_DARJEELING_OTBN_BASE_ADDR 0x21130000u
472
473/**
474 * Peripheral size for otbn in top darjeeling.
475 *
476 * This is the size (in bytes) of the peripheral's reserved memory area. All
477 * memory-mapped registers associated with this peripheral should have an
478 * address between #TOP_DARJEELING_OTBN_BASE_ADDR and
479 * `TOP_DARJEELING_OTBN_BASE_ADDR + TOP_DARJEELING_OTBN_SIZE_BYTES`.
480 */
481#define TOP_DARJEELING_OTBN_SIZE_BYTES 0x10000u
482
483/**
484 * Peripheral base address for keymgr_dpe in top darjeeling.
485 *
486 * This should be used with #mmio_region_from_addr to access the memory-mapped
487 * registers associated with the peripheral (usually via a DIF).
488 */
489#define TOP_DARJEELING_KEYMGR_DPE_BASE_ADDR 0x21140000u
490
491/**
492 * Peripheral size for keymgr_dpe in top darjeeling.
493 *
494 * This is the size (in bytes) of the peripheral's reserved memory area. All
495 * memory-mapped registers associated with this peripheral should have an
496 * address between #TOP_DARJEELING_KEYMGR_DPE_BASE_ADDR and
497 * `TOP_DARJEELING_KEYMGR_DPE_BASE_ADDR + TOP_DARJEELING_KEYMGR_DPE_SIZE_BYTES`.
498 */
499#define TOP_DARJEELING_KEYMGR_DPE_SIZE_BYTES 0x100u
500
501/**
502 * Peripheral base address for csrng in top darjeeling.
503 *
504 * This should be used with #mmio_region_from_addr to access the memory-mapped
505 * registers associated with the peripheral (usually via a DIF).
506 */
507#define TOP_DARJEELING_CSRNG_BASE_ADDR 0x21150000u
508
509/**
510 * Peripheral size for csrng in top darjeeling.
511 *
512 * This is the size (in bytes) of the peripheral's reserved memory area. All
513 * memory-mapped registers associated with this peripheral should have an
514 * address between #TOP_DARJEELING_CSRNG_BASE_ADDR and
515 * `TOP_DARJEELING_CSRNG_BASE_ADDR + TOP_DARJEELING_CSRNG_SIZE_BYTES`.
516 */
517#define TOP_DARJEELING_CSRNG_SIZE_BYTES 0x80u
518
519/**
520 * Peripheral base address for entropy_src in top darjeeling.
521 *
522 * This should be used with #mmio_region_from_addr to access the memory-mapped
523 * registers associated with the peripheral (usually via a DIF).
524 */
525#define TOP_DARJEELING_ENTROPY_SRC_BASE_ADDR 0x21160000u
526
527/**
528 * Peripheral size for entropy_src in top darjeeling.
529 *
530 * This is the size (in bytes) of the peripheral's reserved memory area. All
531 * memory-mapped registers associated with this peripheral should have an
532 * address between #TOP_DARJEELING_ENTROPY_SRC_BASE_ADDR and
533 * `TOP_DARJEELING_ENTROPY_SRC_BASE_ADDR + TOP_DARJEELING_ENTROPY_SRC_SIZE_BYTES`.
534 */
535#define TOP_DARJEELING_ENTROPY_SRC_SIZE_BYTES 0x100u
536
537/**
538 * Peripheral base address for edn0 in top darjeeling.
539 *
540 * This should be used with #mmio_region_from_addr to access the memory-mapped
541 * registers associated with the peripheral (usually via a DIF).
542 */
543#define TOP_DARJEELING_EDN0_BASE_ADDR 0x21170000u
544
545/**
546 * Peripheral size for edn0 in top darjeeling.
547 *
548 * This is the size (in bytes) of the peripheral's reserved memory area. All
549 * memory-mapped registers associated with this peripheral should have an
550 * address between #TOP_DARJEELING_EDN0_BASE_ADDR and
551 * `TOP_DARJEELING_EDN0_BASE_ADDR + TOP_DARJEELING_EDN0_SIZE_BYTES`.
552 */
553#define TOP_DARJEELING_EDN0_SIZE_BYTES 0x80u
554
555/**
556 * Peripheral base address for edn1 in top darjeeling.
557 *
558 * This should be used with #mmio_region_from_addr to access the memory-mapped
559 * registers associated with the peripheral (usually via a DIF).
560 */
561#define TOP_DARJEELING_EDN1_BASE_ADDR 0x21180000u
562
563/**
564 * Peripheral size for edn1 in top darjeeling.
565 *
566 * This is the size (in bytes) of the peripheral's reserved memory area. All
567 * memory-mapped registers associated with this peripheral should have an
568 * address between #TOP_DARJEELING_EDN1_BASE_ADDR and
569 * `TOP_DARJEELING_EDN1_BASE_ADDR + TOP_DARJEELING_EDN1_SIZE_BYTES`.
570 */
571#define TOP_DARJEELING_EDN1_SIZE_BYTES 0x80u
572
573/**
574 * Peripheral base address for regs device on sram_ctrl_main in top darjeeling.
575 *
576 * This should be used with #mmio_region_from_addr to access the memory-mapped
577 * registers associated with the peripheral (usually via a DIF).
578 */
579#define TOP_DARJEELING_SRAM_CTRL_MAIN_REGS_BASE_ADDR 0x211C0000u
580
581/**
582 * Peripheral size for regs device on sram_ctrl_main in top darjeeling.
583 *
584 * This is the size (in bytes) of the peripheral's reserved memory area. All
585 * memory-mapped registers associated with this peripheral should have an
586 * address between #TOP_DARJEELING_SRAM_CTRL_MAIN_REGS_BASE_ADDR and
587 * `TOP_DARJEELING_SRAM_CTRL_MAIN_REGS_BASE_ADDR + TOP_DARJEELING_SRAM_CTRL_MAIN_REGS_SIZE_BYTES`.
588 */
589#define TOP_DARJEELING_SRAM_CTRL_MAIN_REGS_SIZE_BYTES 0x40u
590
591/**
592 * Peripheral base address for regs device on sram_ctrl_mbox in top darjeeling.
593 *
594 * This should be used with #mmio_region_from_addr to access the memory-mapped
595 * registers associated with the peripheral (usually via a DIF).
596 */
597#define TOP_DARJEELING_SRAM_CTRL_MBOX_REGS_BASE_ADDR 0x211D0000u
598
599/**
600 * Peripheral size for regs device on sram_ctrl_mbox in top darjeeling.
601 *
602 * This is the size (in bytes) of the peripheral's reserved memory area. All
603 * memory-mapped registers associated with this peripheral should have an
604 * address between #TOP_DARJEELING_SRAM_CTRL_MBOX_REGS_BASE_ADDR and
605 * `TOP_DARJEELING_SRAM_CTRL_MBOX_REGS_BASE_ADDR + TOP_DARJEELING_SRAM_CTRL_MBOX_REGS_SIZE_BYTES`.
606 */
607#define TOP_DARJEELING_SRAM_CTRL_MBOX_REGS_SIZE_BYTES 0x40u
608
609/**
610 * Peripheral base address for regs device on rom_ctrl0 in top darjeeling.
611 *
612 * This should be used with #mmio_region_from_addr to access the memory-mapped
613 * registers associated with the peripheral (usually via a DIF).
614 */
615#define TOP_DARJEELING_ROM_CTRL0_REGS_BASE_ADDR 0x211E0000u
616
617/**
618 * Peripheral size for regs device on rom_ctrl0 in top darjeeling.
619 *
620 * This is the size (in bytes) of the peripheral's reserved memory area. All
621 * memory-mapped registers associated with this peripheral should have an
622 * address between #TOP_DARJEELING_ROM_CTRL0_REGS_BASE_ADDR and
623 * `TOP_DARJEELING_ROM_CTRL0_REGS_BASE_ADDR + TOP_DARJEELING_ROM_CTRL0_REGS_SIZE_BYTES`.
624 */
625#define TOP_DARJEELING_ROM_CTRL0_REGS_SIZE_BYTES 0x80u
626
627/**
628 * Peripheral base address for regs device on rom_ctrl1 in top darjeeling.
629 *
630 * This should be used with #mmio_region_from_addr to access the memory-mapped
631 * registers associated with the peripheral (usually via a DIF).
632 */
633#define TOP_DARJEELING_ROM_CTRL1_REGS_BASE_ADDR 0x211E1000u
634
635/**
636 * Peripheral size for regs device on rom_ctrl1 in top darjeeling.
637 *
638 * This is the size (in bytes) of the peripheral's reserved memory area. All
639 * memory-mapped registers associated with this peripheral should have an
640 * address between #TOP_DARJEELING_ROM_CTRL1_REGS_BASE_ADDR and
641 * `TOP_DARJEELING_ROM_CTRL1_REGS_BASE_ADDR + TOP_DARJEELING_ROM_CTRL1_REGS_SIZE_BYTES`.
642 */
643#define TOP_DARJEELING_ROM_CTRL1_REGS_SIZE_BYTES 0x80u
644
645/**
646 * Peripheral base address for dma in top darjeeling.
647 *
648 * This should be used with #mmio_region_from_addr to access the memory-mapped
649 * registers associated with the peripheral (usually via a DIF).
650 */
651#define TOP_DARJEELING_DMA_BASE_ADDR 0x22010000u
652
653/**
654 * Peripheral size for dma in top darjeeling.
655 *
656 * This is the size (in bytes) of the peripheral's reserved memory area. All
657 * memory-mapped registers associated with this peripheral should have an
658 * address between #TOP_DARJEELING_DMA_BASE_ADDR and
659 * `TOP_DARJEELING_DMA_BASE_ADDR + TOP_DARJEELING_DMA_SIZE_BYTES`.
660 */
661#define TOP_DARJEELING_DMA_SIZE_BYTES 0x200u
662
663/**
664 * Peripheral base address for core device on mbx0 in top darjeeling.
665 *
666 * This should be used with #mmio_region_from_addr to access the memory-mapped
667 * registers associated with the peripheral (usually via a DIF).
668 */
669#define TOP_DARJEELING_MBX0_CORE_BASE_ADDR 0x22000000u
670
671/**
672 * Peripheral size for core device on mbx0 in top darjeeling.
673 *
674 * This is the size (in bytes) of the peripheral's reserved memory area. All
675 * memory-mapped registers associated with this peripheral should have an
676 * address between #TOP_DARJEELING_MBX0_CORE_BASE_ADDR and
677 * `TOP_DARJEELING_MBX0_CORE_BASE_ADDR + TOP_DARJEELING_MBX0_CORE_SIZE_BYTES`.
678 */
679#define TOP_DARJEELING_MBX0_CORE_SIZE_BYTES 0x80u
680
681/**
682 * Peripheral base address for core device on mbx1 in top darjeeling.
683 *
684 * This should be used with #mmio_region_from_addr to access the memory-mapped
685 * registers associated with the peripheral (usually via a DIF).
686 */
687#define TOP_DARJEELING_MBX1_CORE_BASE_ADDR 0x22000100u
688
689/**
690 * Peripheral size for core device on mbx1 in top darjeeling.
691 *
692 * This is the size (in bytes) of the peripheral's reserved memory area. All
693 * memory-mapped registers associated with this peripheral should have an
694 * address between #TOP_DARJEELING_MBX1_CORE_BASE_ADDR and
695 * `TOP_DARJEELING_MBX1_CORE_BASE_ADDR + TOP_DARJEELING_MBX1_CORE_SIZE_BYTES`.
696 */
697#define TOP_DARJEELING_MBX1_CORE_SIZE_BYTES 0x80u
698
699/**
700 * Peripheral base address for core device on mbx2 in top darjeeling.
701 *
702 * This should be used with #mmio_region_from_addr to access the memory-mapped
703 * registers associated with the peripheral (usually via a DIF).
704 */
705#define TOP_DARJEELING_MBX2_CORE_BASE_ADDR 0x22000200u
706
707/**
708 * Peripheral size for core device on mbx2 in top darjeeling.
709 *
710 * This is the size (in bytes) of the peripheral's reserved memory area. All
711 * memory-mapped registers associated with this peripheral should have an
712 * address between #TOP_DARJEELING_MBX2_CORE_BASE_ADDR and
713 * `TOP_DARJEELING_MBX2_CORE_BASE_ADDR + TOP_DARJEELING_MBX2_CORE_SIZE_BYTES`.
714 */
715#define TOP_DARJEELING_MBX2_CORE_SIZE_BYTES 0x80u
716
717/**
718 * Peripheral base address for core device on mbx3 in top darjeeling.
719 *
720 * This should be used with #mmio_region_from_addr to access the memory-mapped
721 * registers associated with the peripheral (usually via a DIF).
722 */
723#define TOP_DARJEELING_MBX3_CORE_BASE_ADDR 0x22000300u
724
725/**
726 * Peripheral size for core device on mbx3 in top darjeeling.
727 *
728 * This is the size (in bytes) of the peripheral's reserved memory area. All
729 * memory-mapped registers associated with this peripheral should have an
730 * address between #TOP_DARJEELING_MBX3_CORE_BASE_ADDR and
731 * `TOP_DARJEELING_MBX3_CORE_BASE_ADDR + TOP_DARJEELING_MBX3_CORE_SIZE_BYTES`.
732 */
733#define TOP_DARJEELING_MBX3_CORE_SIZE_BYTES 0x80u
734
735/**
736 * Peripheral base address for core device on mbx4 in top darjeeling.
737 *
738 * This should be used with #mmio_region_from_addr to access the memory-mapped
739 * registers associated with the peripheral (usually via a DIF).
740 */
741#define TOP_DARJEELING_MBX4_CORE_BASE_ADDR 0x22000400u
742
743/**
744 * Peripheral size for core device on mbx4 in top darjeeling.
745 *
746 * This is the size (in bytes) of the peripheral's reserved memory area. All
747 * memory-mapped registers associated with this peripheral should have an
748 * address between #TOP_DARJEELING_MBX4_CORE_BASE_ADDR and
749 * `TOP_DARJEELING_MBX4_CORE_BASE_ADDR + TOP_DARJEELING_MBX4_CORE_SIZE_BYTES`.
750 */
751#define TOP_DARJEELING_MBX4_CORE_SIZE_BYTES 0x80u
752
753/**
754 * Peripheral base address for core device on mbx5 in top darjeeling.
755 *
756 * This should be used with #mmio_region_from_addr to access the memory-mapped
757 * registers associated with the peripheral (usually via a DIF).
758 */
759#define TOP_DARJEELING_MBX5_CORE_BASE_ADDR 0x22000500u
760
761/**
762 * Peripheral size for core device on mbx5 in top darjeeling.
763 *
764 * This is the size (in bytes) of the peripheral's reserved memory area. All
765 * memory-mapped registers associated with this peripheral should have an
766 * address between #TOP_DARJEELING_MBX5_CORE_BASE_ADDR and
767 * `TOP_DARJEELING_MBX5_CORE_BASE_ADDR + TOP_DARJEELING_MBX5_CORE_SIZE_BYTES`.
768 */
769#define TOP_DARJEELING_MBX5_CORE_SIZE_BYTES 0x80u
770
771/**
772 * Peripheral base address for core device on mbx6 in top darjeeling.
773 *
774 * This should be used with #mmio_region_from_addr to access the memory-mapped
775 * registers associated with the peripheral (usually via a DIF).
776 */
777#define TOP_DARJEELING_MBX6_CORE_BASE_ADDR 0x22000600u
778
779/**
780 * Peripheral size for core device on mbx6 in top darjeeling.
781 *
782 * This is the size (in bytes) of the peripheral's reserved memory area. All
783 * memory-mapped registers associated with this peripheral should have an
784 * address between #TOP_DARJEELING_MBX6_CORE_BASE_ADDR and
785 * `TOP_DARJEELING_MBX6_CORE_BASE_ADDR + TOP_DARJEELING_MBX6_CORE_SIZE_BYTES`.
786 */
787#define TOP_DARJEELING_MBX6_CORE_SIZE_BYTES 0x80u
788
789/**
790 * Peripheral base address for core device on mbx_jtag in top darjeeling.
791 *
792 * This should be used with #mmio_region_from_addr to access the memory-mapped
793 * registers associated with the peripheral (usually via a DIF).
794 */
795#define TOP_DARJEELING_MBX_JTAG_CORE_BASE_ADDR 0x22000800u
796
797/**
798 * Peripheral size for core device on mbx_jtag in top darjeeling.
799 *
800 * This is the size (in bytes) of the peripheral's reserved memory area. All
801 * memory-mapped registers associated with this peripheral should have an
802 * address between #TOP_DARJEELING_MBX_JTAG_CORE_BASE_ADDR and
803 * `TOP_DARJEELING_MBX_JTAG_CORE_BASE_ADDR + TOP_DARJEELING_MBX_JTAG_CORE_SIZE_BYTES`.
804 */
805#define TOP_DARJEELING_MBX_JTAG_CORE_SIZE_BYTES 0x80u
806
807/**
808 * Peripheral base address for core device on mbx_pcie0 in top darjeeling.
809 *
810 * This should be used with #mmio_region_from_addr to access the memory-mapped
811 * registers associated with the peripheral (usually via a DIF).
812 */
813#define TOP_DARJEELING_MBX_PCIE0_CORE_BASE_ADDR 0x22040000u
814
815/**
816 * Peripheral size for core device on mbx_pcie0 in top darjeeling.
817 *
818 * This is the size (in bytes) of the peripheral's reserved memory area. All
819 * memory-mapped registers associated with this peripheral should have an
820 * address between #TOP_DARJEELING_MBX_PCIE0_CORE_BASE_ADDR and
821 * `TOP_DARJEELING_MBX_PCIE0_CORE_BASE_ADDR + TOP_DARJEELING_MBX_PCIE0_CORE_SIZE_BYTES`.
822 */
823#define TOP_DARJEELING_MBX_PCIE0_CORE_SIZE_BYTES 0x80u
824
825/**
826 * Peripheral base address for core device on mbx_pcie1 in top darjeeling.
827 *
828 * This should be used with #mmio_region_from_addr to access the memory-mapped
829 * registers associated with the peripheral (usually via a DIF).
830 */
831#define TOP_DARJEELING_MBX_PCIE1_CORE_BASE_ADDR 0x22040100u
832
833/**
834 * Peripheral size for core device on mbx_pcie1 in top darjeeling.
835 *
836 * This is the size (in bytes) of the peripheral's reserved memory area. All
837 * memory-mapped registers associated with this peripheral should have an
838 * address between #TOP_DARJEELING_MBX_PCIE1_CORE_BASE_ADDR and
839 * `TOP_DARJEELING_MBX_PCIE1_CORE_BASE_ADDR + TOP_DARJEELING_MBX_PCIE1_CORE_SIZE_BYTES`.
840 */
841#define TOP_DARJEELING_MBX_PCIE1_CORE_SIZE_BYTES 0x80u
842
843/**
844 * Peripheral base address for core device on soc_dbg_ctrl in top darjeeling.
845 *
846 * This should be used with #mmio_region_from_addr to access the memory-mapped
847 * registers associated with the peripheral (usually via a DIF).
848 */
849#define TOP_DARJEELING_SOC_DBG_CTRL_CORE_BASE_ADDR 0x30170000u
850
851/**
852 * Peripheral size for core device on soc_dbg_ctrl in top darjeeling.
853 *
854 * This is the size (in bytes) of the peripheral's reserved memory area. All
855 * memory-mapped registers associated with this peripheral should have an
856 * address between #TOP_DARJEELING_SOC_DBG_CTRL_CORE_BASE_ADDR and
857 * `TOP_DARJEELING_SOC_DBG_CTRL_CORE_BASE_ADDR + TOP_DARJEELING_SOC_DBG_CTRL_CORE_SIZE_BYTES`.
858 */
859#define TOP_DARJEELING_SOC_DBG_CTRL_CORE_SIZE_BYTES 0x20u
860
861/**
862 * Peripheral base address for cfg device on rv_core_ibex in top darjeeling.
863 *
864 * This should be used with #mmio_region_from_addr to access the memory-mapped
865 * registers associated with the peripheral (usually via a DIF).
866 */
867#define TOP_DARJEELING_RV_CORE_IBEX_CFG_BASE_ADDR 0x211F0000u
868
869/**
870 * Peripheral size for cfg device on rv_core_ibex in top darjeeling.
871 *
872 * This is the size (in bytes) of the peripheral's reserved memory area. All
873 * memory-mapped registers associated with this peripheral should have an
874 * address between #TOP_DARJEELING_RV_CORE_IBEX_CFG_BASE_ADDR and
875 * `TOP_DARJEELING_RV_CORE_IBEX_CFG_BASE_ADDR + TOP_DARJEELING_RV_CORE_IBEX_CFG_SIZE_BYTES`.
876 */
877#define TOP_DARJEELING_RV_CORE_IBEX_CFG_SIZE_BYTES 0x800u
878
879
880/**
881 * Memory base address for ctn memory on soc_proxy in top darjeeling.
882 */
883#define TOP_DARJEELING_SOC_PROXY_CTN_BASE_ADDR 0x40000000u
884
885/**
886 * Memory size for ctn memory on soc_proxy in top darjeeling.
887 */
888#define TOP_DARJEELING_SOC_PROXY_CTN_SIZE_BYTES 0x80000000u
889
890/**
891 * Memory base address for ram memory on sram_ctrl_ret_aon in top darjeeling.
892 */
893#define TOP_DARJEELING_SRAM_CTRL_RET_AON_RAM_BASE_ADDR 0x30600000u
894
895/**
896 * Memory size for ram memory on sram_ctrl_ret_aon in top darjeeling.
897 */
898#define TOP_DARJEELING_SRAM_CTRL_RET_AON_RAM_SIZE_BYTES 0x1000u
899
900/**
901 * Memory base address for ram memory on sram_ctrl_main in top darjeeling.
902 */
903#define TOP_DARJEELING_SRAM_CTRL_MAIN_RAM_BASE_ADDR 0x10000000u
904
905/**
906 * Memory size for ram memory on sram_ctrl_main in top darjeeling.
907 */
908#define TOP_DARJEELING_SRAM_CTRL_MAIN_RAM_SIZE_BYTES 0x10000u
909
910/**
911 * Memory base address for ram memory on sram_ctrl_mbox in top darjeeling.
912 */
913#define TOP_DARJEELING_SRAM_CTRL_MBOX_RAM_BASE_ADDR 0x11000000u
914
915/**
916 * Memory size for ram memory on sram_ctrl_mbox in top darjeeling.
917 */
918#define TOP_DARJEELING_SRAM_CTRL_MBOX_RAM_SIZE_BYTES 0x1000u
919
920/**
921 * Memory base address for rom memory on rom_ctrl0 in top darjeeling.
922 */
923#define TOP_DARJEELING_ROM_CTRL0_ROM_BASE_ADDR 0x8000u
924
925/**
926 * Memory size for rom memory on rom_ctrl0 in top darjeeling.
927 */
928#define TOP_DARJEELING_ROM_CTRL0_ROM_SIZE_BYTES 0x8000u
929
930/**
931 * Memory base address for rom memory on rom_ctrl1 in top darjeeling.
932 */
933#define TOP_DARJEELING_ROM_CTRL1_ROM_BASE_ADDR 0x20000u
934
935/**
936 * Memory size for rom memory on rom_ctrl1 in top darjeeling.
937 */
938#define TOP_DARJEELING_ROM_CTRL1_ROM_SIZE_BYTES 0x10000u
939
940
941/**
942 * PLIC Interrupt Source Peripheral.
943 *
944 * Enumeration used to determine which peripheral asserted the corresponding
945 * interrupt.
946 */
948 kTopDarjeelingPlicPeripheralUnknown = 0, /**< Unknown Peripheral */
958 kTopDarjeelingPlicPeripheralAonTimerAon = 10, /**< aon_timer_aon */
980 kTopDarjeelingPlicPeripheralAcRangeCheck = 32, /**< ac_range_check */
981 kTopDarjeelingPlicPeripheralLast = 32, /**< \internal Final PLIC peripheral */
983
984/**
985 * PLIC Interrupt Source.
986 *
987 * Enumeration of all PLIC interrupt sources. The interrupt sources belonging to
988 * the same peripheral are guaranteed to be consecutive.
989 */
991 kTopDarjeelingPlicIrqIdNone = 0, /**< No Interrupt */
992 kTopDarjeelingPlicIrqIdUart0TxWatermark = 1, /**< uart0_tx_watermark */
993 kTopDarjeelingPlicIrqIdUart0RxWatermark = 2, /**< uart0_rx_watermark */
994 kTopDarjeelingPlicIrqIdUart0TxDone = 3, /**< uart0_tx_done */
995 kTopDarjeelingPlicIrqIdUart0RxOverflow = 4, /**< uart0_rx_overflow */
996 kTopDarjeelingPlicIrqIdUart0RxFrameErr = 5, /**< uart0_rx_frame_err */
997 kTopDarjeelingPlicIrqIdUart0RxBreakErr = 6, /**< uart0_rx_break_err */
998 kTopDarjeelingPlicIrqIdUart0RxTimeout = 7, /**< uart0_rx_timeout */
999 kTopDarjeelingPlicIrqIdUart0RxParityErr = 8, /**< uart0_rx_parity_err */
1000 kTopDarjeelingPlicIrqIdUart0TxEmpty = 9, /**< uart0_tx_empty */
1001 kTopDarjeelingPlicIrqIdGpioGpio0 = 10, /**< gpio_gpio 0 */
1002 kTopDarjeelingPlicIrqIdGpioGpio1 = 11, /**< gpio_gpio 1 */
1003 kTopDarjeelingPlicIrqIdGpioGpio2 = 12, /**< gpio_gpio 2 */
1004 kTopDarjeelingPlicIrqIdGpioGpio3 = 13, /**< gpio_gpio 3 */
1005 kTopDarjeelingPlicIrqIdGpioGpio4 = 14, /**< gpio_gpio 4 */
1006 kTopDarjeelingPlicIrqIdGpioGpio5 = 15, /**< gpio_gpio 5 */
1007 kTopDarjeelingPlicIrqIdGpioGpio6 = 16, /**< gpio_gpio 6 */
1008 kTopDarjeelingPlicIrqIdGpioGpio7 = 17, /**< gpio_gpio 7 */
1009 kTopDarjeelingPlicIrqIdGpioGpio8 = 18, /**< gpio_gpio 8 */
1010 kTopDarjeelingPlicIrqIdGpioGpio9 = 19, /**< gpio_gpio 9 */
1011 kTopDarjeelingPlicIrqIdGpioGpio10 = 20, /**< gpio_gpio 10 */
1012 kTopDarjeelingPlicIrqIdGpioGpio11 = 21, /**< gpio_gpio 11 */
1013 kTopDarjeelingPlicIrqIdGpioGpio12 = 22, /**< gpio_gpio 12 */
1014 kTopDarjeelingPlicIrqIdGpioGpio13 = 23, /**< gpio_gpio 13 */
1015 kTopDarjeelingPlicIrqIdGpioGpio14 = 24, /**< gpio_gpio 14 */
1016 kTopDarjeelingPlicIrqIdGpioGpio15 = 25, /**< gpio_gpio 15 */
1017 kTopDarjeelingPlicIrqIdGpioGpio16 = 26, /**< gpio_gpio 16 */
1018 kTopDarjeelingPlicIrqIdGpioGpio17 = 27, /**< gpio_gpio 17 */
1019 kTopDarjeelingPlicIrqIdGpioGpio18 = 28, /**< gpio_gpio 18 */
1020 kTopDarjeelingPlicIrqIdGpioGpio19 = 29, /**< gpio_gpio 19 */
1021 kTopDarjeelingPlicIrqIdGpioGpio20 = 30, /**< gpio_gpio 20 */
1022 kTopDarjeelingPlicIrqIdGpioGpio21 = 31, /**< gpio_gpio 21 */
1023 kTopDarjeelingPlicIrqIdGpioGpio22 = 32, /**< gpio_gpio 22 */
1024 kTopDarjeelingPlicIrqIdGpioGpio23 = 33, /**< gpio_gpio 23 */
1025 kTopDarjeelingPlicIrqIdGpioGpio24 = 34, /**< gpio_gpio 24 */
1026 kTopDarjeelingPlicIrqIdGpioGpio25 = 35, /**< gpio_gpio 25 */
1027 kTopDarjeelingPlicIrqIdGpioGpio26 = 36, /**< gpio_gpio 26 */
1028 kTopDarjeelingPlicIrqIdGpioGpio27 = 37, /**< gpio_gpio 27 */
1029 kTopDarjeelingPlicIrqIdGpioGpio28 = 38, /**< gpio_gpio 28 */
1030 kTopDarjeelingPlicIrqIdGpioGpio29 = 39, /**< gpio_gpio 29 */
1031 kTopDarjeelingPlicIrqIdGpioGpio30 = 40, /**< gpio_gpio 30 */
1032 kTopDarjeelingPlicIrqIdGpioGpio31 = 41, /**< gpio_gpio 31 */
1033 kTopDarjeelingPlicIrqIdSpiDeviceUploadCmdfifoNotEmpty = 42, /**< spi_device_upload_cmdfifo_not_empty */
1034 kTopDarjeelingPlicIrqIdSpiDeviceUploadPayloadNotEmpty = 43, /**< spi_device_upload_payload_not_empty */
1035 kTopDarjeelingPlicIrqIdSpiDeviceUploadPayloadOverflow = 44, /**< spi_device_upload_payload_overflow */
1036 kTopDarjeelingPlicIrqIdSpiDeviceReadbufWatermark = 45, /**< spi_device_readbuf_watermark */
1037 kTopDarjeelingPlicIrqIdSpiDeviceReadbufFlip = 46, /**< spi_device_readbuf_flip */
1038 kTopDarjeelingPlicIrqIdSpiDeviceTpmHeaderNotEmpty = 47, /**< spi_device_tpm_header_not_empty */
1039 kTopDarjeelingPlicIrqIdSpiDeviceTpmRdfifoCmdEnd = 48, /**< spi_device_tpm_rdfifo_cmd_end */
1040 kTopDarjeelingPlicIrqIdSpiDeviceTpmRdfifoDrop = 49, /**< spi_device_tpm_rdfifo_drop */
1041 kTopDarjeelingPlicIrqIdI2c0FmtThreshold = 50, /**< i2c0_fmt_threshold */
1042 kTopDarjeelingPlicIrqIdI2c0RxThreshold = 51, /**< i2c0_rx_threshold */
1043 kTopDarjeelingPlicIrqIdI2c0AcqThreshold = 52, /**< i2c0_acq_threshold */
1044 kTopDarjeelingPlicIrqIdI2c0RxOverflow = 53, /**< i2c0_rx_overflow */
1045 kTopDarjeelingPlicIrqIdI2c0ControllerHalt = 54, /**< i2c0_controller_halt */
1046 kTopDarjeelingPlicIrqIdI2c0SclInterference = 55, /**< i2c0_scl_interference */
1047 kTopDarjeelingPlicIrqIdI2c0SdaInterference = 56, /**< i2c0_sda_interference */
1048 kTopDarjeelingPlicIrqIdI2c0StretchTimeout = 57, /**< i2c0_stretch_timeout */
1049 kTopDarjeelingPlicIrqIdI2c0SdaUnstable = 58, /**< i2c0_sda_unstable */
1050 kTopDarjeelingPlicIrqIdI2c0CmdComplete = 59, /**< i2c0_cmd_complete */
1051 kTopDarjeelingPlicIrqIdI2c0TxStretch = 60, /**< i2c0_tx_stretch */
1052 kTopDarjeelingPlicIrqIdI2c0TxThreshold = 61, /**< i2c0_tx_threshold */
1053 kTopDarjeelingPlicIrqIdI2c0AcqStretch = 62, /**< i2c0_acq_stretch */
1054 kTopDarjeelingPlicIrqIdI2c0UnexpStop = 63, /**< i2c0_unexp_stop */
1055 kTopDarjeelingPlicIrqIdI2c0HostTimeout = 64, /**< i2c0_host_timeout */
1056 kTopDarjeelingPlicIrqIdRvTimerTimerExpiredHart0Timer0 = 65, /**< rv_timer_timer_expired_hart0_timer0 */
1057 kTopDarjeelingPlicIrqIdOtpCtrlOtpOperationDone = 66, /**< otp_ctrl_otp_operation_done */
1058 kTopDarjeelingPlicIrqIdOtpCtrlOtpError = 67, /**< otp_ctrl_otp_error */
1059 kTopDarjeelingPlicIrqIdAlertHandlerClassa = 68, /**< alert_handler_classa */
1060 kTopDarjeelingPlicIrqIdAlertHandlerClassb = 69, /**< alert_handler_classb */
1061 kTopDarjeelingPlicIrqIdAlertHandlerClassc = 70, /**< alert_handler_classc */
1062 kTopDarjeelingPlicIrqIdAlertHandlerClassd = 71, /**< alert_handler_classd */
1063 kTopDarjeelingPlicIrqIdSpiHost0Error = 72, /**< spi_host0_error */
1064 kTopDarjeelingPlicIrqIdSpiHost0SpiEvent = 73, /**< spi_host0_spi_event */
1065 kTopDarjeelingPlicIrqIdPwrmgrAonWakeup = 74, /**< pwrmgr_aon_wakeup */
1066 kTopDarjeelingPlicIrqIdAonTimerAonWkupTimerExpired = 75, /**< aon_timer_aon_wkup_timer_expired */
1067 kTopDarjeelingPlicIrqIdAonTimerAonWdogTimerBark = 76, /**< aon_timer_aon_wdog_timer_bark */
1068 kTopDarjeelingPlicIrqIdSocProxyExternal0 = 77, /**< soc_proxy_external 0 */
1069 kTopDarjeelingPlicIrqIdSocProxyExternal1 = 78, /**< soc_proxy_external 1 */
1070 kTopDarjeelingPlicIrqIdSocProxyExternal2 = 79, /**< soc_proxy_external 2 */
1071 kTopDarjeelingPlicIrqIdSocProxyExternal3 = 80, /**< soc_proxy_external 3 */
1072 kTopDarjeelingPlicIrqIdSocProxyExternal4 = 81, /**< soc_proxy_external 4 */
1073 kTopDarjeelingPlicIrqIdSocProxyExternal5 = 82, /**< soc_proxy_external 5 */
1074 kTopDarjeelingPlicIrqIdSocProxyExternal6 = 83, /**< soc_proxy_external 6 */
1075 kTopDarjeelingPlicIrqIdSocProxyExternal7 = 84, /**< soc_proxy_external 7 */
1076 kTopDarjeelingPlicIrqIdSocProxyExternal8 = 85, /**< soc_proxy_external 8 */
1077 kTopDarjeelingPlicIrqIdSocProxyExternal9 = 86, /**< soc_proxy_external 9 */
1078 kTopDarjeelingPlicIrqIdSocProxyExternal10 = 87, /**< soc_proxy_external 10 */
1079 kTopDarjeelingPlicIrqIdSocProxyExternal11 = 88, /**< soc_proxy_external 11 */
1080 kTopDarjeelingPlicIrqIdSocProxyExternal12 = 89, /**< soc_proxy_external 12 */
1081 kTopDarjeelingPlicIrqIdSocProxyExternal13 = 90, /**< soc_proxy_external 13 */
1082 kTopDarjeelingPlicIrqIdSocProxyExternal14 = 91, /**< soc_proxy_external 14 */
1083 kTopDarjeelingPlicIrqIdSocProxyExternal15 = 92, /**< soc_proxy_external 15 */
1084 kTopDarjeelingPlicIrqIdSocProxyExternal16 = 93, /**< soc_proxy_external 16 */
1085 kTopDarjeelingPlicIrqIdSocProxyExternal17 = 94, /**< soc_proxy_external 17 */
1086 kTopDarjeelingPlicIrqIdSocProxyExternal18 = 95, /**< soc_proxy_external 18 */
1087 kTopDarjeelingPlicIrqIdSocProxyExternal19 = 96, /**< soc_proxy_external 19 */
1088 kTopDarjeelingPlicIrqIdSocProxyExternal20 = 97, /**< soc_proxy_external 20 */
1089 kTopDarjeelingPlicIrqIdSocProxyExternal21 = 98, /**< soc_proxy_external 21 */
1090 kTopDarjeelingPlicIrqIdSocProxyExternal22 = 99, /**< soc_proxy_external 22 */
1091 kTopDarjeelingPlicIrqIdSocProxyExternal23 = 100, /**< soc_proxy_external 23 */
1092 kTopDarjeelingPlicIrqIdSocProxyExternal24 = 101, /**< soc_proxy_external 24 */
1093 kTopDarjeelingPlicIrqIdSocProxyExternal25 = 102, /**< soc_proxy_external 25 */
1094 kTopDarjeelingPlicIrqIdSocProxyExternal26 = 103, /**< soc_proxy_external 26 */
1095 kTopDarjeelingPlicIrqIdSocProxyExternal27 = 104, /**< soc_proxy_external 27 */
1096 kTopDarjeelingPlicIrqIdSocProxyExternal28 = 105, /**< soc_proxy_external 28 */
1097 kTopDarjeelingPlicIrqIdSocProxyExternal29 = 106, /**< soc_proxy_external 29 */
1098 kTopDarjeelingPlicIrqIdSocProxyExternal30 = 107, /**< soc_proxy_external 30 */
1099 kTopDarjeelingPlicIrqIdSocProxyExternal31 = 108, /**< soc_proxy_external 31 */
1100 kTopDarjeelingPlicIrqIdHmacHmacDone = 109, /**< hmac_hmac_done */
1101 kTopDarjeelingPlicIrqIdHmacFifoEmpty = 110, /**< hmac_fifo_empty */
1102 kTopDarjeelingPlicIrqIdHmacHmacErr = 111, /**< hmac_hmac_err */
1103 kTopDarjeelingPlicIrqIdKmacKmacDone = 112, /**< kmac_kmac_done */
1104 kTopDarjeelingPlicIrqIdKmacFifoEmpty = 113, /**< kmac_fifo_empty */
1105 kTopDarjeelingPlicIrqIdKmacKmacErr = 114, /**< kmac_kmac_err */
1106 kTopDarjeelingPlicIrqIdOtbnDone = 115, /**< otbn_done */
1107 kTopDarjeelingPlicIrqIdKeymgrDpeOpDone = 116, /**< keymgr_dpe_op_done */
1108 kTopDarjeelingPlicIrqIdCsrngCsCmdReqDone = 117, /**< csrng_cs_cmd_req_done */
1109 kTopDarjeelingPlicIrqIdCsrngCsEntropyReq = 118, /**< csrng_cs_entropy_req */
1110 kTopDarjeelingPlicIrqIdCsrngCsHwInstExc = 119, /**< csrng_cs_hw_inst_exc */
1111 kTopDarjeelingPlicIrqIdCsrngCsFatalErr = 120, /**< csrng_cs_fatal_err */
1112 kTopDarjeelingPlicIrqIdEntropySrcEsEntropyValid = 121, /**< entropy_src_es_entropy_valid */
1113 kTopDarjeelingPlicIrqIdEntropySrcEsHealthTestFailed = 122, /**< entropy_src_es_health_test_failed */
1114 kTopDarjeelingPlicIrqIdEntropySrcEsObserveFifoReady = 123, /**< entropy_src_es_observe_fifo_ready */
1115 kTopDarjeelingPlicIrqIdEntropySrcEsFatalErr = 124, /**< entropy_src_es_fatal_err */
1116 kTopDarjeelingPlicIrqIdEdn0EdnCmdReqDone = 125, /**< edn0_edn_cmd_req_done */
1117 kTopDarjeelingPlicIrqIdEdn0EdnFatalErr = 126, /**< edn0_edn_fatal_err */
1118 kTopDarjeelingPlicIrqIdEdn1EdnCmdReqDone = 127, /**< edn1_edn_cmd_req_done */
1119 kTopDarjeelingPlicIrqIdEdn1EdnFatalErr = 128, /**< edn1_edn_fatal_err */
1120 kTopDarjeelingPlicIrqIdDmaDmaDone = 129, /**< dma_dma_done */
1121 kTopDarjeelingPlicIrqIdDmaDmaChunkDone = 130, /**< dma_dma_chunk_done */
1122 kTopDarjeelingPlicIrqIdDmaDmaError = 131, /**< dma_dma_error */
1123 kTopDarjeelingPlicIrqIdMbx0MbxReady = 132, /**< mbx0_mbx_ready */
1124 kTopDarjeelingPlicIrqIdMbx0MbxAbort = 133, /**< mbx0_mbx_abort */
1125 kTopDarjeelingPlicIrqIdMbx0MbxError = 134, /**< mbx0_mbx_error */
1126 kTopDarjeelingPlicIrqIdMbx1MbxReady = 135, /**< mbx1_mbx_ready */
1127 kTopDarjeelingPlicIrqIdMbx1MbxAbort = 136, /**< mbx1_mbx_abort */
1128 kTopDarjeelingPlicIrqIdMbx1MbxError = 137, /**< mbx1_mbx_error */
1129 kTopDarjeelingPlicIrqIdMbx2MbxReady = 138, /**< mbx2_mbx_ready */
1130 kTopDarjeelingPlicIrqIdMbx2MbxAbort = 139, /**< mbx2_mbx_abort */
1131 kTopDarjeelingPlicIrqIdMbx2MbxError = 140, /**< mbx2_mbx_error */
1132 kTopDarjeelingPlicIrqIdMbx3MbxReady = 141, /**< mbx3_mbx_ready */
1133 kTopDarjeelingPlicIrqIdMbx3MbxAbort = 142, /**< mbx3_mbx_abort */
1134 kTopDarjeelingPlicIrqIdMbx3MbxError = 143, /**< mbx3_mbx_error */
1135 kTopDarjeelingPlicIrqIdMbx4MbxReady = 144, /**< mbx4_mbx_ready */
1136 kTopDarjeelingPlicIrqIdMbx4MbxAbort = 145, /**< mbx4_mbx_abort */
1137 kTopDarjeelingPlicIrqIdMbx4MbxError = 146, /**< mbx4_mbx_error */
1138 kTopDarjeelingPlicIrqIdMbx5MbxReady = 147, /**< mbx5_mbx_ready */
1139 kTopDarjeelingPlicIrqIdMbx5MbxAbort = 148, /**< mbx5_mbx_abort */
1140 kTopDarjeelingPlicIrqIdMbx5MbxError = 149, /**< mbx5_mbx_error */
1141 kTopDarjeelingPlicIrqIdMbx6MbxReady = 150, /**< mbx6_mbx_ready */
1142 kTopDarjeelingPlicIrqIdMbx6MbxAbort = 151, /**< mbx6_mbx_abort */
1143 kTopDarjeelingPlicIrqIdMbx6MbxError = 152, /**< mbx6_mbx_error */
1144 kTopDarjeelingPlicIrqIdMbxJtagMbxReady = 153, /**< mbx_jtag_mbx_ready */
1145 kTopDarjeelingPlicIrqIdMbxJtagMbxAbort = 154, /**< mbx_jtag_mbx_abort */
1146 kTopDarjeelingPlicIrqIdMbxJtagMbxError = 155, /**< mbx_jtag_mbx_error */
1147 kTopDarjeelingPlicIrqIdMbxPcie0MbxReady = 156, /**< mbx_pcie0_mbx_ready */
1148 kTopDarjeelingPlicIrqIdMbxPcie0MbxAbort = 157, /**< mbx_pcie0_mbx_abort */
1149 kTopDarjeelingPlicIrqIdMbxPcie0MbxError = 158, /**< mbx_pcie0_mbx_error */
1150 kTopDarjeelingPlicIrqIdMbxPcie1MbxReady = 159, /**< mbx_pcie1_mbx_ready */
1151 kTopDarjeelingPlicIrqIdMbxPcie1MbxAbort = 160, /**< mbx_pcie1_mbx_abort */
1152 kTopDarjeelingPlicIrqIdMbxPcie1MbxError = 161, /**< mbx_pcie1_mbx_error */
1153 kTopDarjeelingPlicIrqIdRaclCtrlRaclError = 162, /**< racl_ctrl_racl_error */
1154 kTopDarjeelingPlicIrqIdAcRangeCheckDenyCntReached = 163, /**< ac_range_check_deny_cnt_reached */
1155 kTopDarjeelingPlicIrqIdLast = 163, /**< \internal The Last Valid Interrupt ID. */
1157
1158/**
1159 * PLIC Interrupt Source to Peripheral Map
1160 *
1161 * This array is a mapping from `top_darjeeling_plic_irq_id_t` to
1162 * `top_darjeeling_plic_peripheral_t`.
1163 */
1165 top_darjeeling_plic_interrupt_for_peripheral[164];
1166
1167/**
1168 * PLIC Interrupt Target.
1169 *
1170 * Enumeration used to determine which set of IE, CC, threshold registers to
1171 * access for a given interrupt target.
1172 */
1174 kTopDarjeelingPlicTargetIbex0 = 0, /**< Ibex Core 0 */
1175 kTopDarjeelingPlicTargetLast = 0, /**< \internal Final PLIC target */
1177
1178
1179/**
1180 * Alert Handler Source Peripheral.
1181 *
1182 * Enumeration used to determine which peripheral asserted the corresponding
1183 * alert.
1184 */
1186 kTopDarjeelingAlertPeripheralExternal = 0, /**< External Peripheral */
1201 kTopDarjeelingAlertPeripheralSramCtrlRetAon = 15, /**< sram_ctrl_ret_aon */
1232 kTopDarjeelingAlertPeripheralLast = 45, /**< \internal Final Alert peripheral */
1234
1235/**
1236 * Alert Handler Alert Source.
1237 *
1238 * Enumeration of all Alert Handler Alert Sources. The alert sources belonging to
1239 * the same peripheral are guaranteed to be consecutive.
1240 */
1242 kTopDarjeelingAlertIdUart0FatalFault = 0, /**< uart0_fatal_fault */
1243 kTopDarjeelingAlertIdGpioFatalFault = 1, /**< gpio_fatal_fault */
1244 kTopDarjeelingAlertIdSpiDeviceFatalFault = 2, /**< spi_device_fatal_fault */
1245 kTopDarjeelingAlertIdI2c0FatalFault = 3, /**< i2c0_fatal_fault */
1246 kTopDarjeelingAlertIdRvTimerFatalFault = 4, /**< rv_timer_fatal_fault */
1247 kTopDarjeelingAlertIdOtpCtrlFatalMacroError = 5, /**< otp_ctrl_fatal_macro_error */
1248 kTopDarjeelingAlertIdOtpCtrlFatalCheckError = 6, /**< otp_ctrl_fatal_check_error */
1249 kTopDarjeelingAlertIdOtpCtrlFatalBusIntegError = 7, /**< otp_ctrl_fatal_bus_integ_error */
1250 kTopDarjeelingAlertIdOtpCtrlFatalPrimOtpAlert = 8, /**< otp_ctrl_fatal_prim_otp_alert */
1251 kTopDarjeelingAlertIdOtpCtrlRecovPrimOtpAlert = 9, /**< otp_ctrl_recov_prim_otp_alert */
1252 kTopDarjeelingAlertIdLcCtrlFatalProgError = 10, /**< lc_ctrl_fatal_prog_error */
1253 kTopDarjeelingAlertIdLcCtrlFatalStateError = 11, /**< lc_ctrl_fatal_state_error */
1254 kTopDarjeelingAlertIdLcCtrlFatalBusIntegError = 12, /**< lc_ctrl_fatal_bus_integ_error */
1255 kTopDarjeelingAlertIdSpiHost0FatalFault = 13, /**< spi_host0_fatal_fault */
1256 kTopDarjeelingAlertIdPwrmgrAonFatalFault = 14, /**< pwrmgr_aon_fatal_fault */
1257 kTopDarjeelingAlertIdRstmgrAonFatalFault = 15, /**< rstmgr_aon_fatal_fault */
1258 kTopDarjeelingAlertIdRstmgrAonFatalCnstyFault = 16, /**< rstmgr_aon_fatal_cnsty_fault */
1259 kTopDarjeelingAlertIdClkmgrAonRecovFault = 17, /**< clkmgr_aon_recov_fault */
1260 kTopDarjeelingAlertIdClkmgrAonFatalFault = 18, /**< clkmgr_aon_fatal_fault */
1261 kTopDarjeelingAlertIdPinmuxAonFatalFault = 19, /**< pinmux_aon_fatal_fault */
1262 kTopDarjeelingAlertIdAonTimerAonFatalFault = 20, /**< aon_timer_aon_fatal_fault */
1263 kTopDarjeelingAlertIdSocProxyFatalAlertIntg = 21, /**< soc_proxy_fatal_alert_intg */
1264 kTopDarjeelingAlertIdSocProxyFatalAlertExternal0 = 22, /**< soc_proxy_fatal_alert_external_0 */
1265 kTopDarjeelingAlertIdSocProxyFatalAlertExternal1 = 23, /**< soc_proxy_fatal_alert_external_1 */
1266 kTopDarjeelingAlertIdSocProxyFatalAlertExternal2 = 24, /**< soc_proxy_fatal_alert_external_2 */
1267 kTopDarjeelingAlertIdSocProxyFatalAlertExternal3 = 25, /**< soc_proxy_fatal_alert_external_3 */
1268 kTopDarjeelingAlertIdSocProxyFatalAlertExternal4 = 26, /**< soc_proxy_fatal_alert_external_4 */
1269 kTopDarjeelingAlertIdSocProxyFatalAlertExternal5 = 27, /**< soc_proxy_fatal_alert_external_5 */
1270 kTopDarjeelingAlertIdSocProxyFatalAlertExternal6 = 28, /**< soc_proxy_fatal_alert_external_6 */
1271 kTopDarjeelingAlertIdSocProxyFatalAlertExternal7 = 29, /**< soc_proxy_fatal_alert_external_7 */
1272 kTopDarjeelingAlertIdSocProxyFatalAlertExternal8 = 30, /**< soc_proxy_fatal_alert_external_8 */
1273 kTopDarjeelingAlertIdSocProxyFatalAlertExternal9 = 31, /**< soc_proxy_fatal_alert_external_9 */
1274 kTopDarjeelingAlertIdSocProxyFatalAlertExternal10 = 32, /**< soc_proxy_fatal_alert_external_10 */
1275 kTopDarjeelingAlertIdSocProxyFatalAlertExternal11 = 33, /**< soc_proxy_fatal_alert_external_11 */
1276 kTopDarjeelingAlertIdSocProxyFatalAlertExternal12 = 34, /**< soc_proxy_fatal_alert_external_12 */
1277 kTopDarjeelingAlertIdSocProxyFatalAlertExternal13 = 35, /**< soc_proxy_fatal_alert_external_13 */
1278 kTopDarjeelingAlertIdSocProxyFatalAlertExternal14 = 36, /**< soc_proxy_fatal_alert_external_14 */
1279 kTopDarjeelingAlertIdSocProxyFatalAlertExternal15 = 37, /**< soc_proxy_fatal_alert_external_15 */
1280 kTopDarjeelingAlertIdSocProxyFatalAlertExternal16 = 38, /**< soc_proxy_fatal_alert_external_16 */
1281 kTopDarjeelingAlertIdSocProxyFatalAlertExternal17 = 39, /**< soc_proxy_fatal_alert_external_17 */
1282 kTopDarjeelingAlertIdSocProxyFatalAlertExternal18 = 40, /**< soc_proxy_fatal_alert_external_18 */
1283 kTopDarjeelingAlertIdSocProxyFatalAlertExternal19 = 41, /**< soc_proxy_fatal_alert_external_19 */
1284 kTopDarjeelingAlertIdSocProxyFatalAlertExternal20 = 42, /**< soc_proxy_fatal_alert_external_20 */
1285 kTopDarjeelingAlertIdSocProxyFatalAlertExternal21 = 43, /**< soc_proxy_fatal_alert_external_21 */
1286 kTopDarjeelingAlertIdSocProxyFatalAlertExternal22 = 44, /**< soc_proxy_fatal_alert_external_22 */
1287 kTopDarjeelingAlertIdSocProxyFatalAlertExternal23 = 45, /**< soc_proxy_fatal_alert_external_23 */
1288 kTopDarjeelingAlertIdSocProxyRecovAlertExternal0 = 46, /**< soc_proxy_recov_alert_external_0 */
1289 kTopDarjeelingAlertIdSocProxyRecovAlertExternal1 = 47, /**< soc_proxy_recov_alert_external_1 */
1290 kTopDarjeelingAlertIdSocProxyRecovAlertExternal2 = 48, /**< soc_proxy_recov_alert_external_2 */
1291 kTopDarjeelingAlertIdSocProxyRecovAlertExternal3 = 49, /**< soc_proxy_recov_alert_external_3 */
1292 kTopDarjeelingAlertIdSramCtrlRetAonFatalError = 50, /**< sram_ctrl_ret_aon_fatal_error */
1293 kTopDarjeelingAlertIdRvDmFatalFault = 51, /**< rv_dm_fatal_fault */
1294 kTopDarjeelingAlertIdRvPlicFatalFault = 52, /**< rv_plic_fatal_fault */
1295 kTopDarjeelingAlertIdAesRecovCtrlUpdateErr = 53, /**< aes_recov_ctrl_update_err */
1296 kTopDarjeelingAlertIdAesFatalFault = 54, /**< aes_fatal_fault */
1297 kTopDarjeelingAlertIdHmacFatalFault = 55, /**< hmac_fatal_fault */
1298 kTopDarjeelingAlertIdKmacRecovOperationErr = 56, /**< kmac_recov_operation_err */
1299 kTopDarjeelingAlertIdKmacFatalFaultErr = 57, /**< kmac_fatal_fault_err */
1300 kTopDarjeelingAlertIdOtbnFatal = 58, /**< otbn_fatal */
1301 kTopDarjeelingAlertIdOtbnRecov = 59, /**< otbn_recov */
1302 kTopDarjeelingAlertIdKeymgrDpeRecovOperationErr = 60, /**< keymgr_dpe_recov_operation_err */
1303 kTopDarjeelingAlertIdKeymgrDpeFatalFaultErr = 61, /**< keymgr_dpe_fatal_fault_err */
1304 kTopDarjeelingAlertIdCsrngRecovAlert = 62, /**< csrng_recov_alert */
1305 kTopDarjeelingAlertIdCsrngFatalAlert = 63, /**< csrng_fatal_alert */
1306 kTopDarjeelingAlertIdEntropySrcRecovAlert = 64, /**< entropy_src_recov_alert */
1307 kTopDarjeelingAlertIdEntropySrcFatalAlert = 65, /**< entropy_src_fatal_alert */
1308 kTopDarjeelingAlertIdEdn0RecovAlert = 66, /**< edn0_recov_alert */
1309 kTopDarjeelingAlertIdEdn0FatalAlert = 67, /**< edn0_fatal_alert */
1310 kTopDarjeelingAlertIdEdn1RecovAlert = 68, /**< edn1_recov_alert */
1311 kTopDarjeelingAlertIdEdn1FatalAlert = 69, /**< edn1_fatal_alert */
1312 kTopDarjeelingAlertIdSramCtrlMainFatalError = 70, /**< sram_ctrl_main_fatal_error */
1313 kTopDarjeelingAlertIdSramCtrlMboxFatalError = 71, /**< sram_ctrl_mbox_fatal_error */
1314 kTopDarjeelingAlertIdRomCtrl0Fatal = 72, /**< rom_ctrl0_fatal */
1315 kTopDarjeelingAlertIdRomCtrl1Fatal = 73, /**< rom_ctrl1_fatal */
1316 kTopDarjeelingAlertIdDmaFatalFault = 74, /**< dma_fatal_fault */
1317 kTopDarjeelingAlertIdMbx0FatalFault = 75, /**< mbx0_fatal_fault */
1318 kTopDarjeelingAlertIdMbx0RecovFault = 76, /**< mbx0_recov_fault */
1319 kTopDarjeelingAlertIdMbx1FatalFault = 77, /**< mbx1_fatal_fault */
1320 kTopDarjeelingAlertIdMbx1RecovFault = 78, /**< mbx1_recov_fault */
1321 kTopDarjeelingAlertIdMbx2FatalFault = 79, /**< mbx2_fatal_fault */
1322 kTopDarjeelingAlertIdMbx2RecovFault = 80, /**< mbx2_recov_fault */
1323 kTopDarjeelingAlertIdMbx3FatalFault = 81, /**< mbx3_fatal_fault */
1324 kTopDarjeelingAlertIdMbx3RecovFault = 82, /**< mbx3_recov_fault */
1325 kTopDarjeelingAlertIdMbx4FatalFault = 83, /**< mbx4_fatal_fault */
1326 kTopDarjeelingAlertIdMbx4RecovFault = 84, /**< mbx4_recov_fault */
1327 kTopDarjeelingAlertIdMbx5FatalFault = 85, /**< mbx5_fatal_fault */
1328 kTopDarjeelingAlertIdMbx5RecovFault = 86, /**< mbx5_recov_fault */
1329 kTopDarjeelingAlertIdMbx6FatalFault = 87, /**< mbx6_fatal_fault */
1330 kTopDarjeelingAlertIdMbx6RecovFault = 88, /**< mbx6_recov_fault */
1331 kTopDarjeelingAlertIdMbxJtagFatalFault = 89, /**< mbx_jtag_fatal_fault */
1332 kTopDarjeelingAlertIdMbxJtagRecovFault = 90, /**< mbx_jtag_recov_fault */
1333 kTopDarjeelingAlertIdMbxPcie0FatalFault = 91, /**< mbx_pcie0_fatal_fault */
1334 kTopDarjeelingAlertIdMbxPcie0RecovFault = 92, /**< mbx_pcie0_recov_fault */
1335 kTopDarjeelingAlertIdMbxPcie1FatalFault = 93, /**< mbx_pcie1_fatal_fault */
1336 kTopDarjeelingAlertIdMbxPcie1RecovFault = 94, /**< mbx_pcie1_recov_fault */
1337 kTopDarjeelingAlertIdSocDbgCtrlFatalFault = 95, /**< soc_dbg_ctrl_fatal_fault */
1338 kTopDarjeelingAlertIdSocDbgCtrlRecovCtrlUpdateErr = 96, /**< soc_dbg_ctrl_recov_ctrl_update_err */
1339 kTopDarjeelingAlertIdRaclCtrlFatalFault = 97, /**< racl_ctrl_fatal_fault */
1340 kTopDarjeelingAlertIdRaclCtrlRecovCtrlUpdateErr = 98, /**< racl_ctrl_recov_ctrl_update_err */
1341 kTopDarjeelingAlertIdAcRangeCheckRecovCtrlUpdateErr = 99, /**< ac_range_check_recov_ctrl_update_err */
1342 kTopDarjeelingAlertIdAcRangeCheckFatalFault = 100, /**< ac_range_check_fatal_fault */
1343 kTopDarjeelingAlertIdRvCoreIbexFatalSwErr = 101, /**< rv_core_ibex_fatal_sw_err */
1344 kTopDarjeelingAlertIdRvCoreIbexRecovSwErr = 102, /**< rv_core_ibex_recov_sw_err */
1345 kTopDarjeelingAlertIdRvCoreIbexFatalHwErr = 103, /**< rv_core_ibex_fatal_hw_err */
1346 kTopDarjeelingAlertIdRvCoreIbexRecovHwErr = 104, /**< rv_core_ibex_recov_hw_err */
1347 kTopDarjeelingAlertIdLast = 104, /**< \internal The Last Valid Alert ID. */
1349
1350/**
1351 * Alert Handler Alert Source to Peripheral Map
1352 *
1353 * This array is a mapping from `top_darjeeling_alert_id_t` to
1354 * `top_darjeeling_alert_peripheral_t`.
1355 */
1357 top_darjeeling_alert_for_peripheral[105];
1358
1359#define PINMUX_MIO_PERIPH_INSEL_IDX_OFFSET 2
1360
1361// PERIPH_INSEL ranges from 0 to NUM_MIO_PADS + 2 -1}
1362// 0 and 1 are tied to value 0 and 1
1363#define NUM_MIO_PADS 12
1364#define NUM_DIO_PADS 73
1365
1366#define PINMUX_PERIPH_OUTSEL_IDX_OFFSET 3
1367
1368/**
1369 * Pinmux Peripheral Input.
1370 */
1376 kTopDarjeelingPinmuxPeripheralInLast = 3, /**< \internal Last valid peripheral input */
1378
1379/**
1380 * Pinmux MIO Input Selector.
1381 */
1383 kTopDarjeelingPinmuxInselConstantZero = 0, /**< Tie constantly to zero */
1384 kTopDarjeelingPinmuxInselConstantOne = 1, /**< Tie constantly to one */
1385 kTopDarjeelingPinmuxInselMio0 = 2, /**< MIO Pad 0 */
1386 kTopDarjeelingPinmuxInselMio1 = 3, /**< MIO Pad 1 */
1387 kTopDarjeelingPinmuxInselMio2 = 4, /**< MIO Pad 2 */
1388 kTopDarjeelingPinmuxInselMio3 = 5, /**< MIO Pad 3 */
1389 kTopDarjeelingPinmuxInselMio4 = 6, /**< MIO Pad 4 */
1390 kTopDarjeelingPinmuxInselMio5 = 7, /**< MIO Pad 5 */
1391 kTopDarjeelingPinmuxInselMio6 = 8, /**< MIO Pad 6 */
1392 kTopDarjeelingPinmuxInselMio7 = 9, /**< MIO Pad 7 */
1393 kTopDarjeelingPinmuxInselMio8 = 10, /**< MIO Pad 8 */
1394 kTopDarjeelingPinmuxInselMio9 = 11, /**< MIO Pad 9 */
1395 kTopDarjeelingPinmuxInselMio10 = 12, /**< MIO Pad 10 */
1396 kTopDarjeelingPinmuxInselMio11 = 13, /**< MIO Pad 11 */
1397 kTopDarjeelingPinmuxInselLast = 13, /**< \internal Last valid insel value */
1399
1400/**
1401 * Pinmux MIO Output.
1402 */
1404 kTopDarjeelingPinmuxMioOutMio0 = 0, /**< MIO Pad 0 */
1405 kTopDarjeelingPinmuxMioOutMio1 = 1, /**< MIO Pad 1 */
1406 kTopDarjeelingPinmuxMioOutMio2 = 2, /**< MIO Pad 2 */
1407 kTopDarjeelingPinmuxMioOutMio3 = 3, /**< MIO Pad 3 */
1408 kTopDarjeelingPinmuxMioOutMio4 = 4, /**< MIO Pad 4 */
1409 kTopDarjeelingPinmuxMioOutMio5 = 5, /**< MIO Pad 5 */
1410 kTopDarjeelingPinmuxMioOutMio6 = 6, /**< MIO Pad 6 */
1411 kTopDarjeelingPinmuxMioOutMio7 = 7, /**< MIO Pad 7 */
1412 kTopDarjeelingPinmuxMioOutMio8 = 8, /**< MIO Pad 8 */
1413 kTopDarjeelingPinmuxMioOutMio9 = 9, /**< MIO Pad 9 */
1414 kTopDarjeelingPinmuxMioOutMio10 = 10, /**< MIO Pad 10 */
1415 kTopDarjeelingPinmuxMioOutMio11 = 11, /**< MIO Pad 11 */
1416 kTopDarjeelingPinmuxMioOutLast = 11, /**< \internal Last valid mio output */
1418
1419/**
1420 * Pinmux Peripheral Output Selector.
1421 */
1423 kTopDarjeelingPinmuxOutselConstantZero = 0, /**< Tie constantly to zero */
1424 kTopDarjeelingPinmuxOutselConstantOne = 1, /**< Tie constantly to one */
1425 kTopDarjeelingPinmuxOutselConstantHighZ = 2, /**< Tie constantly to high-Z */
1426 kTopDarjeelingPinmuxOutselSocProxySocGpo12 = 3, /**< Peripheral Output 0 */
1427 kTopDarjeelingPinmuxOutselSocProxySocGpo13 = 4, /**< Peripheral Output 1 */
1428 kTopDarjeelingPinmuxOutselSocProxySocGpo14 = 5, /**< Peripheral Output 2 */
1429 kTopDarjeelingPinmuxOutselSocProxySocGpo15 = 6, /**< Peripheral Output 3 */
1430 kTopDarjeelingPinmuxOutselOtpMacroTest0 = 7, /**< Peripheral Output 4 */
1431 kTopDarjeelingPinmuxOutselLast = 7, /**< \internal Last valid outsel value */
1433
1434/**
1435 * Dedicated Pad Selects
1436 */
1438 kTopDarjeelingDirectPadsSpiHost0Sd0 = 0, /**< */
1439 kTopDarjeelingDirectPadsSpiHost0Sd1 = 1, /**< */
1440 kTopDarjeelingDirectPadsSpiHost0Sd2 = 2, /**< */
1441 kTopDarjeelingDirectPadsSpiHost0Sd3 = 3, /**< */
1442 kTopDarjeelingDirectPadsSpiDeviceSd0 = 4, /**< */
1443 kTopDarjeelingDirectPadsSpiDeviceSd1 = 5, /**< */
1444 kTopDarjeelingDirectPadsSpiDeviceSd2 = 6, /**< */
1445 kTopDarjeelingDirectPadsSpiDeviceSd3 = 7, /**< */
1446 kTopDarjeelingDirectPadsI2c0Scl = 8, /**< */
1447 kTopDarjeelingDirectPadsI2c0Sda = 9, /**< */
1448 kTopDarjeelingDirectPadsGpioGpio0 = 10, /**< */
1449 kTopDarjeelingDirectPadsGpioGpio1 = 11, /**< */
1450 kTopDarjeelingDirectPadsGpioGpio2 = 12, /**< */
1451 kTopDarjeelingDirectPadsGpioGpio3 = 13, /**< */
1452 kTopDarjeelingDirectPadsGpioGpio4 = 14, /**< */
1453 kTopDarjeelingDirectPadsGpioGpio5 = 15, /**< */
1454 kTopDarjeelingDirectPadsGpioGpio6 = 16, /**< */
1455 kTopDarjeelingDirectPadsGpioGpio7 = 17, /**< */
1456 kTopDarjeelingDirectPadsGpioGpio8 = 18, /**< */
1457 kTopDarjeelingDirectPadsGpioGpio9 = 19, /**< */
1458 kTopDarjeelingDirectPadsGpioGpio10 = 20, /**< */
1459 kTopDarjeelingDirectPadsGpioGpio11 = 21, /**< */
1460 kTopDarjeelingDirectPadsGpioGpio12 = 22, /**< */
1461 kTopDarjeelingDirectPadsGpioGpio13 = 23, /**< */
1462 kTopDarjeelingDirectPadsGpioGpio14 = 24, /**< */
1463 kTopDarjeelingDirectPadsGpioGpio15 = 25, /**< */
1464 kTopDarjeelingDirectPadsGpioGpio16 = 26, /**< */
1465 kTopDarjeelingDirectPadsGpioGpio17 = 27, /**< */
1466 kTopDarjeelingDirectPadsGpioGpio18 = 28, /**< */
1467 kTopDarjeelingDirectPadsGpioGpio19 = 29, /**< */
1468 kTopDarjeelingDirectPadsGpioGpio20 = 30, /**< */
1469 kTopDarjeelingDirectPadsGpioGpio21 = 31, /**< */
1470 kTopDarjeelingDirectPadsGpioGpio22 = 32, /**< */
1471 kTopDarjeelingDirectPadsGpioGpio23 = 33, /**< */
1472 kTopDarjeelingDirectPadsGpioGpio24 = 34, /**< */
1473 kTopDarjeelingDirectPadsGpioGpio25 = 35, /**< */
1474 kTopDarjeelingDirectPadsGpioGpio26 = 36, /**< */
1475 kTopDarjeelingDirectPadsGpioGpio27 = 37, /**< */
1476 kTopDarjeelingDirectPadsGpioGpio28 = 38, /**< */
1477 kTopDarjeelingDirectPadsGpioGpio29 = 39, /**< */
1478 kTopDarjeelingDirectPadsGpioGpio30 = 40, /**< */
1479 kTopDarjeelingDirectPadsGpioGpio31 = 41, /**< */
1480 kTopDarjeelingDirectPadsSpiDeviceSck = 42, /**< */
1481 kTopDarjeelingDirectPadsSpiDeviceCsb = 43, /**< */
1482 kTopDarjeelingDirectPadsSpiDeviceTpmCsb = 44, /**< */
1483 kTopDarjeelingDirectPadsUart0Rx = 45, /**< */
1484 kTopDarjeelingDirectPadsSocProxySocGpi0 = 46, /**< */
1485 kTopDarjeelingDirectPadsSocProxySocGpi1 = 47, /**< */
1486 kTopDarjeelingDirectPadsSocProxySocGpi2 = 48, /**< */
1487 kTopDarjeelingDirectPadsSocProxySocGpi3 = 49, /**< */
1488 kTopDarjeelingDirectPadsSocProxySocGpi4 = 50, /**< */
1489 kTopDarjeelingDirectPadsSocProxySocGpi5 = 51, /**< */
1490 kTopDarjeelingDirectPadsSocProxySocGpi6 = 52, /**< */
1491 kTopDarjeelingDirectPadsSocProxySocGpi7 = 53, /**< */
1492 kTopDarjeelingDirectPadsSocProxySocGpi8 = 54, /**< */
1493 kTopDarjeelingDirectPadsSocProxySocGpi9 = 55, /**< */
1494 kTopDarjeelingDirectPadsSocProxySocGpi10 = 56, /**< */
1495 kTopDarjeelingDirectPadsSocProxySocGpi11 = 57, /**< */
1496 kTopDarjeelingDirectPadsSpiHost0Sck = 58, /**< */
1497 kTopDarjeelingDirectPadsSpiHost0Csb = 59, /**< */
1498 kTopDarjeelingDirectPadsUart0Tx = 60, /**< */
1499 kTopDarjeelingDirectPadsSocProxySocGpo0 = 61, /**< */
1500 kTopDarjeelingDirectPadsSocProxySocGpo1 = 62, /**< */
1501 kTopDarjeelingDirectPadsSocProxySocGpo2 = 63, /**< */
1502 kTopDarjeelingDirectPadsSocProxySocGpo3 = 64, /**< */
1503 kTopDarjeelingDirectPadsSocProxySocGpo4 = 65, /**< */
1504 kTopDarjeelingDirectPadsSocProxySocGpo5 = 66, /**< */
1505 kTopDarjeelingDirectPadsSocProxySocGpo6 = 67, /**< */
1506 kTopDarjeelingDirectPadsSocProxySocGpo7 = 68, /**< */
1507 kTopDarjeelingDirectPadsSocProxySocGpo8 = 69, /**< */
1508 kTopDarjeelingDirectPadsSocProxySocGpo9 = 70, /**< */
1509 kTopDarjeelingDirectPadsSocProxySocGpo10 = 71, /**< */
1510 kTopDarjeelingDirectPadsSocProxySocGpo11 = 72, /**< */
1511 kTopDarjeelingDirectPadsLast = 72, /**< \internal Last valid direct pad */
1513
1514/**
1515 * Muxed Pad Selects
1516 */
1518 kTopDarjeelingMuxedPadsMio0 = 0, /**< */
1519 kTopDarjeelingMuxedPadsMio1 = 1, /**< */
1520 kTopDarjeelingMuxedPadsMio2 = 2, /**< */
1521 kTopDarjeelingMuxedPadsMio3 = 3, /**< */
1522 kTopDarjeelingMuxedPadsMio4 = 4, /**< */
1523 kTopDarjeelingMuxedPadsMio5 = 5, /**< */
1524 kTopDarjeelingMuxedPadsMio6 = 6, /**< */
1525 kTopDarjeelingMuxedPadsMio7 = 7, /**< */
1526 kTopDarjeelingMuxedPadsMio8 = 8, /**< */
1527 kTopDarjeelingMuxedPadsMio9 = 9, /**< */
1528 kTopDarjeelingMuxedPadsMio10 = 10, /**< */
1529 kTopDarjeelingMuxedPadsMio11 = 11, /**< */
1530 kTopDarjeelingMuxedPadsLast = 11, /**< \internal Last valid muxed pad */
1532
1533/**
1534 * Power Manager Wakeup Signals
1535 */
1537 kTopDarjeelingPowerManagerWakeUpsPinmuxAonPinWkupReq = 0, /**< */
1538 kTopDarjeelingPowerManagerWakeUpsAonTimerAonWkupReq = 1, /**< */
1539 kTopDarjeelingPowerManagerWakeUpsSocProxyWkupInternalReq = 2, /**< */
1540 kTopDarjeelingPowerManagerWakeUpsSocProxyWkupExternalReq = 3, /**< */
1541 kTopDarjeelingPowerManagerWakeUpsLast = 3, /**< \internal Last valid pwrmgr wakeup signal */
1543
1544/**
1545 * Reset Manager Software Controlled Resets
1546 */
1548 kTopDarjeelingResetManagerSwResetsSpiDevice = 0, /**< */
1549 kTopDarjeelingResetManagerSwResetsSpiHost0 = 1, /**< */
1550 kTopDarjeelingResetManagerSwResetsI2c0 = 2, /**< */
1551 kTopDarjeelingResetManagerSwResetsLast = 2, /**< \internal Last valid rstmgr software reset request */
1553
1554/**
1555 * Power Manager Reset Request Signals
1556 */
1558 kTopDarjeelingPowerManagerResetRequestsAonTimerAonAonTimerRstReq = 0, /**< */
1559 kTopDarjeelingPowerManagerResetRequestsSocProxyRstReqExternal = 1, /**< */
1560 kTopDarjeelingPowerManagerResetRequestsLast = 1, /**< \internal Last valid pwrmgr reset_request signal */
1562
1563/**
1564 * Clock Manager Software-Controlled ("Gated") Clocks.
1565 *
1566 * The Software has full control over these clocks.
1567 */
1569 kTopDarjeelingGateableClocksIoDiv4Peri = 0, /**< Clock clk_io_div4_peri in group peri */
1570 kTopDarjeelingGateableClocksIoDiv2Peri = 1, /**< Clock clk_io_div2_peri in group peri */
1571 kTopDarjeelingGateableClocksLast = 1, /**< \internal Last Valid Gateable Clock */
1573
1574/**
1575 * Clock Manager Software-Hinted Clocks.
1576 *
1577 * The Software has partial control over these clocks. It can ask them to stop,
1578 * but the clock manager is in control of whether the clock actually is stopped.
1579 */
1581 kTopDarjeelingHintableClocksMainAes = 0, /**< Clock clk_main_aes in group trans */
1582 kTopDarjeelingHintableClocksMainHmac = 1, /**< Clock clk_main_hmac in group trans */
1583 kTopDarjeelingHintableClocksMainKmac = 2, /**< Clock clk_main_kmac in group trans */
1584 kTopDarjeelingHintableClocksMainOtbn = 3, /**< Clock clk_main_otbn in group trans */
1585 kTopDarjeelingHintableClocksLast = 3, /**< \internal Last Valid Hintable Clock */
1587
1588/**
1589 * MMIO Region
1590 *
1591 * MMIO region excludes any memory that is separate from the module
1592 * configuration space, i.e. ROM, main SRAM, and mbx SRAM are excluded but
1593 * retention SRAM or spi_device are included.
1594 */
1595#define TOP_DARJEELING_MMIO_BASE_ADDR 0x21100000u
1596#define TOP_DARJEELING_MMIO_SIZE_BYTES 0xF501000u
1597
1598// Header Extern Guard
1599#ifdef __cplusplus
1600} // extern "C"
1601#endif
1602
1603#endif // OPENTITAN_HW_TOP_DARJEELING_SW_AUTOGEN_TOP_DARJEELING_H_