class AmlSpiDriver

Defined at line 269 of file ../../src/devices/spi/drivers/aml-spi/aml-spi.h

AmlSpiDriver is a helper class that is responsible for acquiring resources on behalf of AmlSpi so

that it can support RAII in DFv2. It implements the driver Start hook, and forwards Stop to the

AmlSpi instance.

Public Methods

void AmlSpiDriver (fdf::DriverStartArgs start_args, fdf::UnownedSynchronizedDispatcher dispatcher)

Defined at line 271 of file ../../src/devices/spi/drivers/aml-spi/aml-spi.h

void PrepareStop (fdf::PrepareStopCompleter completer)

Defined at line 277 of file ../../src/devices/spi/drivers/aml-spi/aml-spi.h

void Stop ()

Defined at line 284 of file ../../src/devices/spi/drivers/aml-spi/aml-spi.h

void Start (fdf::StartCompleter completer)

Defined at line 833 of file ../../src/devices/spi/drivers/aml-spi/aml-spi.cc

Protected Methods

fpromise::promise<fdf::MmioBuffer, zx_status_t> MapMmio (fidl::WireClient<fuchsia_hardware_platform_device::Device> & pdev, uint32_t mmio_id)

MapMmio can be overridden by a test in order to provide an fdf::MmioBuffer backed by a fake.

Defined at line 1206 of file ../../src/devices/spi/drivers/aml-spi/aml-spi.cc