template <>
class WireServer
Defined at line 3068 of file fidling/gen/sdk/fidl/fuchsia.hardware.platform.device/fuchsia.hardware.platform.device/cpp/fidl/fuchsia.hardware.platform.device/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_hardware_platform_device::Device>|
and |::fidl::ServerEnd
<
::fuchsia_hardware_platform_device::Device>|).
Public Methods
void GetMmioById (::fuchsia_hardware_platform_device::wire::DeviceGetMmioByIdRequest * request, GetMmioByIdCompleter::Sync & completer)
Returns a memory mapped IO (MMIO) resource for the given |index|.
* error `ZX_ERR_OUT_OF_RANGE` if |index| is equal or greater than the number of
mmios.
* error `ZX_ERR_INTERNAL` if the retrieved mmio is not valid.
* error `ZX_ERR_NOT_FOUND` if the retrieved mmio's base address is NULL.
void GetMmioByName (::fuchsia_hardware_platform_device::wire::DeviceGetMmioByNameRequest * request, GetMmioByNameCompleter::Sync & completer)
Returns a memory mapped IO (MMIO) resource for the given |name|.
* error `ZX_ERR_INVALID_ARGS` if |name| is an empty string.
* error `ZX_ERR_OUT_OF_RANGE` if |name| is not found.
* error `ZX_ERR_INTERNAL` if the retrieved mmio is not valid.
* error `ZX_ERR_NOT_FOUND` if the retrieved's mmio base address is NULL.
void GetInterruptById (::fuchsia_hardware_platform_device::wire::DeviceGetInterruptByIdRequest * request, GetInterruptByIdCompleter::Sync & completer)
Returns an interrupt handle for the given |index|.
|flags| is forwarded as the |options| parameter to `zx_interrupt_create`.
* error `ZX_ERR_OUT_OF_RANGE` if |index| is equal or greater than the number of
interrupts.
* error `ZX_ERR_INTERNAL` if the retrieved interrupt is not valid.
void GetInterruptByName (::fuchsia_hardware_platform_device::wire::DeviceGetInterruptByNameRequest * request, GetInterruptByNameCompleter::Sync & completer)
Returns an interrupt handle for the given |name|.
|flags| is forwarded as the |options| parameter to `zx_interrupt_create`.
* error `ZX_ERR_INVALID_ARGS` if |name| is an empty string.
* error `ZX_ERR_OUT_OF_RANGE` if |name| is not found.
* error `ZX_ERR_INTERNAL` if the retrieved interrupt is not valid.
void GetBtiById (::fuchsia_hardware_platform_device::wire::DeviceGetBtiByIdRequest * request, GetBtiByIdCompleter::Sync & completer)
Returns a bus transaction initiator (bti) handle for the given |index|.
* error `ZX_ERR_OUT_OF_RANGE` if |index| is equal or greater than the number of
btis.
* error `ZX_ERR_INTERNAL` if the retrieved bti is not valid.
void GetBtiByName (::fuchsia_hardware_platform_device::wire::DeviceGetBtiByNameRequest * request, GetBtiByNameCompleter::Sync & completer)
Returns a bus transaction initiator (bti) handle for the given |name|.
* error `ZX_ERR_INVALID_ARGS` if |name| is an empty string.
* error `ZX_ERR_OUT_OF_RANGE` if |name| is not found.
* error `ZX_ERR_INTERNAL` if the retrieved bti is not valid.
void GetSmcById (::fuchsia_hardware_platform_device::wire::DeviceGetSmcByIdRequest * request, GetSmcByIdCompleter::Sync & completer)
Returns a secure monitor call (smc) handle for the given |index|.
* error `ZX_ERR_OUT_OF_RANGE` if |index| is equal or greater than the number of
smcs.
* error `ZX_ERR_INTERNAL` if the retrieved smc is not valid.
void GetSmcByName (::fuchsia_hardware_platform_device::wire::DeviceGetSmcByNameRequest * request, GetSmcByNameCompleter::Sync & completer)
Returns a secure monitor call (smc) handle for the given |name|.
* error `ZX_ERR_INVALID_ARGS` if |name| is an empty string.
* error `ZX_ERR_OUT_OF_RANGE` if |name| is not found.
* error `ZX_ERR_INTERNAL` if the retrieved smc is not valid.
void GetPowerConfiguration (GetPowerConfigurationCompleter::Sync & completer)
Returns power configuration for the device the driver has bound to.
void GetNodeDeviceInfo (GetNodeDeviceInfoCompleter::Sync & completer)
Returns information about the device corresponding to the node
that the driver has bound to.
void GetBoardInfo (GetBoardInfoCompleter::Sync & completer)
Return information about the board the device is attached to.
void GetMetadata (::fuchsia_hardware_platform_device::wire::DeviceGetMetadataRequest * request, GetMetadataCompleter::Sync & completer)
Returns the metadata associated with the device and |id|.
Returns ZX_ERR_NOT_FOUND if the metadata does not exist.
void WireServer ()
Defined at line 3071 of file fidling/gen/sdk/fidl/fuchsia.hardware.platform.device/fuchsia.hardware.platform.device/cpp/fidl/fuchsia.hardware.platform.device/cpp/wire_messaging.h
Handler bind_handler (async_dispatcher_t * dispatcher)
|bind_handler| returns a handler that binds incoming connections to this
server implementation.
The returned handler borrows the server instance.
The server must outlive the provided |dispatcher|. Only after
the dispatcher is shutdown will it be safe to destroy the servers.
The server should not be moved.
void ~WireServer ()
Defined at line 3072 of file fidling/gen/sdk/fidl/fuchsia.hardware.platform.device/fuchsia.hardware.platform.device/cpp/fidl/fuchsia.hardware.platform.device/cpp/wire_messaging.h