class Client

Defined at line 18 of file ../../src/devices/lib/acpi/client.h

This class is a wrapper around the underlying FIDL ACPI protocol.

It provides helper functions to make calling common ACPI methods more ergonomic.

Public Methods

zx::result<Client> Create (zx_device_t * parent)

Connect to the ACPI FIDL server by calling ConnectServer() on the "acpi" fragment of |parent|.

Defined at line 30 of file ../../src/devices/lib/acpi/client.cc

zx::result<fidl::ClientEnd<fuchsia_hardware_acpi::Device>> Connect (zx_device_t * parent)

Connect to the ACPI FIDL server and just return the FIDL ClientEnd.

Defined at line 19 of file ../../src/devices/lib/acpi/client.cc

fidl::WireSyncClient<fuchsia_hardware_acpi::Device> & borrow ()

Borrow the underlying FIDL client.

Defined at line 30 of file ../../src/devices/lib/acpi/client.h

Client Create (fidl::WireSyncClient<fuchsia_hardware_acpi::Device> client)

Alternate constructor mainly intended for use in unit tests.

Defined at line 40 of file ../../src/devices/lib/acpi/client.cc

zx::result<Object> CallDsm (Uuid uuid, uint64_t revision, uint64_t func_index, std::optional<fuchsia_hardware_acpi::wire::Object> params)

This calls _DSM on the device with the given arguments. See

ACPI Spec 6.4, 9.1.1 "_DSM (Device Specific Method)" for more information.

Defined at line 44 of file ../../src/devices/lib/acpi/client.cc