Expand description
This file contains enums and consts for use within the Rust codebase.
These definitions are for information that depends on the top-specific chip configuration, which includes:
- Device Memory Information (for Peripherals and Memory)
- PLIC Interrupt ID Names and Source Mappings
- Alert ID Names and Source Mappings
- Pinmux Pin/Select Names
- Power Manager Wakeups
Enums§
- AlertId
- Alert Handler Alert Source.
- Alert
Peripheral - Alert Handler Source Peripheral.
- Direct
Pads - Dedicated Pad Selects
- Gateable
Clocks - Clock Manager Software-Controlled (“Gated”) Clocks.
- Hintable
Clocks - Clock Manager Software-Hinted Clocks.
- Muxed
Pads - Muxed Pad Selects
- Pinmux
Insel - Pinmux MIO Input Selector.
- Pinmux
MioOut - Pinmux MIO Output.
- Pinmux
Outsel - Pinmux Peripheral Output Selector.
- Pinmux
Peripheral In - Pinmux Peripheral Input.
- Plic
IrqId - PLIC Interrupt Source.
- Plic
Peripheral - PLIC Interrupt Source Peripheral.
- Plic
Target - PLIC Interrupt Target.
- Power
Manager Reset Requests - Power Manager Reset Request Signals
- Power
Manager Wake Ups - Power Manager Wakeup Signals
- Reset
Manager SwResets - Reset Manager Software Controlled Resets
Constants§
- ADC_
CTRL_ AON_ BASE_ ADDR - Peripheral base address for adc_ctrl_aon in top earlgrey.
- ADC_
CTRL_ AON_ SIZE_ BYTES - Peripheral size for adc_ctrl_aon in top earlgrey.
- AES_
BASE_ ADDR - Peripheral base address for aes in top earlgrey.
- AES_
SIZE_ BYTES - Peripheral size for aes in top earlgrey.
- ALERT_
FOR_ PERIPHERAL - Alert Handler Alert Source to Peripheral Map
- ALERT_
HANDLER_ BASE_ ADDR - Peripheral base address for alert_handler in top earlgrey.
- ALERT_
HANDLER_ SIZE_ BYTES - Peripheral size for alert_handler in top earlgrey.
- AON_
TIMER_ AON_ BASE_ ADDR - Peripheral base address for aon_timer_aon in top earlgrey.
- AON_
TIMER_ AON_ SIZE_ BYTES - Peripheral size for aon_timer_aon in top earlgrey.
- AST_
BASE_ ADDR - Peripheral base address for ast in top earlgrey.
- AST_
SIZE_ BYTES - Peripheral size for ast in top earlgrey.
- CLKMGR_
AON_ BASE_ ADDR - Peripheral base address for clkmgr_aon in top earlgrey.
- CLKMGR_
AON_ SIZE_ BYTES - Peripheral size for clkmgr_aon in top earlgrey.
- CSRNG_
BASE_ ADDR - Peripheral base address for csrng in top earlgrey.
- CSRNG_
SIZE_ BYTES - Peripheral size for csrng in top earlgrey.
- EDN0_
BASE_ ADDR - Peripheral base address for edn0 in top earlgrey.
- EDN0_
SIZE_ BYTES - Peripheral size for edn0 in top earlgrey.
- EDN1_
BASE_ ADDR - Peripheral base address for edn1 in top earlgrey.
- EDN1_
SIZE_ BYTES - Peripheral size for edn1 in top earlgrey.
- EFLASH_
BASE_ ADDR - Memory base address for eflash in top earlgrey.
- EFLASH_
SIZE_ BYTES - Memory size for eflash in top earlgrey.
- ENTROPY_
SRC_ BASE_ ADDR - Peripheral base address for entropy_src in top earlgrey.
- ENTROPY_
SRC_ SIZE_ BYTES - Peripheral size for entropy_src in top earlgrey.
- FLASH_
CTRL_ CORE_ BASE_ ADDR - Peripheral base address for core device on flash_ctrl in top earlgrey.
- FLASH_
CTRL_ CORE_ SIZE_ BYTES - Peripheral size for core device on flash_ctrl in top earlgrey.
- FLASH_
CTRL_ MEM_ BASE_ ADDR - Peripheral base address for mem device on flash_ctrl in top earlgrey.
- FLASH_
CTRL_ MEM_ SIZE_ BYTES - Peripheral size for mem device on flash_ctrl in top earlgrey.
- FLASH_
CTRL_ PRIM_ BASE_ ADDR - Peripheral base address for prim device on flash_ctrl in top earlgrey.
- FLASH_
CTRL_ PRIM_ SIZE_ BYTES - Peripheral size for prim device on flash_ctrl in top earlgrey.
- GPIO_
BASE_ ADDR - Peripheral base address for gpio in top earlgrey.
- GPIO_
SIZE_ BYTES - Peripheral size for gpio in top earlgrey.
- HMAC_
BASE_ ADDR - Peripheral base address for hmac in top earlgrey.
- HMAC_
SIZE_ BYTES - Peripheral size for hmac in top earlgrey.
- I2C0_
BASE_ ADDR - Peripheral base address for i2c0 in top earlgrey.
- I2C0_
SIZE_ BYTES - Peripheral size for i2c0 in top earlgrey.
- I2C1_
BASE_ ADDR - Peripheral base address for i2c1 in top earlgrey.
- I2C1_
SIZE_ BYTES - Peripheral size for i2c1 in top earlgrey.
- I2C2_
BASE_ ADDR - Peripheral base address for i2c2 in top earlgrey.
- I2C2_
SIZE_ BYTES - Peripheral size for i2c2 in top earlgrey.
- KEYMGR_
BASE_ ADDR - Peripheral base address for keymgr in top earlgrey.
- KEYMGR_
SIZE_ BYTES - Peripheral size for keymgr in top earlgrey.
- KMAC_
BASE_ ADDR - Peripheral base address for kmac in top earlgrey.
- KMAC_
SIZE_ BYTES - Peripheral size for kmac in top earlgrey.
- LC_
CTRL_ BASE_ ADDR - Peripheral base address for lc_ctrl in top earlgrey.
- LC_
CTRL_ SIZE_ BYTES - Peripheral size for lc_ctrl in top earlgrey.
- MMIO_
BASE_ ADDR - MMIO Region
- MMIO_
SIZE_ BYTES - NUM_
DIO_ PADS - NUM_
MIO_ PADS - OTBN_
BASE_ ADDR - Peripheral base address for otbn in top earlgrey.
- OTBN_
SIZE_ BYTES - Peripheral size for otbn in top earlgrey.
- OTP_
CTRL_ CORE_ BASE_ ADDR - Peripheral base address for core device on otp_ctrl in top earlgrey.
- OTP_
CTRL_ CORE_ SIZE_ BYTES - Peripheral size for core device on otp_ctrl in top earlgrey.
- OTP_
CTRL_ PRIM_ BASE_ ADDR - Peripheral base address for prim device on otp_ctrl in top earlgrey.
- OTP_
CTRL_ PRIM_ SIZE_ BYTES - Peripheral size for prim device on otp_ctrl in top earlgrey.
- PATTGEN_
BASE_ ADDR - Peripheral base address for pattgen in top earlgrey.
- PATTGEN_
SIZE_ BYTES - Peripheral size for pattgen in top earlgrey.
- PINMUX_
AON_ BASE_ ADDR - Peripheral base address for pinmux_aon in top earlgrey.
- PINMUX_
AON_ SIZE_ BYTES - Peripheral size for pinmux_aon in top earlgrey.
- PINMUX_
MIO_ PERIPH_ INSEL_ IDX_ OFFSET - PINMUX_
PERIPH_ OUTSEL_ IDX_ OFFSET - PLIC_
INTERRUPT_ FOR_ PERIPHERAL - PLIC Interrupt Source to Peripheral Map
- PWM_
AON_ BASE_ ADDR - Peripheral base address for pwm_aon in top earlgrey.
- PWM_
AON_ SIZE_ BYTES - Peripheral size for pwm_aon in top earlgrey.
- PWRMGR_
AON_ BASE_ ADDR - Peripheral base address for pwrmgr_aon in top earlgrey.
- PWRMGR_
AON_ SIZE_ BYTES - Peripheral size for pwrmgr_aon in top earlgrey.
- RAM_
MAIN_ BASE_ ADDR - Memory base address for ram_main in top earlgrey.
- RAM_
MAIN_ SIZE_ BYTES - Memory size for ram_main in top earlgrey.
- RAM_
RET_ AON_ BASE_ ADDR - Memory base address for ram_ret_aon in top earlgrey.
- RAM_
RET_ AON_ SIZE_ BYTES - Memory size for ram_ret_aon in top earlgrey.
- ROM_
BASE_ ADDR - Memory base address for rom in top earlgrey.
- ROM_
CTRL_ REGS_ BASE_ ADDR - Peripheral base address for regs device on rom_ctrl in top earlgrey.
- ROM_
CTRL_ REGS_ SIZE_ BYTES - Peripheral size for regs device on rom_ctrl in top earlgrey.
- ROM_
CTRL_ ROM_ BASE_ ADDR - Peripheral base address for rom device on rom_ctrl in top earlgrey.
- ROM_
CTRL_ ROM_ SIZE_ BYTES - Peripheral size for rom device on rom_ctrl in top earlgrey.
- ROM_
SIZE_ BYTES - Memory size for rom in top earlgrey.
- RSTMGR_
AON_ BASE_ ADDR - Peripheral base address for rstmgr_aon in top earlgrey.
- RSTMGR_
AON_ SIZE_ BYTES - Peripheral size for rstmgr_aon in top earlgrey.
- RV_
CORE_ IBEX_ CFG_ BASE_ ADDR - Peripheral base address for cfg device on rv_core_ibex in top earlgrey.
- RV_
CORE_ IBEX_ CFG_ SIZE_ BYTES - Peripheral size for cfg device on rv_core_ibex in top earlgrey.
- RV_
DM_ MEM_ BASE_ ADDR - Peripheral base address for mem device on rv_dm in top earlgrey.
- RV_
DM_ MEM_ SIZE_ BYTES - Peripheral size for mem device on rv_dm in top earlgrey.
- RV_
DM_ REGS_ BASE_ ADDR - Peripheral base address for regs device on rv_dm in top earlgrey.
- RV_
DM_ REGS_ SIZE_ BYTES - Peripheral size for regs device on rv_dm in top earlgrey.
- RV_
PLIC_ BASE_ ADDR - Peripheral base address for rv_plic in top earlgrey.
- RV_
PLIC_ SIZE_ BYTES - Peripheral size for rv_plic in top earlgrey.
- RV_
TIMER_ BASE_ ADDR - Peripheral base address for rv_timer in top earlgrey.
- RV_
TIMER_ SIZE_ BYTES - Peripheral size for rv_timer in top earlgrey.
- SENSOR_
CTRL_ BASE_ ADDR - Peripheral base address for sensor_ctrl in top earlgrey.
- SENSOR_
CTRL_ SIZE_ BYTES - Peripheral size for sensor_ctrl in top earlgrey.
- SPI_
DEVICE_ BASE_ ADDR - Peripheral base address for spi_device in top earlgrey.
- SPI_
DEVICE_ SIZE_ BYTES - Peripheral size for spi_device in top earlgrey.
- SPI_
HOST0_ BASE_ ADDR - Peripheral base address for spi_host0 in top earlgrey.
- SPI_
HOST0_ SIZE_ BYTES - Peripheral size for spi_host0 in top earlgrey.
- SPI_
HOST1_ BASE_ ADDR - Peripheral base address for spi_host1 in top earlgrey.
- SPI_
HOST1_ SIZE_ BYTES - Peripheral size for spi_host1 in top earlgrey.
- SRAM_
CTRL_ MAIN_ RAM_ BASE_ ADDR - Peripheral base address for ram device on sram_ctrl_main in top earlgrey.
- SRAM_
CTRL_ MAIN_ RAM_ SIZE_ BYTES - Peripheral size for ram device on sram_ctrl_main in top earlgrey.
- SRAM_
CTRL_ MAIN_ REGS_ BASE_ ADDR - Peripheral base address for regs device on sram_ctrl_main in top earlgrey.
- SRAM_
CTRL_ MAIN_ REGS_ SIZE_ BYTES - Peripheral size for regs device on sram_ctrl_main in top earlgrey.
- SRAM_
CTRL_ RET_ AON_ RAM_ BASE_ ADDR - Peripheral base address for ram device on sram_ctrl_ret_aon in top earlgrey.
- SRAM_
CTRL_ RET_ AON_ RAM_ SIZE_ BYTES - Peripheral size for ram device on sram_ctrl_ret_aon in top earlgrey.
- SRAM_
CTRL_ RET_ AON_ REGS_ BASE_ ADDR - Peripheral base address for regs device on sram_ctrl_ret_aon in top earlgrey.
- SRAM_
CTRL_ RET_ AON_ REGS_ SIZE_ BYTES - Peripheral size for regs device on sram_ctrl_ret_aon in top earlgrey.
- SYSRST_
CTRL_ AON_ BASE_ ADDR - Peripheral base address for sysrst_ctrl_aon in top earlgrey.
- SYSRST_
CTRL_ AON_ SIZE_ BYTES - Peripheral size for sysrst_ctrl_aon in top earlgrey.
- UART0_
BASE_ ADDR - Peripheral base address for uart0 in top earlgrey.
- UART0_
SIZE_ BYTES - Peripheral size for uart0 in top earlgrey.
- UART1_
BASE_ ADDR - Peripheral base address for uart1 in top earlgrey.
- UART1_
SIZE_ BYTES - Peripheral size for uart1 in top earlgrey.
- UART2_
BASE_ ADDR - Peripheral base address for uart2 in top earlgrey.
- UART2_
SIZE_ BYTES - Peripheral size for uart2 in top earlgrey.
- UART3_
BASE_ ADDR - Peripheral base address for uart3 in top earlgrey.
- UART3_
SIZE_ BYTES - Peripheral size for uart3 in top earlgrey.
- USBDEV_
BASE_ ADDR - Peripheral base address for usbdev in top earlgrey.
- USBDEV_
SIZE_ BYTES - Peripheral size for usbdev in top earlgrey.