summaryrefslogtreecommitdiffstats
path: root/src/core/hardware_interrupt_manager.h
blob: 494db883ad37ac3aa05184d38d4df74b71af0f32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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