|
|
|
@ -11,6 +11,7 @@
|
|
|
|
|
#include "core/hle/service/nvdrv/devices/nvhost_gpu.h"
|
|
|
|
|
#include "core/hle/service/nvdrv/devices/nvmap.h"
|
|
|
|
|
#include "core/hle/service/nvdrv/interface.h"
|
|
|
|
|
#include "core/hle/service/nvdrv/memory_manager.h"
|
|
|
|
|
#include "core/hle/service/nvdrv/nvdrv.h"
|
|
|
|
|
#include "core/hle/service/nvdrv/nvmemp.h"
|
|
|
|
|
|
|
|
|
@ -31,12 +32,14 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
|
|
|
|
|
|
|
|
|
|
Module::Module() {
|
|
|
|
|
auto nvmap_dev = std::make_shared<Devices::nvmap>();
|
|
|
|
|
devices["/dev/nvhost-as-gpu"] = std::make_shared<Devices::nvhost_as_gpu>(nvmap_dev);
|
|
|
|
|
auto memory_manager = std::make_shared<MemoryManager>();
|
|
|
|
|
devices["/dev/nvhost-as-gpu"] =
|
|
|
|
|
std::make_shared<Devices::nvhost_as_gpu>(nvmap_dev, memory_manager);
|
|
|
|
|
devices["/dev/nvhost-gpu"] = std::make_shared<Devices::nvhost_gpu>(nvmap_dev, memory_manager);
|
|
|
|
|
devices["/dev/nvhost-ctrl-gpu"] = std::make_shared<Devices::nvhost_ctrl_gpu>();
|
|
|
|
|
devices["/dev/nvmap"] = nvmap_dev;
|
|
|
|
|
devices["/dev/nvdisp_disp0"] = std::make_shared<Devices::nvdisp_disp0>(nvmap_dev);
|
|
|
|
|
devices["/dev/nvhost-ctrl"] = std::make_shared<Devices::nvhost_ctrl>();
|
|
|
|
|
devices["/dev/nvhost-gpu"] = std::make_shared<Devices::nvhost_gpu>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
u32 Module::Open(std::string device_name) {
|
|
|
|
|