class PowerDomain

Defined at line 46 of file ../../src/devices/power/drivers/power/power.h

Each power domain is modelled to be a device and this device class talks to a driver that

implements ZX_PROTOCOL_POWER_IMPL, passing in the index of this power domain. For each dependent

composite device of a PowerDomain, a PowerDomainFragmentChild is created.

Public Methods

void PowerDomain (zx_device_t * parent, uint32_t index, const ddk::PowerImplProtocolClient & power_impl, fidl::ClientEnd<fuchsia_hardware_power::Device> parent_power, uint32_t min_voltage, uint32_t max_voltage, bool fixed)

Defined at line 139 of file ../../src/devices/power/drivers/power/power.h

zx_status_t Create (void * ctx, zx_device_t * parent, const ddk::PowerImplProtocolClient & power_impl, const fuchsia_hardware_power::Domain & domain_info)

Defined at line 356 of file ../../src/devices/power/drivers/power/power.cc

void DdkRelease ()

Defined at line 306 of file ../../src/devices/power/drivers/power/power.cc

zx_status_t RegisterPowerDomain (uint64_t fragment_device_id, uint32_t min_needed_voltage_uV, uint32_t max_supported_voltage_uV)

Defined at line 172 of file ../../src/devices/power/drivers/power/power.cc

zx_status_t UnregisterPowerDomain (uint64_t fragment_device_id)

Defined at line 212 of file ../../src/devices/power/drivers/power/power.cc

zx_status_t GetPowerDomainStatus (uint64_t fragment_device_id, power_domain_status_t * out_status)

Defined at line 246 of file ../../src/devices/power/drivers/power/power.cc

zx_status_t GetSupportedVoltageRange (uint64_t fragment_device_id, uint32_t * min_voltage, uint32_t * max_voltage)

Defined at line 251 of file ../../src/devices/power/drivers/power/power.cc

zx_status_t RequestVoltage (uint64_t fragment_device_id, uint32_t voltage, uint32_t * actual_voltage)

Defined at line 261 of file ../../src/devices/power/drivers/power/power.cc

zx_status_t GetCurrentVoltage (uint64_t fragment_device_id, uint32_t index, uint32_t * current_voltage)

Defined at line 288 of file ../../src/devices/power/drivers/power/power.cc

zx_status_t WritePmicCtrlReg (uint64_t fragment_device_id, uint32_t reg_addr, uint32_t value)

Defined at line 294 of file ../../src/devices/power/drivers/power/power.cc

zx_status_t ReadPmicCtrlReg (uint64_t fragment_device_id, uint32_t reg_addr, uint32_t * out_value)

Defined at line 300 of file ../../src/devices/power/drivers/power/power.cc

uint32_t GetDependentCount ()

Defined at line 133 of file ../../src/devices/power/drivers/power/power.cc

fit::function<void (fidl::ServerEnd<fuchsia_hardware_power::Device>)> GetHandler ()

Defined at line 308 of file ../../src/devices/power/drivers/power/power.cc

zx_status_t Serve (fidl::ServerEnd<fuchsia_io::Directory> server_end)

Defined at line 336 of file ../../src/devices/power/drivers/power/power.cc