class Driver
Defined at line 27 of file ../../src/devices/misc/drivers/compat/driver.h
Driver is the compatibility driver that loads DFv1 drivers.
Public Methods
Device & GetDevice ()
Defined at line 76 of file ../../src/devices/misc/drivers/compat/driver.h
async_dispatcher_t * dispatcher ()
These accessors are used by other classes in the compat driver so we want to expose
them publicly since they are protected in DriverBase.
Defined at line 82 of file ../../src/devices/misc/drivers/compat/driver.h
const async_dispatcher_t * dispatcher ()
Defined at line 83 of file ../../src/devices/misc/drivers/compat/driver.h
const fdf::Namespace & driver_namespace ()
Defined at line 84 of file ../../src/devices/misc/drivers/compat/driver.h
fdf::OutgoingDirectory & outgoing ()
Defined at line 85 of file ../../src/devices/misc/drivers/compat/driver.h
uint32_t GetNextDeviceId ()
Defined at line 87 of file ../../src/devices/misc/drivers/compat/driver.h
const std::string & driver_path ()
Defined at line 89 of file ../../src/devices/misc/drivers/compat/driver.h
fuchsia_system_state::wire::SystemPowerState system_state ()
Defined at line 91 of file ../../src/devices/misc/drivers/compat/driver.h
bool stop_triggered ()
Defined at line 93 of file ../../src/devices/misc/drivers/compat/driver.h
const fdf::ServiceValidator & service_validator ()
Defined at line 95 of file ../../src/devices/misc/drivers/compat/driver.h
void Driver (fdf::DriverStartArgs start_args, zx::vmo config_vmo, fdf::UnownedSynchronizedDispatcher driver_dispatcher, device_t device, const zx_protocol_device_t * ops, std::string_view driver_path)
Defined at line 325 of file ../../src/devices/misc/drivers/compat/driver.cc
void ~Driver ()
Defined at line 340 of file ../../src/devices/misc/drivers/compat/driver.cc
void Start (fdf::StartCompleter completer)
Defined at line 351 of file ../../src/devices/misc/drivers/compat/driver.cc
void PrepareStop (fdf::PrepareStopCompleter completer)
Defined at line 584 of file ../../src/devices/misc/drivers/compat/driver.cc
void * Context ()
Returns the context that DFv1 driver provided.
Defined at line 774 of file ../../src/devices/misc/drivers/compat/driver.cc
zx::result<zx::vmo> LoadFirmware (Device * device, const char * filename, size_t * size)
Defined at line 776 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_handle_t GetInfoResource ()
Defined at line 539 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_handle_t GetIommuResource ()
Defined at line 439 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_handle_t GetMmioResource ()
Defined at line 403 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_handle_t GetMsiResource ()
Defined at line 415 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_handle_t GetPowerResource ()
Defined at line 427 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_handle_t GetIoportResource ()
Defined at line 451 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_handle_t GetIrqResource ()
Defined at line 463 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_handle_t GetSmcResource ()
Defined at line 475 of file ../../src/devices/misc/drivers/compat/driver.cc
zx::vmo & GetConfigVmo ()
Defined at line 487 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_status_t GetProperties (device_props_args_t * out_args, const std::string & parent_node_name)
Defined at line 489 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_status_t AddDevice (Device * parent, device_add_args_t * args, zx_device_t ** out)
# Threading notes
If this method is not called from a task running on |dispatcher|,
this method will schedule its work on that dispatcher then block until it
is done.
Defined at line 804 of file ../../src/devices/misc/drivers/compat/driver.cc
zx::result<> SetProfileByRole (zx::unowned_thread thread, std::string_view role)
Defined at line 819 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_status_t GetProtocol (uint32_t proto_id, void * out)
Defined at line 848 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_status_t GetFragmentProtocol (const char * fragment, uint32_t proto_id, void * out)
Defined at line 886 of file ../../src/devices/misc/drivers/compat/driver.cc
void CompleteStart (zx::result<> result)
Defined at line 923 of file ../../src/devices/misc/drivers/compat/driver.cc