summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/interface.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-01-16 00:30:49 +0100
committerbunnei <bunneidev@gmail.com>2018-01-17 01:04:09 +0100
commitcb75b56e454a36190f07ee34b0e4e6ee6a7a66be (patch)
treef5af26691caa3aef505c2a66b07831f24c83b8e4 /src/core/hle/service/nvdrv/interface.h
parentNV: Move the nvdrv classes into the Nvidia namespace, and move the functionality to a s single module that services call. (diff)
downloadyuzu-cb75b56e454a36190f07ee34b0e4e6ee6a7a66be.tar
yuzu-cb75b56e454a36190f07ee34b0e4e6ee6a7a66be.tar.gz
yuzu-cb75b56e454a36190f07ee34b0e4e6ee6a7a66be.tar.bz2
yuzu-cb75b56e454a36190f07ee34b0e4e6ee6a7a66be.tar.lz
yuzu-cb75b56e454a36190f07ee34b0e4e6ee6a7a66be.tar.xz
yuzu-cb75b56e454a36190f07ee34b0e4e6ee6a7a66be.tar.zst
yuzu-cb75b56e454a36190f07ee34b0e4e6ee6a7a66be.zip
Diffstat (limited to 'src/core/hle/service/nvdrv/interface.h')
-rw-r--r--src/core/hle/service/nvdrv/interface.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/core/hle/service/nvdrv/interface.h b/src/core/hle/service/nvdrv/interface.h
new file mode 100644
index 000000000..8c95b7217
--- /dev/null
+++ b/src/core/hle/service/nvdrv/interface.h
@@ -0,0 +1,29 @@
+// Copyright 2018 yuzu emulator team
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include <memory>
+#include <string>
+#include "core/hle/service/nvdrv/nvdrv.h"
+#include "core/hle/service/service.h"
+
+namespace Service {
+namespace Nvidia {
+
+class NVDRV final : public ServiceFramework<NVDRV> {
+public:
+ NVDRV(std::shared_ptr<Module> nvdrv, const char* name);
+ ~NVDRV() = default;
+
+private:
+ void Open(Kernel::HLERequestContext& ctx);
+ void Ioctl(Kernel::HLERequestContext& ctx);
+ void Initialize(Kernel::HLERequestContext& ctx);
+
+ std::shared_ptr<Module> nvdrv;
+};
+
+} // namespace Nvidia
+} // namespace Service