Enumerations
enum class MmioResourceIndex : uint8_t
| Name | Value | Comments |
|---|---|---|
| kDmc | 0 |
DMC (DDR memory controller) |
The resource ordering in the board driver's `canvas_mmios` table.
Defined at line 18 of file ../../src/graphics/display/drivers/aml-canvas/board-resources.h
enum class BtiResourceIndex : uint8_t
| Name | Value | Comments |
|---|---|---|
| kCanvas | 0 |
BTI used for canvas transfers. |
The resource ordering in the board driver's `canvas_btis` table.
Defined at line 23 of file ../../src/graphics/display/drivers/aml-canvas/board-resources.h
Records
Functions
-
zx::result<fdf::MmioBuffer> MapMmio (MmioResourceIndex mmio_index, fidl::UnownedClientEnd<fuchsia_hardware_platform_device::Device> pdev)Typesafe wrapper for [`fuchsia.hardware.platform.device/Device.GetMmioById`].
If the result is successful, the MmioBuffer is guaranteed to be valid.
Defined at line 19 of file ../../src/graphics/display/drivers/aml-canvas/board-resources.cc
-
zx::result<zx::bti> GetBti (BtiResourceIndex bti_index, fidl::UnownedClientEnd<fuchsia_hardware_platform_device::Device> pdev)Typesafe wrapper for [`fuchsia.hardware.platform.device/Device.GetBtiById`].
If the result is successful, the zx::bti is guaranteed to be valid.
Defined at line 51 of file ../../src/graphics/display/drivers/aml-canvas/board-resources.cc