Module mmio

Module mmio 

Source
Expand description

MMIO access helpers for RISC-V.

RISC-V does not currently require the AArch64/HVF-specific single-instruction workaround. Keep this minimal and use volatile pointer accesses.

Functions§

read8
Read an 8-bit value from an MMIO address.
read16
Read a 16-bit value from an MMIO address.
read32
Read a 32-bit value from an MMIO address.
read64
Read a 64-bit value from an MMIO address.
write8
Write an 8-bit value to an MMIO address.
write16
Write a 16-bit value to an MMIO address.
write32
Write a 32-bit value to an MMIO address.
write64
Write a 64-bit value to an MMIO address.