class FakeMmioConfig
Defined at line 26 of file ../../src/devices/bus/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 (pci_bdf_t bdf, fdf::MmioView && view)
Defined at line 28 of file ../../src/devices/bus/drivers/pci/test/fakes/fake_config.h
void MockBarProbeSideEffects (uint32_t bar_id)
Defined at line 29 of file ../../src/devices/bus/drivers/pci/test/fakes/fake_config.h
void Write (const PciReg32 addr, uint32_t val)
Defined at line 53 of file ../../src/devices/bus/drivers/pci/test/fakes/fake_config.h
const char * type ()
Defined at line 76 of file ../../src/devices/bus/drivers/pci/test/fakes/fake_config.h