summaryrefslogtreecommitdiff
path: root/src/core/hardware_interrupt_manager.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2019-06-07 20:41:06 -0400
committerGravatar FernandoS272019-07-05 15:49:14 -0400
commit8942047d419f6d2d0c56adad689fbf3bcd4d2961 (patch)
treeaa2dd5b6aeef25c9fd5543a2a4ef267a7152b052 /src/core/hardware_interrupt_manager.h
parentnv_services: Implement NvQueryEvent, NvCtrlEventWait, NvEventRegister, NvEven... (diff)
downloadyuzu-8942047d419f6d2d0c56adad689fbf3bcd4d2961.tar.gz
yuzu-8942047d419f6d2d0c56adad689fbf3bcd4d2961.tar.xz
yuzu-8942047d419f6d2d0c56adad689fbf3bcd4d2961.zip
Gpu: Implement Hardware Interrupt Manager and manage GPU interrupts
Diffstat (limited to 'src/core/hardware_interrupt_manager.h')
-rw-r--r--src/core/hardware_interrupt_manager.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/core/hardware_interrupt_manager.h b/src/core/hardware_interrupt_manager.h
new file mode 100644
index 000000000..fc565c88b
--- /dev/null
+++ b/src/core/hardware_interrupt_manager.h
@@ -0,0 +1,24 @@
1#pragma once
2
3#include "common/common_types.h"
4#include "core/core_timing.h"
5
6namespace Core {
7class System;
8}
9
10namespace Core::Hardware {
11
12class InterruptManager {
13public:
14 InterruptManager(Core::System& system);
15 ~InterruptManager() = default;
16
17 void InterruptGPU(const u32 event_index);
18
19private:
20 Core::System& system;
21 Core::Timing::EventType* gpu_interrupt_event{};
22};
23
24} // namespace Core::Hardware