diff options
| author | 2019-06-07 20:41:06 -0400 | |
|---|---|---|
| committer | 2019-07-05 15:49:14 -0400 | |
| commit | 8942047d419f6d2d0c56adad689fbf3bcd4d2961 (patch) | |
| tree | aa2dd5b6aeef25c9fd5543a2a4ef267a7152b052 /src/core/hardware_interrupt_manager.h | |
| parent | nv_services: Implement NvQueryEvent, NvCtrlEventWait, NvEventRegister, NvEven... (diff) | |
| download | yuzu-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.h | 24 |
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 | |||
| 6 | namespace Core { | ||
| 7 | class System; | ||
| 8 | } | ||
| 9 | |||
| 10 | namespace Core::Hardware { | ||
| 11 | |||
| 12 | class InterruptManager { | ||
| 13 | public: | ||
| 14 | InterruptManager(Core::System& system); | ||
| 15 | ~InterruptManager() = default; | ||
| 16 | |||
| 17 | void InterruptGPU(const u32 event_index); | ||
| 18 | |||
| 19 | private: | ||
| 20 | Core::System& system; | ||
| 21 | Core::Timing::EventType* gpu_interrupt_event{}; | ||
| 22 | }; | ||
| 23 | |||
| 24 | } // namespace Core::Hardware | ||