diff options
author | bunnei <bunneidev@gmail.com> | 2019-07-26 20:26:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-26 20:26:44 +0200 |
commit | 52f54c728d9691f113f0736fab8fbc60b408dceb (patch) | |
tree | e02db0d667f818aacbd27e54927ef91e875eb2c2 /src/core/hardware_interrupt_manager.h | |
parent | Merge pull request #2739 from lioncash/cflow (diff) | |
parent | NVServices: Correct delayed responses. (diff) | |
download | yuzu-52f54c728d9691f113f0736fab8fbc60b408dceb.tar yuzu-52f54c728d9691f113f0736fab8fbc60b408dceb.tar.gz yuzu-52f54c728d9691f113f0736fab8fbc60b408dceb.tar.bz2 yuzu-52f54c728d9691f113f0736fab8fbc60b408dceb.tar.lz yuzu-52f54c728d9691f113f0736fab8fbc60b408dceb.tar.xz yuzu-52f54c728d9691f113f0736fab8fbc60b408dceb.tar.zst yuzu-52f54c728d9691f113f0736fab8fbc60b408dceb.zip |
Diffstat (limited to 'src/core/hardware_interrupt_manager.h')
-rw-r--r-- | src/core/hardware_interrupt_manager.h | 31 |
1 files changed, 31 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..494db883a --- /dev/null +++ b/src/core/hardware_interrupt_manager.h @@ -0,0 +1,31 @@ +// Copyright 2019 Yuzu Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "common/common_types.h" + +namespace Core { +class System; +} + +namespace Core::Timing { +struct EventType; +} + +namespace Core::Hardware { + +class InterruptManager { +public: + explicit InterruptManager(Core::System& system); + ~InterruptManager(); + + void GPUInterruptSyncpt(u32 syncpoint_id, u32 value); + +private: + Core::System& system; + Core::Timing::EventType* gpu_interrupt_event{}; +}; + +} // namespace Core::Hardware |