2019-06-19 01:53:21 +01:00
|
|
|
// Copyright 2019 Yuzu Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2019-06-08 01:41:06 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common/common_types.h"
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
class System;
|
|
|
|
}
|
|
|
|
|
2019-06-19 01:53:21 +01:00
|
|
|
namespace Core::Timing {
|
|
|
|
struct EventType;
|
|
|
|
}
|
|
|
|
|
2019-06-08 01:41:06 +01:00
|
|
|
namespace Core::Hardware {
|
|
|
|
|
|
|
|
class InterruptManager {
|
|
|
|
public:
|
2019-06-19 01:53:21 +01:00
|
|
|
explicit InterruptManager(Core::System& system);
|
|
|
|
~InterruptManager();
|
2019-06-08 01:41:06 +01:00
|
|
|
|
2019-06-19 01:53:21 +01:00
|
|
|
void GPUInterruptSyncpt(u32 syncpoint_id, u32 value);
|
2019-06-08 01:41:06 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
Core::System& system;
|
|
|
|
Core::Timing::EventType* gpu_interrupt_event{};
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Core::Hardware
|