class MmioConfig

Defined at line 297 of file ../../src/devices/pci/lib/cpp/config.h

MMIO config is the standard method for accessing modern pci configuration space.

A device's configuration space is mapped to a specific place in a given pci root's

ecam and can be directly accessed with standard IO operations.

Public Methods

zx::result<std::unique_ptr<Config>> Create (fuchsia_hardware_pci::wire::Bdf bdf, const fdf::MmioBuffer & ecam, uint8_t start_bus, uint8_t end_bus, bool is_extended)

Defined at line 299 of file ../../src/devices/pci/lib/cpp/config.h

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

Defined at line 313 of file ../../src/devices/pci/lib/cpp/config.h

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

Defined at line 315 of file ../../src/devices/pci/lib/cpp/config.h

uint8_t Read (const PciReg8 addr)

Defined at line 318 of file ../../src/devices/pci/lib/cpp/config.h

uint16_t Read (const PciReg16 addr)

Defined at line 319 of file ../../src/devices/pci/lib/cpp/config.h

uint32_t Read (const PciReg32 addr)

Defined at line 320 of file ../../src/devices/pci/lib/cpp/config.h

void Write (PciReg8 addr, uint8_t val)

Defined at line 321 of file ../../src/devices/pci/lib/cpp/config.h

void Write (PciReg16 addr, uint16_t val)

Defined at line 322 of file ../../src/devices/pci/lib/cpp/config.h

void Write (PciReg32 addr, uint32_t val)

Defined at line 323 of file ../../src/devices/pci/lib/cpp/config.h

const char * type ()

Defined at line 324 of file ../../src/devices/pci/lib/cpp/config.h

zx::result<fdf::MmioView> get_view ()

Defined at line 325 of file ../../src/devices/pci/lib/cpp/config.h