class MmioConfig

Defined at line 256 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 (pci_bdf_t bdf, const fdf::MmioBuffer & ecam, uint8_t start_bus, uint8_t end_bus, bool is_extended)

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

void MmioConfig (pci_bdf_t bdf, const fdf::MmioView & view)

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

void MmioConfig (const fdf::MmioView & view, pci_bdf_t bdf)

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

uint8_t Read (const PciReg8 addr)

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

uint16_t Read (const PciReg16 addr)

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

uint32_t Read (const PciReg32 addr)

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

void Write (PciReg8 addr, uint8_t val)

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

void Write (PciReg16 addr, uint16_t val)

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

void Write (PciReg32 addr, uint32_t val)

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

const char * type ()

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

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

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