class FakeMmioConfig

Defined at line 25 of file ../../src/devices/pci/drivers/pci/test/fakes/fake_config.h

For most operations a real MmioConfig is fine for working with

a fake ecam. However, for BAR probing we need to mock the side

effects of the writes that are used to determine the size of

the BAR. Fortunately, these writes are always UINT32_MAX and can

be caught because they are not otherwise valid. If necessary, this

class can be extended to handle other side-effects as well.

Public Methods

void FakeMmioConfig (fuchsia_hardware_pci::wire::Bdf bdf, fdf::MmioView && view)

Defined at line 27 of file ../../src/devices/pci/drivers/pci/test/fakes/fake_config.h

void MockBarProbeSideEffects (uint32_t bar_id)

Defined at line 29 of file ../../src/devices/pci/drivers/pci/test/fakes/fake_config.h

void Write (const PciReg32 addr, uint32_t val)

Defined at line 61 of file ../../src/devices/pci/drivers/pci/test/fakes/fake_config.h

const char * type ()

Defined at line 87 of file ../../src/devices/pci/drivers/pci/test/fakes/fake_config.h