class PowerManagementCapability

Defined at line 70 of file ../../src/devices/pci/lib/cpp/capabilities/power_management.h

Public Members

static const zx::duration[4][4] kStateRecoveryTime

Public Methods

void PowerManagementCapability (const Config & cfg, uint8_t base)

Defined at line 95 of file ../../src/devices/pci/lib/cpp/capabilities/power_management.h

void WaitForTransitionRecovery (PowerState old_state, PowerState new_state)

Defined at line 101 of file ../../src/devices/pci/lib/cpp/capabilities/power_management.h

PowerState GetPowerState (const pci::Config & cfg)

Defined at line 106 of file ../../src/devices/pci/lib/cpp/capabilities/power_management.h

void SetPowerState (const pci::Config & cfg, PowerState new_state)

Transitions the function to |new_state|, blocking the calling thread with zx::nanosleep for

the PCIe state-transition recovery delay when required by the specification.

Defined at line 112 of file ../../src/devices/pci/lib/cpp/capabilities/power_management.h

hwreg::RegisterAddr<PmcReg> pmc ()

Defined at line 142 of file ../../src/devices/pci/lib/cpp/capabilities/power_management.h

hwreg::RegisterAddr<PmcsrReg> pmcsr ()

Defined at line 143 of file ../../src/devices/pci/lib/cpp/capabilities/power_management.h

Enumerations

enum PowerState : uint8_t
Name Value Comments
D0 0 --
D1 1 --
D2 2 --
D3 3

D3hot

Power states as defined in the spec. D3cold is considered "powered off" and

is not reflected in power states.

Defined at line 88 of file ../../src/devices/pci/lib/cpp/capabilities/power_management.h