2022-04-23 08:59:50 +00:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2019-06-19 00:53:21 +00:00
|
|
|
|
2019-06-08 00:41:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
2019-11-27 02:48:56 +00:00
|
|
|
#include <memory>
|
|
|
|
|
2019-06-08 00:41:06 +00:00
|
|
|
#include "common/common_types.h"
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
class System;
|
|
|
|
}
|
|
|
|
|
2019-06-19 00:53:21 +00:00
|
|
|
namespace Core::Timing {
|
|
|
|
struct EventType;
|
|
|
|
}
|
|
|
|
|
2019-06-08 00:41:06 +00:00
|
|
|
namespace Core::Hardware {
|
|
|
|
|
|
|
|
class InterruptManager {
|
|
|
|
public:
|
2019-06-19 00:53:21 +00:00
|
|
|
explicit InterruptManager(Core::System& system);
|
|
|
|
~InterruptManager();
|
2019-06-08 00:41:06 +00:00
|
|
|
|
2019-06-19 00:53:21 +00:00
|
|
|
void GPUInterruptSyncpt(u32 syncpoint_id, u32 value);
|
2019-06-08 00:41:06 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Core::System& system;
|
2019-11-27 02:48:56 +00:00
|
|
|
std::shared_ptr<Core::Timing::EventType> gpu_interrupt_event;
|
2019-06-08 00:41:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Core::Hardware
|