template <>

class Server

Defined at line 748 of file fidling/gen/sdk/fidl/fuchsia.hardware.platform.device/fuchsia.hardware.platform.device/cpp/fidl/fuchsia.hardware.platform.device/cpp/natural_messaging.h

Public Methods

void GetMmioById (GetMmioByIdRequest & 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 (GetMmioByNameRequest & 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 (GetInterruptByIdRequest & 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 (GetInterruptByNameRequest & 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 (GetBtiByIdRequest & 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 (GetBtiByNameRequest & 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 (GetSmcByIdRequest & 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 (GetSmcByNameRequest & 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 (GetMetadataRequest & 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 Server ()

Defined at line 751 of file fidling/gen/sdk/fidl/fuchsia.hardware.platform.device/fuchsia.hardware.platform.device/cpp/fidl/fuchsia.hardware.platform.device/cpp/natural_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 ~Server ()

Defined at line 752 of file fidling/gen/sdk/fidl/fuchsia.hardware.platform.device/fuchsia.hardware.platform.device/cpp/fidl/fuchsia.hardware.platform.device/cpp/natural_messaging.h