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.
Protected Members
unique_ptr device_
Public Methods
void AmlSpiDriver ()
Defined at line 271 of file ../../src/devices/spi/drivers/aml-spi/aml-spi.h
void Stop (fdf::StopCompleter completer)
Defined at line 275 of file ../../src/devices/spi/drivers/aml-spi/aml-spi.h
void ~AmlSpiDriver ()
Defined at line 283 of file ../../src/devices/spi/drivers/aml-spi/aml-spi.h
void Start (fdf::DriverContext context, 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 1209 of file ../../src/devices/spi/drivers/aml-spi/aml-spi.cc