class PcirootInspect

Defined at line 16 of file ../../src/devices/pci/lib/pci/include/lib/pci/pciroot.h

This class is a mix-in to provide an interface to inspect for Pciroot.

Public Members

static const size_t kMaxRegionStringSize
static const size_t kMaxSizeStringSize
static const char[] kBoardMmioName
static const char[] kBoardIoName
static const char[] kAllocatedMmioName
static const char[] kAllocatedIoName

Public Methods

inspect::Inspector & inspect ()

Defined at line 26 of file ../../src/devices/pci/lib/pci/include/lib/pci/pciroot.h

Protected Methods

void InitializeInspect (PciRootHost * host)

Defined at line 29 of file ../../src/devices/pci/lib/pci/include/lib/pci/pciroot.h

void AddBoardRegionsToInspect (PciRootHost * host)

Defined at line 41 of file ../../src/devices/pci/lib/pci/include/lib/pci/pciroot.h

void AddAllocatedIoRegion (const ralloc_region_t region)

Defined at line 55 of file ../../src/devices/pci/lib/pci/include/lib/pci/pciroot.h

void AddAllocatedMmioRegion (const ralloc_region_t region)

Defined at line 60 of file ../../src/devices/pci/lib/pci/include/lib/pci/pciroot.h

void AddBoardIoRegion (const ralloc_region_t * region)

Defined at line 65 of file ../../src/devices/pci/lib/pci/include/lib/pci/pciroot.h

void AddBoardMmioRegion (const ralloc_region_t * region)

Defined at line 70 of file ../../src/devices/pci/lib/pci/include/lib/pci/pciroot.h

void AddRegionToInspect (inspect::Node & parent, size_t index, const ralloc_region_t * region)

This does the brunt of the work to give us inspect data that looks similar to:

root:

Allocated IO Regions:

[0x700, 0x740) = 0x40

..

Allocated MMIO Regions:

[0xfd000000, 0xfe000000) = 0x1000000

..

Board MMIO Regions:

[0, 0x60) = 0x60

..

Board MMIO Regions:

[0x280000000, 0xa80000000) = 0x800000000

Defined at line 88 of file ../../src/devices/pci/lib/pci/include/lib/pci/pciroot.h