chipsec.hal.mmio moduleΒΆ
Access to MMIO (Memory Mapped IO) BARs and Memory-Mapped PCI Configuration Space (MMCFG)
- usage:
>>> read_MMIO_reg(bar_base, 0x0, 4) >>> write_MMIO_reg(bar_base, 0x0, 0xFFFFFFFF, 4) >>> read_MMIO(bar_base, 0x1000) >>> dump_MMIO(bar_base, 0x1000)
Access MMIO by BAR name:
>>> read_MMIO_BAR_reg('MCHBAR', 0x0, 4) >>> write_MMIO_BAR_reg('MCHBAR', 0x0, 0xFFFFFFFF, 4) >>> get_MMIO_BAR_base_address('MCHBAR') >>> is_MMIO_BAR_enabled('MCHBAR') >>> is_MMIO_BAR_programmed('MCHBAR') >>> dump_MMIO_BAR('MCHBAR') >>> list_MMIO_BARs()
Access Memory Mapped Config Space:
>>> get_MMCFG_base_address() >>> read_mmcfg_reg(0, 0, 0, 0x10, 4) >>> read_mmcfg_reg(0, 0, 0, 0x10, 4, 0xFFFFFFFF)