summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/nvdrv.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-11-01 15:25:06 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2022-10-06 21:00:51 +0200
commita21b8824fb8a0bd7bcb44fd50559f26718f5dbc4 (patch)
tree40af4d108c718844ea7a8370be9dad19c56806f2 /src/core/hle/service/nvdrv/nvdrv.h
parentNVDRV: Implement QueryEvent. (diff)
downloadyuzu-a21b8824fb8a0bd7bcb44fd50559f26718f5dbc4.tar
yuzu-a21b8824fb8a0bd7bcb44fd50559f26718f5dbc4.tar.gz
yuzu-a21b8824fb8a0bd7bcb44fd50559f26718f5dbc4.tar.bz2
yuzu-a21b8824fb8a0bd7bcb44fd50559f26718f5dbc4.tar.lz
yuzu-a21b8824fb8a0bd7bcb44fd50559f26718f5dbc4.tar.xz
yuzu-a21b8824fb8a0bd7bcb44fd50559f26718f5dbc4.tar.zst
yuzu-a21b8824fb8a0bd7bcb44fd50559f26718f5dbc4.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nvdrv/nvdrv.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/hle/service/nvdrv/nvdrv.h b/src/core/hle/service/nvdrv/nvdrv.h
index be8813c97..d24b57539 100644
--- a/src/core/hle/service/nvdrv/nvdrv.h
+++ b/src/core/hle/service/nvdrv/nvdrv.h
@@ -41,14 +41,13 @@ class Module;
class EventInterface {
public:
- EventInterface(Module& module_) : module{module_} {}
+ EventInterface(Module& module_);
+ ~EventInterface();
// Mask representing registered events
u64 events_mask{};
// Each kernel event associated to an NV event
std::array<Kernel::KEvent*, MaxNvEvents> events{};
- // Backup NV event
- std::array<Kernel::KEvent*, MaxNvEvents> backup{};
// The status of the current NVEvent
std::array<std::atomic<EventState>, MaxNvEvents> status{};
// Tells if an NVEvent is registered or not
@@ -139,10 +138,10 @@ private:
/// Mapping of device node names to their implementation.
std::unordered_map<std::string, std::shared_ptr<Devices::nvdevice>> devices;
- EventInterface events_interface;
-
KernelHelpers::ServiceContext service_context;
+ EventInterface events_interface;
+
void CreateEvent(u32 event_id);
void FreeEvent(u32 event_id);
};