class FakeBusDriver

Defined at line 23 of file ../../src/devices/pci/drivers/pci/test/driver/fake_bus_driver.h

Fake bus driver loaded in DriverTestRealm by pci-driver-test.

Configures a fake Quadro device and serves fuchsia.hardware.pci.Service

for driver_tests.rs.

Public Methods

zx_status_t Create (zx_device_t * parent, const char * name, uint8_t start_bus, uint8_t end_bus, bool is_extended)

Defined at line 20 of file ../../src/devices/pci/drivers/pci/test/driver/fake_bus_driver.cc

void ~FakeBusDriver ()

Defined at line 27 of file ../../src/devices/pci/drivers/pci/test/driver/fake_bus_driver.h

FakePciType0Config * GetDevice (fuchsia_hardware_pci::wire::Bdf bdf)

Defined at line 35 of file ../../src/devices/pci/drivers/pci/test/driver/fake_bus_driver.h

FakePciType1Config * GetBridge (fuchsia_hardware_pci::wire::Bdf bdf)

Defined at line 38 of file ../../src/devices/pci/drivers/pci/test/driver/fake_bus_driver.h

FakeUpstreamNode & upstream ()

Defined at line 42 of file ../../src/devices/pci/drivers/pci/test/driver/fake_bus_driver.h

FakeBus & bus ()

Defined at line 43 of file ../../src/devices/pci/drivers/pci/test/driver/fake_bus_driver.h

fuchsia_hardware_pci::wire::Bdf test_bdf ()

Defined at line 44 of file ../../src/devices/pci/drivers/pci/test/driver/fake_bus_driver.h

void DdkRelease ()

Defined at line 45 of file ../../src/devices/pci/drivers/pci/test/driver/fake_bus_driver.h

zx_status_t CreateDevice (fuchsia_hardware_pci::wire::Bdf bdf, uint8_t * base_cfg, size_t base_cfg_size, uint16_t vid, uint16_t did)

Creates a device, seeding the configuration space with a given buffer if provided.

Defined at line 51 of file ../../src/devices/pci/drivers/pci/test/driver/fake_bus_driver.cc