summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/nvdrv_a.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-01-08 03:25:57 +0100
committerbunnei <bunneidev@gmail.com>2018-01-11 05:28:05 +0100
commit94a5e97eb3e331f5c02e3ff2c0d4a9d62f072ba7 (patch)
tree3067e1a6e631253b880851e739a47926d75fe15a /src/core/hle/service/nvdrv/nvdrv_a.h
parentIPC: Corrected some definitions for the buffer C descriptor flags. (diff)
downloadyuzu-94a5e97eb3e331f5c02e3ff2c0d4a9d62f072ba7.tar
yuzu-94a5e97eb3e331f5c02e3ff2c0d4a9d62f072ba7.tar.gz
yuzu-94a5e97eb3e331f5c02e3ff2c0d4a9d62f072ba7.tar.bz2
yuzu-94a5e97eb3e331f5c02e3ff2c0d4a9d62f072ba7.tar.lz
yuzu-94a5e97eb3e331f5c02e3ff2c0d4a9d62f072ba7.tar.xz
yuzu-94a5e97eb3e331f5c02e3ff2c0d4a9d62f072ba7.tar.zst
yuzu-94a5e97eb3e331f5c02e3ff2c0d4a9d62f072ba7.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nvdrv/nvdrv_a.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/core/hle/service/nvdrv/nvdrv_a.h b/src/core/hle/service/nvdrv/nvdrv_a.h
new file mode 100644
index 000000000..09522a486
--- /dev/null
+++ b/src/core/hle/service/nvdrv/nvdrv_a.h
@@ -0,0 +1,30 @@
+// Copyright 2018 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include "core/hle/service/service.h"
+#include <memory>
+
+namespace Service {
+namespace NVDRV {
+
+class NVDRV_A final : public ServiceFramework<NVDRV_A> {
+public:
+ NVDRV_A();
+ ~NVDRV_A() = default;
+
+private:
+ void Open(Kernel::HLERequestContext& ctx);
+ void Ioctl(Kernel::HLERequestContext& ctx);
+ void Initialize(Kernel::HLERequestContext& ctx);
+
+ u32 next_fd = 1;
+
+ std::unordered_map<u32, std::shared_ptr<nvdevice>> open_files;
+ std::unordered_map<std::string, std::shared_ptr<nvdevice>> devices;
+};
+
+} // namespace NVDRV
+} // namespace Service