class Driver

Defined at line 33 of file ../../src/graphics/magma/include/lib/magma_service/msd.h

This represents the driver for a device. It's a singleton that can't access device registers.

Public Methods

std::unique_ptr<Driver> MsdCreate ()

static

Defined at line 50 of file ../../src/graphics/drivers/msd-intel-gen/src/msd_intel_driver.cc

void ~Driver ()

Defined at line 9 of file ../../src/graphics/magma/include/lib/magma_service/msd.cc

void MsdConfigure (uint32_t flags)

Configures the driver according to |flags|.

Defined at line 40 of file ../../src/graphics/magma/include/lib/magma_service/msd.h

std::optional<inspect::Inspector> MsdDuplicateInspector ()

Returns a buffer handle that contains inspect data for the driver. Returns

ZX_HANDLE_INVALID if driver doesn't support inspect.

Defined at line 43 of file ../../src/graphics/magma/include/lib/magma_service/msd.h

std::unique_ptr<Device> MsdCreateDevice (DeviceHandle * device_data)

Creates a device at system startup. `device_data` is a pointer to a platform-specific device

object which is guaranteed to outlive the returned Device.

Defined at line 47 of file ../../src/graphics/magma/include/lib/magma_service/msd.h

std::unique_ptr<Buffer> MsdImportBuffer (zx::vmo vmo, uint64_t client_id)

Creates a buffer that owns the provided handle. Can be called on any thread.

Defined at line 50 of file ../../src/graphics/magma/include/lib/magma_service/msd.h

magma_status_t MsdImportSemaphore (zx::handle handle, uint64_t client_id, uint64_t flags, std::unique_ptr<Semaphore> * out)

Creates a semaphore that owns the provided handle. Can be called on any thread.

Defined at line 53 of file ../../src/graphics/magma/include/lib/magma_service/msd.h