class MagmaSystemDevice

Defined at line 26 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.h

Public Methods

void ~MagmaSystemDevice ()

Defined at line 24 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.cc

std::unique_ptr<msd::internal::PrimaryFidlServer> Open (msd_client_id_t client_id, fidl::ServerEnd<fuchsia_gpu_magma::Primary> primary, fidl::ServerEnd<fuchsia_gpu_magma::Notification> notification, MagmaClientType client_type)

Opens a connection to the device. On success, returns the connection handle

to be passed to the client.

Defined at line 29 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.cc

uint32_t GetDeviceId ()

Returns the device id. 0 is invalid.

Defined at line 14 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.cc

std::unique_ptr<MagmaSystemDevice> Create (msd::Driver * driver, std::unique_ptr<msd::Device> msd_device)

The msd::Driver instance must outlive the MagmaSystemDevice

Defined at line 30 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.h

void MagmaSystemDevice (msd::Driver * driver, std::unique_ptr<msd::Device> msd_dev)

Defined at line 38 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.h

msd::Device * msd_dev ()

Defined at line 52 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.h

msd::Driver * driver ()

Defined at line 53 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.h

void Shutdown ()

Called on driver thread

Defined at line 69 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.cc

void StartConnectionThread (std::unique_ptr<msd::internal::PrimaryFidlServer> fidl_server, fit::function<void (const char *)> set_thread_priority)

Called on driver thread. |device_handle| may be used by the connection thread for

initialization/configuration but should not be retained.

Defined at line 41 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.cc

void ConnectionClosed (std::shared_ptr<internal::PrimaryFidlServerHolder> server, bool * need_detach_out)

Defined at line 51 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.cc

void DumpStatus (uint32_t dump_type)

Defined at line 69 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.h

magma::Status Query (uint64_t id, uint64_t * value_out)

Defined at line 73 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.h

void set_perf_count_access_token_id (uint64_t id)

Defined at line 81 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.h

uint64_t perf_count_access_token_id ()

Defined at line 82 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.h

magma::Status Query (uint64_t id, magma_handle_t * buffer_out, uint64_t * value_out)

Defined at line 93 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.cc

magma_status_t GetIcdList (std::vector<MsdIcdInfo> * icd_list_out)

Defined at line 110 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.cc

void SetMemoryPressureLevel (MagmaMemoryPressureLevel level)

Defined at line 89 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.cc

void SetPowerState (int64_t power_state, fit::callback<void (magma_status_t)> completer)

Defined at line 114 of file ../../src/graphics/magma/lib/magma_service/sys_driver/magma_system_device.cc