diff options
author | Subv <subv2112@gmail.com> | 2018-01-09 16:41:13 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-01-11 05:28:40 +0100 |
commit | 1ca800cceecd3f37ad874e12fd657f6145ae13c7 (patch) | |
tree | d5c935b854585739970c9a7c2a6b9981e31fdeca /src/core/hle/service/nvdrv/nvdrv_a.h | |
parent | VI: Use a Pulse event instead of OneShot for the vblank events. (diff) | |
download | yuzu-1ca800cceecd3f37ad874e12fd657f6145ae13c7.tar yuzu-1ca800cceecd3f37ad874e12fd657f6145ae13c7.tar.gz yuzu-1ca800cceecd3f37ad874e12fd657f6145ae13c7.tar.bz2 yuzu-1ca800cceecd3f37ad874e12fd657f6145ae13c7.tar.lz yuzu-1ca800cceecd3f37ad874e12fd657f6145ae13c7.tar.xz yuzu-1ca800cceecd3f37ad874e12fd657f6145ae13c7.tar.zst yuzu-1ca800cceecd3f37ad874e12fd657f6145ae13c7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvdrv/nvdrv_a.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/core/hle/service/nvdrv/nvdrv_a.h b/src/core/hle/service/nvdrv/nvdrv_a.h index af1017881..4cd04adea 100644 --- a/src/core/hle/service/nvdrv/nvdrv_a.h +++ b/src/core/hle/service/nvdrv/nvdrv_a.h @@ -5,12 +5,17 @@ #pragma once #include <memory> -#include "core/hle/service/service.h" +#include <string> #include "core/hle/service/nvdrv/nvdrv.h" +#include "core/hle/service/service.h" namespace Service { namespace NVDRV { +namespace Devices { +class nvdevice; +} + class NVDRV_A final : public ServiceFramework<NVDRV_A> { public: NVDRV_A(); @@ -30,10 +35,14 @@ private: void Ioctl(Kernel::HLERequestContext& ctx); void Initialize(Kernel::HLERequestContext& ctx); + /// Id to use for the next open file descriptor. u32 next_fd = 1; - std::unordered_map<u32, std::shared_ptr<nvdevice>> open_files; - std::unordered_map<std::string, std::shared_ptr<nvdevice>> devices; + /// Mapping of file descriptors to the devices they reference. + std::unordered_map<u32, std::shared_ptr<Devices::nvdevice>> open_files; + + /// Mapping of device node names to their implementation. + std::unordered_map<std::string, std::shared_ptr<Devices::nvdevice>> devices; }; extern std::weak_ptr<NVDRV_A> nvdrv_a; |