Function panda_sys::memory_region_rom_device_set_romd[][src]

pub unsafe extern "C" fn memory_region_rom_device_set_romd(
    mr: *mut MemoryRegion,
    romd_mode: bool
)
Expand description

memory_region_rom_device_set_romd: enable/disable ROMD mode

Allows a ROM device (initialized with memory_region_init_rom_device() to set to ROMD mode (default) or MMIO mode. When it is in ROMD mode, the device is mapped to guest memory and satisfies read access directly. When in MMIO mode, reads are forwarded to the #MemoryRegion.read function. Writes are always handled by the #MemoryRegion.write function.

@mr: the memory region to be updated @romd_mode: %true to put the region into ROMD mode