class Driver
Defined at line 27 of file ../../src/devices/misc/drivers/compat/driver.h
Forward declare.
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 (zx::vmoconfig_vmo,fdf::UnownedSynchronizedDispatcherdriver_dispatcher,device_tdevice,const zx_protocol_device_t *ops,std::string_viewdriver_path,std::optional<std::vector<fuchsia_driver_framework::NodePropertyEntry2>>node_properties)
Defined at line 325 of file ../../src/devices/misc/drivers/compat/driver.cc
void ~Driver ()
Defined at line 337 of file ../../src/devices/misc/drivers/compat/driver.cc
void Start (fdf::DriverContext context, fdf::StartCompleter completer)
Defined at line 348 of file ../../src/devices/misc/drivers/compat/driver.cc
void Stop (fdf::StopCompleter completer)
Defined at line 602 of file ../../src/devices/misc/drivers/compat/driver.cc
void * Context ()
Returns the context that DFv1 driver provided.
Defined at line 796 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 798 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_handle_t GetInfoResource ()
Defined at line 557 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_handle_t GetIommuResource ()
Defined at line 449 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_handle_t GetMmioResource ()
Defined at line 413 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_handle_t GetMsiResource ()
Defined at line 425 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_handle_t GetPowerResource ()
Defined at line 437 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_handle_t GetIoportResource ()
Defined at line 461 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_handle_t GetIrqResource ()
Defined at line 473 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_handle_t GetSmcResource ()
Defined at line 485 of file ../../src/devices/misc/drivers/compat/driver.cc
zx::vmo & GetConfigVmo ()
Defined at line 497 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 499 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 826 of file ../../src/devices/misc/drivers/compat/driver.cc
zx::result<> SetProfileByRole (zx::unowned_thread thread, std::string_view role)
Defined at line 841 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_status_t GetProtocol (uint32_t proto_id, void * out)
Defined at line 870 of file ../../src/devices/misc/drivers/compat/driver.cc
zx_status_t GetFragmentProtocol (const char *fragment,uint32_tproto_id,void *out)
Defined at line 908 of file ../../src/devices/misc/drivers/compat/driver.cc
void CompleteStart (zx::result<> result)
Defined at line 945 of file ../../src/devices/misc/drivers/compat/driver.cc