class AmlSpiDriver

Defined at line 268 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 270 of file ../../src/devices/spi/drivers/aml-spi/aml-spi.h

void PrepareStop (fdf::PrepareStopCompleter completer)

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

void Stop ()

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

void Start (fdf::StartCompleter completer)

Defined at line 832 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 1207 of file ../../src/devices/spi/drivers/aml-spi/aml-spi.cc