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 0x8u
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 */
979 kTopDarjeelingPlicPeripheralAcRangeCheck = 31, /**< ac_range_check */
980 kTopDarjeelingPlicPeripheralLast = 31, /**< \internal Final PLIC peripheral */
982
983/**
984 * PLIC Interrupt Source.
985 *
986 * Enumeration of all PLIC interrupt sources. The interrupt sources belonging to
987 * the same peripheral are guaranteed to be consecutive.
988 */
990 kTopDarjeelingPlicIrqIdNone = 0, /**< No Interrupt */
991 kTopDarjeelingPlicIrqIdUart0TxWatermark = 1, /**< uart0_tx_watermark */
992 kTopDarjeelingPlicIrqIdUart0RxWatermark = 2, /**< uart0_rx_watermark */
993 kTopDarjeelingPlicIrqIdUart0TxDone = 3, /**< uart0_tx_done */
994 kTopDarjeelingPlicIrqIdUart0RxOverflow = 4, /**< uart0_rx_overflow */
995 kTopDarjeelingPlicIrqIdUart0RxFrameErr = 5, /**< uart0_rx_frame_err */
996 kTopDarjeelingPlicIrqIdUart0RxBreakErr = 6, /**< uart0_rx_break_err */
997 kTopDarjeelingPlicIrqIdUart0RxTimeout = 7, /**< uart0_rx_timeout */
998 kTopDarjeelingPlicIrqIdUart0RxParityErr = 8, /**< uart0_rx_parity_err */
999 kTopDarjeelingPlicIrqIdUart0TxEmpty = 9, /**< uart0_tx_empty */
1000 kTopDarjeelingPlicIrqIdGpioGpio0 = 10, /**< gpio_gpio 0 */
1001 kTopDarjeelingPlicIrqIdGpioGpio1 = 11, /**< gpio_gpio 1 */
1002 kTopDarjeelingPlicIrqIdGpioGpio2 = 12, /**< gpio_gpio 2 */
1003 kTopDarjeelingPlicIrqIdGpioGpio3 = 13, /**< gpio_gpio 3 */
1004 kTopDarjeelingPlicIrqIdGpioGpio4 = 14, /**< gpio_gpio 4 */
1005 kTopDarjeelingPlicIrqIdGpioGpio5 = 15, /**< gpio_gpio 5 */
1006 kTopDarjeelingPlicIrqIdGpioGpio6 = 16, /**< gpio_gpio 6 */
1007 kTopDarjeelingPlicIrqIdGpioGpio7 = 17, /**< gpio_gpio 7 */
1008 kTopDarjeelingPlicIrqIdGpioGpio8 = 18, /**< gpio_gpio 8 */
1009 kTopDarjeelingPlicIrqIdGpioGpio9 = 19, /**< gpio_gpio 9 */
1010 kTopDarjeelingPlicIrqIdGpioGpio10 = 20, /**< gpio_gpio 10 */
1011 kTopDarjeelingPlicIrqIdGpioGpio11 = 21, /**< gpio_gpio 11 */
1012 kTopDarjeelingPlicIrqIdGpioGpio12 = 22, /**< gpio_gpio 12 */
1013 kTopDarjeelingPlicIrqIdGpioGpio13 = 23, /**< gpio_gpio 13 */
1014 kTopDarjeelingPlicIrqIdGpioGpio14 = 24, /**< gpio_gpio 14 */
1015 kTopDarjeelingPlicIrqIdGpioGpio15 = 25, /**< gpio_gpio 15 */
1016 kTopDarjeelingPlicIrqIdGpioGpio16 = 26, /**< gpio_gpio 16 */
1017 kTopDarjeelingPlicIrqIdGpioGpio17 = 27, /**< gpio_gpio 17 */
1018 kTopDarjeelingPlicIrqIdGpioGpio18 = 28, /**< gpio_gpio 18 */
1019 kTopDarjeelingPlicIrqIdGpioGpio19 = 29, /**< gpio_gpio 19 */
1020 kTopDarjeelingPlicIrqIdGpioGpio20 = 30, /**< gpio_gpio 20 */
1021 kTopDarjeelingPlicIrqIdGpioGpio21 = 31, /**< gpio_gpio 21 */
1022 kTopDarjeelingPlicIrqIdGpioGpio22 = 32, /**< gpio_gpio 22 */
1023 kTopDarjeelingPlicIrqIdGpioGpio23 = 33, /**< gpio_gpio 23 */
1024 kTopDarjeelingPlicIrqIdGpioGpio24 = 34, /**< gpio_gpio 24 */
1025 kTopDarjeelingPlicIrqIdGpioGpio25 = 35, /**< gpio_gpio 25 */
1026 kTopDarjeelingPlicIrqIdGpioGpio26 = 36, /**< gpio_gpio 26 */
1027 kTopDarjeelingPlicIrqIdGpioGpio27 = 37, /**< gpio_gpio 27 */
1028 kTopDarjeelingPlicIrqIdGpioGpio28 = 38, /**< gpio_gpio 28 */
1029 kTopDarjeelingPlicIrqIdGpioGpio29 = 39, /**< gpio_gpio 29 */
1030 kTopDarjeelingPlicIrqIdGpioGpio30 = 40, /**< gpio_gpio 30 */
1031 kTopDarjeelingPlicIrqIdGpioGpio31 = 41, /**< gpio_gpio 31 */
1032 kTopDarjeelingPlicIrqIdSpiDeviceUploadCmdfifoNotEmpty = 42, /**< spi_device_upload_cmdfifo_not_empty */
1033 kTopDarjeelingPlicIrqIdSpiDeviceUploadPayloadNotEmpty = 43, /**< spi_device_upload_payload_not_empty */
1034 kTopDarjeelingPlicIrqIdSpiDeviceUploadPayloadOverflow = 44, /**< spi_device_upload_payload_overflow */
1035 kTopDarjeelingPlicIrqIdSpiDeviceReadbufWatermark = 45, /**< spi_device_readbuf_watermark */
1036 kTopDarjeelingPlicIrqIdSpiDeviceReadbufFlip = 46, /**< spi_device_readbuf_flip */
1037 kTopDarjeelingPlicIrqIdSpiDeviceTpmHeaderNotEmpty = 47, /**< spi_device_tpm_header_not_empty */
1038 kTopDarjeelingPlicIrqIdSpiDeviceTpmRdfifoCmdEnd = 48, /**< spi_device_tpm_rdfifo_cmd_end */
1039 kTopDarjeelingPlicIrqIdSpiDeviceTpmRdfifoDrop = 49, /**< spi_device_tpm_rdfifo_drop */
1040 kTopDarjeelingPlicIrqIdI2c0FmtThreshold = 50, /**< i2c0_fmt_threshold */
1041 kTopDarjeelingPlicIrqIdI2c0RxThreshold = 51, /**< i2c0_rx_threshold */
1042 kTopDarjeelingPlicIrqIdI2c0AcqThreshold = 52, /**< i2c0_acq_threshold */
1043 kTopDarjeelingPlicIrqIdI2c0RxOverflow = 53, /**< i2c0_rx_overflow */
1044 kTopDarjeelingPlicIrqIdI2c0ControllerHalt = 54, /**< i2c0_controller_halt */
1045 kTopDarjeelingPlicIrqIdI2c0SclInterference = 55, /**< i2c0_scl_interference */
1046 kTopDarjeelingPlicIrqIdI2c0SdaInterference = 56, /**< i2c0_sda_interference */
1047 kTopDarjeelingPlicIrqIdI2c0StretchTimeout = 57, /**< i2c0_stretch_timeout */
1048 kTopDarjeelingPlicIrqIdI2c0SdaUnstable = 58, /**< i2c0_sda_unstable */
1049 kTopDarjeelingPlicIrqIdI2c0CmdComplete = 59, /**< i2c0_cmd_complete */
1050 kTopDarjeelingPlicIrqIdI2c0TxStretch = 60, /**< i2c0_tx_stretch */
1051 kTopDarjeelingPlicIrqIdI2c0TxThreshold = 61, /**< i2c0_tx_threshold */
1052 kTopDarjeelingPlicIrqIdI2c0AcqStretch = 62, /**< i2c0_acq_stretch */
1053 kTopDarjeelingPlicIrqIdI2c0UnexpStop = 63, /**< i2c0_unexp_stop */
1054 kTopDarjeelingPlicIrqIdI2c0HostTimeout = 64, /**< i2c0_host_timeout */
1055 kTopDarjeelingPlicIrqIdRvTimerTimerExpiredHart0Timer0 = 65, /**< rv_timer_timer_expired_hart0_timer0 */
1056 kTopDarjeelingPlicIrqIdOtpCtrlOtpOperationDone = 66, /**< otp_ctrl_otp_operation_done */
1057 kTopDarjeelingPlicIrqIdOtpCtrlOtpError = 67, /**< otp_ctrl_otp_error */
1058 kTopDarjeelingPlicIrqIdAlertHandlerClassa = 68, /**< alert_handler_classa */
1059 kTopDarjeelingPlicIrqIdAlertHandlerClassb = 69, /**< alert_handler_classb */
1060 kTopDarjeelingPlicIrqIdAlertHandlerClassc = 70, /**< alert_handler_classc */
1061 kTopDarjeelingPlicIrqIdAlertHandlerClassd = 71, /**< alert_handler_classd */
1062 kTopDarjeelingPlicIrqIdSpiHost0Error = 72, /**< spi_host0_error */
1063 kTopDarjeelingPlicIrqIdSpiHost0SpiEvent = 73, /**< spi_host0_spi_event */
1064 kTopDarjeelingPlicIrqIdPwrmgrAonWakeup = 74, /**< pwrmgr_aon_wakeup */
1065 kTopDarjeelingPlicIrqIdAonTimerAonWkupTimerExpired = 75, /**< aon_timer_aon_wkup_timer_expired */
1066 kTopDarjeelingPlicIrqIdAonTimerAonWdogTimerBark = 76, /**< aon_timer_aon_wdog_timer_bark */
1067 kTopDarjeelingPlicIrqIdHmacHmacDone = 77, /**< hmac_hmac_done */
1068 kTopDarjeelingPlicIrqIdHmacFifoEmpty = 78, /**< hmac_fifo_empty */
1069 kTopDarjeelingPlicIrqIdHmacHmacErr = 79, /**< hmac_hmac_err */
1070 kTopDarjeelingPlicIrqIdKmacKmacDone = 80, /**< kmac_kmac_done */
1071 kTopDarjeelingPlicIrqIdKmacFifoEmpty = 81, /**< kmac_fifo_empty */
1072 kTopDarjeelingPlicIrqIdKmacKmacErr = 82, /**< kmac_kmac_err */
1073 kTopDarjeelingPlicIrqIdOtbnDone = 83, /**< otbn_done */
1074 kTopDarjeelingPlicIrqIdKeymgrDpeOpDone = 84, /**< keymgr_dpe_op_done */
1075 kTopDarjeelingPlicIrqIdCsrngCsCmdReqDone = 85, /**< csrng_cs_cmd_req_done */
1076 kTopDarjeelingPlicIrqIdCsrngCsEntropyReq = 86, /**< csrng_cs_entropy_req */
1077 kTopDarjeelingPlicIrqIdCsrngCsHwInstExc = 87, /**< csrng_cs_hw_inst_exc */
1078 kTopDarjeelingPlicIrqIdCsrngCsFatalErr = 88, /**< csrng_cs_fatal_err */
1079 kTopDarjeelingPlicIrqIdEntropySrcEsEntropyValid = 89, /**< entropy_src_es_entropy_valid */
1080 kTopDarjeelingPlicIrqIdEntropySrcEsHealthTestFailed = 90, /**< entropy_src_es_health_test_failed */
1081 kTopDarjeelingPlicIrqIdEntropySrcEsObserveFifoReady = 91, /**< entropy_src_es_observe_fifo_ready */
1082 kTopDarjeelingPlicIrqIdEntropySrcEsFatalErr = 92, /**< entropy_src_es_fatal_err */
1083 kTopDarjeelingPlicIrqIdEdn0EdnCmdReqDone = 93, /**< edn0_edn_cmd_req_done */
1084 kTopDarjeelingPlicIrqIdEdn0EdnFatalErr = 94, /**< edn0_edn_fatal_err */
1085 kTopDarjeelingPlicIrqIdEdn1EdnCmdReqDone = 95, /**< edn1_edn_cmd_req_done */
1086 kTopDarjeelingPlicIrqIdEdn1EdnFatalErr = 96, /**< edn1_edn_fatal_err */
1087 kTopDarjeelingPlicIrqIdDmaDmaDone = 97, /**< dma_dma_done */
1088 kTopDarjeelingPlicIrqIdDmaDmaChunkDone = 98, /**< dma_dma_chunk_done */
1089 kTopDarjeelingPlicIrqIdDmaDmaError = 99, /**< dma_dma_error */
1090 kTopDarjeelingPlicIrqIdMbx0MbxReady = 100, /**< mbx0_mbx_ready */
1091 kTopDarjeelingPlicIrqIdMbx0MbxAbort = 101, /**< mbx0_mbx_abort */
1092 kTopDarjeelingPlicIrqIdMbx0MbxError = 102, /**< mbx0_mbx_error */
1093 kTopDarjeelingPlicIrqIdMbx1MbxReady = 103, /**< mbx1_mbx_ready */
1094 kTopDarjeelingPlicIrqIdMbx1MbxAbort = 104, /**< mbx1_mbx_abort */
1095 kTopDarjeelingPlicIrqIdMbx1MbxError = 105, /**< mbx1_mbx_error */
1096 kTopDarjeelingPlicIrqIdMbx2MbxReady = 106, /**< mbx2_mbx_ready */
1097 kTopDarjeelingPlicIrqIdMbx2MbxAbort = 107, /**< mbx2_mbx_abort */
1098 kTopDarjeelingPlicIrqIdMbx2MbxError = 108, /**< mbx2_mbx_error */
1099 kTopDarjeelingPlicIrqIdMbx3MbxReady = 109, /**< mbx3_mbx_ready */
1100 kTopDarjeelingPlicIrqIdMbx3MbxAbort = 110, /**< mbx3_mbx_abort */
1101 kTopDarjeelingPlicIrqIdMbx3MbxError = 111, /**< mbx3_mbx_error */
1102 kTopDarjeelingPlicIrqIdMbx4MbxReady = 112, /**< mbx4_mbx_ready */
1103 kTopDarjeelingPlicIrqIdMbx4MbxAbort = 113, /**< mbx4_mbx_abort */
1104 kTopDarjeelingPlicIrqIdMbx4MbxError = 114, /**< mbx4_mbx_error */
1105 kTopDarjeelingPlicIrqIdMbx5MbxReady = 115, /**< mbx5_mbx_ready */
1106 kTopDarjeelingPlicIrqIdMbx5MbxAbort = 116, /**< mbx5_mbx_abort */
1107 kTopDarjeelingPlicIrqIdMbx5MbxError = 117, /**< mbx5_mbx_error */
1108 kTopDarjeelingPlicIrqIdMbx6MbxReady = 118, /**< mbx6_mbx_ready */
1109 kTopDarjeelingPlicIrqIdMbx6MbxAbort = 119, /**< mbx6_mbx_abort */
1110 kTopDarjeelingPlicIrqIdMbx6MbxError = 120, /**< mbx6_mbx_error */
1111 kTopDarjeelingPlicIrqIdMbxJtagMbxReady = 121, /**< mbx_jtag_mbx_ready */
1112 kTopDarjeelingPlicIrqIdMbxJtagMbxAbort = 122, /**< mbx_jtag_mbx_abort */
1113 kTopDarjeelingPlicIrqIdMbxJtagMbxError = 123, /**< mbx_jtag_mbx_error */
1114 kTopDarjeelingPlicIrqIdMbxPcie0MbxReady = 124, /**< mbx_pcie0_mbx_ready */
1115 kTopDarjeelingPlicIrqIdMbxPcie0MbxAbort = 125, /**< mbx_pcie0_mbx_abort */
1116 kTopDarjeelingPlicIrqIdMbxPcie0MbxError = 126, /**< mbx_pcie0_mbx_error */
1117 kTopDarjeelingPlicIrqIdMbxPcie1MbxReady = 127, /**< mbx_pcie1_mbx_ready */
1118 kTopDarjeelingPlicIrqIdMbxPcie1MbxAbort = 128, /**< mbx_pcie1_mbx_abort */
1119 kTopDarjeelingPlicIrqIdMbxPcie1MbxError = 129, /**< mbx_pcie1_mbx_error */
1120 kTopDarjeelingPlicIrqIdRaclCtrlRaclError = 130, /**< racl_ctrl_racl_error */
1121 kTopDarjeelingPlicIrqIdAcRangeCheckDenyCntReached = 131, /**< ac_range_check_deny_cnt_reached */
1122 kTopDarjeelingPlicIrqIdLast = 131, /**< \internal The Last Valid Interrupt ID. */
1124
1125/**
1126 * PLIC Interrupt Source to Peripheral Map
1127 *
1128 * This array is a mapping from `top_darjeeling_plic_irq_id_t` to
1129 * `top_darjeeling_plic_peripheral_t`.
1130 */
1132 top_darjeeling_plic_interrupt_for_peripheral[132];
1133
1134/**
1135 * PLIC Interrupt Target.
1136 *
1137 * Enumeration used to determine which set of IE, CC, threshold registers to
1138 * access for a given interrupt target.
1139 */
1141 kTopDarjeelingPlicTargetIbex0 = 0, /**< Ibex Core 0 */
1142 kTopDarjeelingPlicTargetLast = 0, /**< \internal Final PLIC target */
1144
1145
1146/**
1147 * Alert Handler Source Peripheral.
1148 *
1149 * Enumeration used to determine which peripheral asserted the corresponding
1150 * alert.
1151 */
1153 kTopDarjeelingAlertPeripheralExternal = 0, /**< External Peripheral */
1168 kTopDarjeelingAlertPeripheralSramCtrlRetAon = 15, /**< sram_ctrl_ret_aon */
1199 kTopDarjeelingAlertPeripheralLast = 45, /**< \internal Final Alert peripheral */
1201
1202/**
1203 * Alert Handler Alert Source.
1204 *
1205 * Enumeration of all Alert Handler Alert Sources. The alert sources belonging to
1206 * the same peripheral are guaranteed to be consecutive.
1207 */
1209 kTopDarjeelingAlertIdUart0FatalFault = 0, /**< uart0_fatal_fault */
1210 kTopDarjeelingAlertIdGpioFatalFault = 1, /**< gpio_fatal_fault */
1211 kTopDarjeelingAlertIdSpiDeviceFatalFault = 2, /**< spi_device_fatal_fault */
1212 kTopDarjeelingAlertIdI2c0FatalFault = 3, /**< i2c0_fatal_fault */
1213 kTopDarjeelingAlertIdRvTimerFatalFault = 4, /**< rv_timer_fatal_fault */
1214 kTopDarjeelingAlertIdOtpCtrlFatalMacroError = 5, /**< otp_ctrl_fatal_macro_error */
1215 kTopDarjeelingAlertIdOtpCtrlFatalCheckError = 6, /**< otp_ctrl_fatal_check_error */
1216 kTopDarjeelingAlertIdOtpCtrlFatalBusIntegError = 7, /**< otp_ctrl_fatal_bus_integ_error */
1217 kTopDarjeelingAlertIdOtpCtrlFatalPrimOtpAlert = 8, /**< otp_ctrl_fatal_prim_otp_alert */
1218 kTopDarjeelingAlertIdOtpCtrlRecovPrimOtpAlert = 9, /**< otp_ctrl_recov_prim_otp_alert */
1219 kTopDarjeelingAlertIdLcCtrlFatalProgError = 10, /**< lc_ctrl_fatal_prog_error */
1220 kTopDarjeelingAlertIdLcCtrlFatalStateError = 11, /**< lc_ctrl_fatal_state_error */
1221 kTopDarjeelingAlertIdLcCtrlFatalBusIntegError = 12, /**< lc_ctrl_fatal_bus_integ_error */
1222 kTopDarjeelingAlertIdSpiHost0FatalFault = 13, /**< spi_host0_fatal_fault */
1223 kTopDarjeelingAlertIdPwrmgrAonFatalFault = 14, /**< pwrmgr_aon_fatal_fault */
1224 kTopDarjeelingAlertIdRstmgrAonFatalFault = 15, /**< rstmgr_aon_fatal_fault */
1225 kTopDarjeelingAlertIdRstmgrAonFatalCnstyFault = 16, /**< rstmgr_aon_fatal_cnsty_fault */
1226 kTopDarjeelingAlertIdClkmgrAonRecovFault = 17, /**< clkmgr_aon_recov_fault */
1227 kTopDarjeelingAlertIdClkmgrAonFatalFault = 18, /**< clkmgr_aon_fatal_fault */
1228 kTopDarjeelingAlertIdPinmuxAonFatalFault = 19, /**< pinmux_aon_fatal_fault */
1229 kTopDarjeelingAlertIdAonTimerAonFatalFault = 20, /**< aon_timer_aon_fatal_fault */
1230 kTopDarjeelingAlertIdSocProxyFatalAlertIntg = 21, /**< soc_proxy_fatal_alert_intg */
1231 kTopDarjeelingAlertIdSramCtrlRetAonFatalError = 22, /**< sram_ctrl_ret_aon_fatal_error */
1232 kTopDarjeelingAlertIdRvDmFatalFault = 23, /**< rv_dm_fatal_fault */
1233 kTopDarjeelingAlertIdRvPlicFatalFault = 24, /**< rv_plic_fatal_fault */
1234 kTopDarjeelingAlertIdAesRecovCtrlUpdateErr = 25, /**< aes_recov_ctrl_update_err */
1235 kTopDarjeelingAlertIdAesFatalFault = 26, /**< aes_fatal_fault */
1236 kTopDarjeelingAlertIdHmacFatalFault = 27, /**< hmac_fatal_fault */
1237 kTopDarjeelingAlertIdKmacRecovOperationErr = 28, /**< kmac_recov_operation_err */
1238 kTopDarjeelingAlertIdKmacFatalFaultErr = 29, /**< kmac_fatal_fault_err */
1239 kTopDarjeelingAlertIdOtbnFatal = 30, /**< otbn_fatal */
1240 kTopDarjeelingAlertIdOtbnRecov = 31, /**< otbn_recov */
1241 kTopDarjeelingAlertIdKeymgrDpeRecovOperationErr = 32, /**< keymgr_dpe_recov_operation_err */
1242 kTopDarjeelingAlertIdKeymgrDpeFatalFaultErr = 33, /**< keymgr_dpe_fatal_fault_err */
1243 kTopDarjeelingAlertIdCsrngRecovAlert = 34, /**< csrng_recov_alert */
1244 kTopDarjeelingAlertIdCsrngFatalAlert = 35, /**< csrng_fatal_alert */
1245 kTopDarjeelingAlertIdEntropySrcRecovAlert = 36, /**< entropy_src_recov_alert */
1246 kTopDarjeelingAlertIdEntropySrcFatalAlert = 37, /**< entropy_src_fatal_alert */
1247 kTopDarjeelingAlertIdEdn0RecovAlert = 38, /**< edn0_recov_alert */
1248 kTopDarjeelingAlertIdEdn0FatalAlert = 39, /**< edn0_fatal_alert */
1249 kTopDarjeelingAlertIdEdn1RecovAlert = 40, /**< edn1_recov_alert */
1250 kTopDarjeelingAlertIdEdn1FatalAlert = 41, /**< edn1_fatal_alert */
1251 kTopDarjeelingAlertIdSramCtrlMainFatalError = 42, /**< sram_ctrl_main_fatal_error */
1252 kTopDarjeelingAlertIdSramCtrlMboxFatalError = 43, /**< sram_ctrl_mbox_fatal_error */
1253 kTopDarjeelingAlertIdRomCtrl0Fatal = 44, /**< rom_ctrl0_fatal */
1254 kTopDarjeelingAlertIdRomCtrl1Fatal = 45, /**< rom_ctrl1_fatal */
1255 kTopDarjeelingAlertIdDmaFatalFault = 46, /**< dma_fatal_fault */
1256 kTopDarjeelingAlertIdMbx0FatalFault = 47, /**< mbx0_fatal_fault */
1257 kTopDarjeelingAlertIdMbx0RecovFault = 48, /**< mbx0_recov_fault */
1258 kTopDarjeelingAlertIdMbx1FatalFault = 49, /**< mbx1_fatal_fault */
1259 kTopDarjeelingAlertIdMbx1RecovFault = 50, /**< mbx1_recov_fault */
1260 kTopDarjeelingAlertIdMbx2FatalFault = 51, /**< mbx2_fatal_fault */
1261 kTopDarjeelingAlertIdMbx2RecovFault = 52, /**< mbx2_recov_fault */
1262 kTopDarjeelingAlertIdMbx3FatalFault = 53, /**< mbx3_fatal_fault */
1263 kTopDarjeelingAlertIdMbx3RecovFault = 54, /**< mbx3_recov_fault */
1264 kTopDarjeelingAlertIdMbx4FatalFault = 55, /**< mbx4_fatal_fault */
1265 kTopDarjeelingAlertIdMbx4RecovFault = 56, /**< mbx4_recov_fault */
1266 kTopDarjeelingAlertIdMbx5FatalFault = 57, /**< mbx5_fatal_fault */
1267 kTopDarjeelingAlertIdMbx5RecovFault = 58, /**< mbx5_recov_fault */
1268 kTopDarjeelingAlertIdMbx6FatalFault = 59, /**< mbx6_fatal_fault */
1269 kTopDarjeelingAlertIdMbx6RecovFault = 60, /**< mbx6_recov_fault */
1270 kTopDarjeelingAlertIdMbxJtagFatalFault = 61, /**< mbx_jtag_fatal_fault */
1271 kTopDarjeelingAlertIdMbxJtagRecovFault = 62, /**< mbx_jtag_recov_fault */
1272 kTopDarjeelingAlertIdMbxPcie0FatalFault = 63, /**< mbx_pcie0_fatal_fault */
1273 kTopDarjeelingAlertIdMbxPcie0RecovFault = 64, /**< mbx_pcie0_recov_fault */
1274 kTopDarjeelingAlertIdMbxPcie1FatalFault = 65, /**< mbx_pcie1_fatal_fault */
1275 kTopDarjeelingAlertIdMbxPcie1RecovFault = 66, /**< mbx_pcie1_recov_fault */
1276 kTopDarjeelingAlertIdSocDbgCtrlFatalFault = 67, /**< soc_dbg_ctrl_fatal_fault */
1277 kTopDarjeelingAlertIdSocDbgCtrlRecovCtrlUpdateErr = 68, /**< soc_dbg_ctrl_recov_ctrl_update_err */
1278 kTopDarjeelingAlertIdRaclCtrlFatalFault = 69, /**< racl_ctrl_fatal_fault */
1279 kTopDarjeelingAlertIdRaclCtrlRecovCtrlUpdateErr = 70, /**< racl_ctrl_recov_ctrl_update_err */
1280 kTopDarjeelingAlertIdAcRangeCheckRecovCtrlUpdateErr = 71, /**< ac_range_check_recov_ctrl_update_err */
1281 kTopDarjeelingAlertIdAcRangeCheckFatalFault = 72, /**< ac_range_check_fatal_fault */
1282 kTopDarjeelingAlertIdRvCoreIbexFatalSwErr = 73, /**< rv_core_ibex_fatal_sw_err */
1283 kTopDarjeelingAlertIdRvCoreIbexRecovSwErr = 74, /**< rv_core_ibex_recov_sw_err */
1284 kTopDarjeelingAlertIdRvCoreIbexFatalHwErr = 75, /**< rv_core_ibex_fatal_hw_err */
1285 kTopDarjeelingAlertIdRvCoreIbexRecovHwErr = 76, /**< rv_core_ibex_recov_hw_err */
1286 kTopDarjeelingAlertIdLast = 76, /**< \internal The Last Valid Alert ID. */
1288
1289/**
1290 * Alert Handler Alert Source to Peripheral Map
1291 *
1292 * This array is a mapping from `top_darjeeling_alert_id_t` to
1293 * `top_darjeeling_alert_peripheral_t`.
1294 */
1296 top_darjeeling_alert_for_peripheral[77];
1297
1298#define PINMUX_MIO_PERIPH_INSEL_IDX_OFFSET 2
1299
1300// PERIPH_INSEL ranges from 0 to NUM_MIO_PADS + 2 -1}
1301// 0 and 1 are tied to value 0 and 1
1302#define NUM_MIO_PADS 12
1303#define NUM_DIO_PADS 73
1304
1305#define PINMUX_PERIPH_OUTSEL_IDX_OFFSET 3
1306
1307/**
1308 * Pinmux Peripheral Input.
1309 */
1315 kTopDarjeelingPinmuxPeripheralInLast = 3, /**< \internal Last valid peripheral input */
1317
1318/**
1319 * Pinmux MIO Input Selector.
1320 */
1322 kTopDarjeelingPinmuxInselConstantZero = 0, /**< Tie constantly to zero */
1323 kTopDarjeelingPinmuxInselConstantOne = 1, /**< Tie constantly to one */
1324 kTopDarjeelingPinmuxInselMio0 = 2, /**< MIO Pad 0 */
1325 kTopDarjeelingPinmuxInselMio1 = 3, /**< MIO Pad 1 */
1326 kTopDarjeelingPinmuxInselMio2 = 4, /**< MIO Pad 2 */
1327 kTopDarjeelingPinmuxInselMio3 = 5, /**< MIO Pad 3 */
1328 kTopDarjeelingPinmuxInselMio4 = 6, /**< MIO Pad 4 */
1329 kTopDarjeelingPinmuxInselMio5 = 7, /**< MIO Pad 5 */
1330 kTopDarjeelingPinmuxInselMio6 = 8, /**< MIO Pad 6 */
1331 kTopDarjeelingPinmuxInselMio7 = 9, /**< MIO Pad 7 */
1332 kTopDarjeelingPinmuxInselMio8 = 10, /**< MIO Pad 8 */
1333 kTopDarjeelingPinmuxInselMio9 = 11, /**< MIO Pad 9 */
1334 kTopDarjeelingPinmuxInselMio10 = 12, /**< MIO Pad 10 */
1335 kTopDarjeelingPinmuxInselMio11 = 13, /**< MIO Pad 11 */
1336 kTopDarjeelingPinmuxInselLast = 13, /**< \internal Last valid insel value */
1338
1339/**
1340 * Pinmux MIO Output.
1341 */
1343 kTopDarjeelingPinmuxMioOutMio0 = 0, /**< MIO Pad 0 */
1344 kTopDarjeelingPinmuxMioOutMio1 = 1, /**< MIO Pad 1 */
1345 kTopDarjeelingPinmuxMioOutMio2 = 2, /**< MIO Pad 2 */
1346 kTopDarjeelingPinmuxMioOutMio3 = 3, /**< MIO Pad 3 */
1347 kTopDarjeelingPinmuxMioOutMio4 = 4, /**< MIO Pad 4 */
1348 kTopDarjeelingPinmuxMioOutMio5 = 5, /**< MIO Pad 5 */
1349 kTopDarjeelingPinmuxMioOutMio6 = 6, /**< MIO Pad 6 */
1350 kTopDarjeelingPinmuxMioOutMio7 = 7, /**< MIO Pad 7 */
1351 kTopDarjeelingPinmuxMioOutMio8 = 8, /**< MIO Pad 8 */
1352 kTopDarjeelingPinmuxMioOutMio9 = 9, /**< MIO Pad 9 */
1353 kTopDarjeelingPinmuxMioOutMio10 = 10, /**< MIO Pad 10 */
1354 kTopDarjeelingPinmuxMioOutMio11 = 11, /**< MIO Pad 11 */
1355 kTopDarjeelingPinmuxMioOutLast = 11, /**< \internal Last valid mio output */
1357
1358/**
1359 * Pinmux Peripheral Output Selector.
1360 */
1362 kTopDarjeelingPinmuxOutselConstantZero = 0, /**< Tie constantly to zero */
1363 kTopDarjeelingPinmuxOutselConstantOne = 1, /**< Tie constantly to one */
1364 kTopDarjeelingPinmuxOutselConstantHighZ = 2, /**< Tie constantly to high-Z */
1365 kTopDarjeelingPinmuxOutselSocProxySocGpo12 = 3, /**< Peripheral Output 0 */
1366 kTopDarjeelingPinmuxOutselSocProxySocGpo13 = 4, /**< Peripheral Output 1 */
1367 kTopDarjeelingPinmuxOutselSocProxySocGpo14 = 5, /**< Peripheral Output 2 */
1368 kTopDarjeelingPinmuxOutselSocProxySocGpo15 = 6, /**< Peripheral Output 3 */
1369 kTopDarjeelingPinmuxOutselOtpMacroTest0 = 7, /**< Peripheral Output 4 */
1370 kTopDarjeelingPinmuxOutselLast = 7, /**< \internal Last valid outsel value */
1372
1373/**
1374 * Dedicated Pad Selects
1375 */
1377 kTopDarjeelingDirectPadsSpiHost0Sd0 = 0, /**< */
1378 kTopDarjeelingDirectPadsSpiHost0Sd1 = 1, /**< */
1379 kTopDarjeelingDirectPadsSpiHost0Sd2 = 2, /**< */
1380 kTopDarjeelingDirectPadsSpiHost0Sd3 = 3, /**< */
1381 kTopDarjeelingDirectPadsSpiDeviceSd0 = 4, /**< */
1382 kTopDarjeelingDirectPadsSpiDeviceSd1 = 5, /**< */
1383 kTopDarjeelingDirectPadsSpiDeviceSd2 = 6, /**< */
1384 kTopDarjeelingDirectPadsSpiDeviceSd3 = 7, /**< */
1385 kTopDarjeelingDirectPadsI2c0Scl = 8, /**< */
1386 kTopDarjeelingDirectPadsI2c0Sda = 9, /**< */
1387 kTopDarjeelingDirectPadsGpioGpio0 = 10, /**< */
1388 kTopDarjeelingDirectPadsGpioGpio1 = 11, /**< */
1389 kTopDarjeelingDirectPadsGpioGpio2 = 12, /**< */
1390 kTopDarjeelingDirectPadsGpioGpio3 = 13, /**< */
1391 kTopDarjeelingDirectPadsGpioGpio4 = 14, /**< */
1392 kTopDarjeelingDirectPadsGpioGpio5 = 15, /**< */
1393 kTopDarjeelingDirectPadsGpioGpio6 = 16, /**< */
1394 kTopDarjeelingDirectPadsGpioGpio7 = 17, /**< */
1395 kTopDarjeelingDirectPadsGpioGpio8 = 18, /**< */
1396 kTopDarjeelingDirectPadsGpioGpio9 = 19, /**< */
1397 kTopDarjeelingDirectPadsGpioGpio10 = 20, /**< */
1398 kTopDarjeelingDirectPadsGpioGpio11 = 21, /**< */
1399 kTopDarjeelingDirectPadsGpioGpio12 = 22, /**< */
1400 kTopDarjeelingDirectPadsGpioGpio13 = 23, /**< */
1401 kTopDarjeelingDirectPadsGpioGpio14 = 24, /**< */
1402 kTopDarjeelingDirectPadsGpioGpio15 = 25, /**< */
1403 kTopDarjeelingDirectPadsGpioGpio16 = 26, /**< */
1404 kTopDarjeelingDirectPadsGpioGpio17 = 27, /**< */
1405 kTopDarjeelingDirectPadsGpioGpio18 = 28, /**< */
1406 kTopDarjeelingDirectPadsGpioGpio19 = 29, /**< */
1407 kTopDarjeelingDirectPadsGpioGpio20 = 30, /**< */
1408 kTopDarjeelingDirectPadsGpioGpio21 = 31, /**< */
1409 kTopDarjeelingDirectPadsGpioGpio22 = 32, /**< */
1410 kTopDarjeelingDirectPadsGpioGpio23 = 33, /**< */
1411 kTopDarjeelingDirectPadsGpioGpio24 = 34, /**< */
1412 kTopDarjeelingDirectPadsGpioGpio25 = 35, /**< */
1413 kTopDarjeelingDirectPadsGpioGpio26 = 36, /**< */
1414 kTopDarjeelingDirectPadsGpioGpio27 = 37, /**< */
1415 kTopDarjeelingDirectPadsGpioGpio28 = 38, /**< */
1416 kTopDarjeelingDirectPadsGpioGpio29 = 39, /**< */
1417 kTopDarjeelingDirectPadsGpioGpio30 = 40, /**< */
1418 kTopDarjeelingDirectPadsGpioGpio31 = 41, /**< */
1419 kTopDarjeelingDirectPadsSpiDeviceSck = 42, /**< */
1420 kTopDarjeelingDirectPadsSpiDeviceCsb = 43, /**< */
1421 kTopDarjeelingDirectPadsSpiDeviceTpmCsb = 44, /**< */
1422 kTopDarjeelingDirectPadsUart0Rx = 45, /**< */
1423 kTopDarjeelingDirectPadsSocProxySocGpi0 = 46, /**< */
1424 kTopDarjeelingDirectPadsSocProxySocGpi1 = 47, /**< */
1425 kTopDarjeelingDirectPadsSocProxySocGpi2 = 48, /**< */
1426 kTopDarjeelingDirectPadsSocProxySocGpi3 = 49, /**< */
1427 kTopDarjeelingDirectPadsSocProxySocGpi4 = 50, /**< */
1428 kTopDarjeelingDirectPadsSocProxySocGpi5 = 51, /**< */
1429 kTopDarjeelingDirectPadsSocProxySocGpi6 = 52, /**< */
1430 kTopDarjeelingDirectPadsSocProxySocGpi7 = 53, /**< */
1431 kTopDarjeelingDirectPadsSocProxySocGpi8 = 54, /**< */
1432 kTopDarjeelingDirectPadsSocProxySocGpi9 = 55, /**< */
1433 kTopDarjeelingDirectPadsSocProxySocGpi10 = 56, /**< */
1434 kTopDarjeelingDirectPadsSocProxySocGpi11 = 57, /**< */
1435 kTopDarjeelingDirectPadsSpiHost0Sck = 58, /**< */
1436 kTopDarjeelingDirectPadsSpiHost0Csb = 59, /**< */
1437 kTopDarjeelingDirectPadsUart0Tx = 60, /**< */
1438 kTopDarjeelingDirectPadsSocProxySocGpo0 = 61, /**< */
1439 kTopDarjeelingDirectPadsSocProxySocGpo1 = 62, /**< */
1440 kTopDarjeelingDirectPadsSocProxySocGpo2 = 63, /**< */
1441 kTopDarjeelingDirectPadsSocProxySocGpo3 = 64, /**< */
1442 kTopDarjeelingDirectPadsSocProxySocGpo4 = 65, /**< */
1443 kTopDarjeelingDirectPadsSocProxySocGpo5 = 66, /**< */
1444 kTopDarjeelingDirectPadsSocProxySocGpo6 = 67, /**< */
1445 kTopDarjeelingDirectPadsSocProxySocGpo7 = 68, /**< */
1446 kTopDarjeelingDirectPadsSocProxySocGpo8 = 69, /**< */
1447 kTopDarjeelingDirectPadsSocProxySocGpo9 = 70, /**< */
1448 kTopDarjeelingDirectPadsSocProxySocGpo10 = 71, /**< */
1449 kTopDarjeelingDirectPadsSocProxySocGpo11 = 72, /**< */
1450 kTopDarjeelingDirectPadsLast = 72, /**< \internal Last valid direct pad */
1452
1453/**
1454 * Muxed Pad Selects
1455 */
1457 kTopDarjeelingMuxedPadsMio0 = 0, /**< */
1458 kTopDarjeelingMuxedPadsMio1 = 1, /**< */
1459 kTopDarjeelingMuxedPadsMio2 = 2, /**< */
1460 kTopDarjeelingMuxedPadsMio3 = 3, /**< */
1461 kTopDarjeelingMuxedPadsMio4 = 4, /**< */
1462 kTopDarjeelingMuxedPadsMio5 = 5, /**< */
1463 kTopDarjeelingMuxedPadsMio6 = 6, /**< */
1464 kTopDarjeelingMuxedPadsMio7 = 7, /**< */
1465 kTopDarjeelingMuxedPadsMio8 = 8, /**< */
1466 kTopDarjeelingMuxedPadsMio9 = 9, /**< */
1467 kTopDarjeelingMuxedPadsMio10 = 10, /**< */
1468 kTopDarjeelingMuxedPadsMio11 = 11, /**< */
1469 kTopDarjeelingMuxedPadsLast = 11, /**< \internal Last valid muxed pad */
1471
1472/**
1473 * Power Manager Wakeup Signals
1474 */
1476 kTopDarjeelingPowerManagerWakeUpsPinmuxAonPinWkupReq = 0, /**< */
1477 kTopDarjeelingPowerManagerWakeUpsAonTimerAonWkupReq = 1, /**< */
1478 kTopDarjeelingPowerManagerWakeUpsSocProxyWkupExternalReq = 2, /**< */
1479 kTopDarjeelingPowerManagerWakeUpsLast = 2, /**< \internal Last valid pwrmgr wakeup signal */
1481
1482/**
1483 * Reset Manager Software Controlled Resets
1484 */
1486 kTopDarjeelingResetManagerSwResetsSpiDevice = 0, /**< */
1487 kTopDarjeelingResetManagerSwResetsSpiHost0 = 1, /**< */
1488 kTopDarjeelingResetManagerSwResetsI2c0 = 2, /**< */
1489 kTopDarjeelingResetManagerSwResetsLast = 2, /**< \internal Last valid rstmgr software reset request */
1491
1492/**
1493 * Power Manager Reset Request Signals
1494 */
1496 kTopDarjeelingPowerManagerResetRequestsAonTimerAonAonTimerRstReq = 0, /**< */
1497 kTopDarjeelingPowerManagerResetRequestsSocProxyRstReqExternal = 1, /**< */
1498 kTopDarjeelingPowerManagerResetRequestsLast = 1, /**< \internal Last valid pwrmgr reset_request signal */
1500
1501/**
1502 * Clock Manager Software-Controlled ("Gated") Clocks.
1503 *
1504 * The Software has full control over these clocks.
1505 */
1507 kTopDarjeelingGateableClocksIoPeri = 0, /**< Clock clk_io_peri in group peri */
1508 kTopDarjeelingGateableClocksLast = 0, /**< \internal Last Valid Gateable Clock */
1510
1511/**
1512 * Clock Manager Software-Hinted Clocks.
1513 *
1514 * The Software has partial control over these clocks. It can ask them to stop,
1515 * but the clock manager is in control of whether the clock actually is stopped.
1516 */
1518 kTopDarjeelingHintableClocksMainAes = 0, /**< Clock clk_main_aes in group trans */
1519 kTopDarjeelingHintableClocksMainHmac = 1, /**< Clock clk_main_hmac in group trans */
1520 kTopDarjeelingHintableClocksMainKmac = 2, /**< Clock clk_main_kmac in group trans */
1521 kTopDarjeelingHintableClocksMainOtbn = 3, /**< Clock clk_main_otbn in group trans */
1522 kTopDarjeelingHintableClocksLast = 3, /**< \internal Last Valid Hintable Clock */
1524
1525/**
1526 * MMIO Region
1527 *
1528 * MMIO region excludes any memory that is separate from the module
1529 * configuration space, i.e. ROM, main SRAM, and mbx SRAM are excluded but
1530 * retention SRAM or spi_device are included.
1531 */
1532#define TOP_DARJEELING_MMIO_BASE_ADDR 0x21100000u
1533#define TOP_DARJEELING_MMIO_SIZE_BYTES 0xF501000u
1534
1535// Header Extern Guard
1536#ifdef __cplusplus
1537} // extern "C"
1538#endif
1539
1540#endif // OPENTITAN_HW_TOP_DARJEELING_SW_AUTOGEN_TOP_DARJEELING_H_