Gpu: Implement Hardware Interrupt Manager and manage GPU interrupts
This commit is contained in:
parent
e0027eba85
commit
8942047d41
13 changed files with 90 additions and 13 deletions
24
src/core/hardware_interrupt_manager.h
Normal file
24
src/core/hardware_interrupt_manager.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
#pragma once
|
||||
|
||||
#include "common/common_types.h"
|
||||
#include "core/core_timing.h"
|
||||
|
||||
namespace Core {
|
||||
class System;
|
||||
}
|
||||
|
||||
namespace Core::Hardware {
|
||||
|
||||
class InterruptManager {
|
||||
public:
|
||||
InterruptManager(Core::System& system);
|
||||
~InterruptManager() = default;
|
||||
|
||||
void InterruptGPU(const u32 event_index);
|
||||
|
||||
private:
|
||||
Core::System& system;
|
||||
Core::Timing::EventType* gpu_interrupt_event{};
|
||||
};
|
||||
|
||||
} // namespace Core::Hardware
|
Loading…
Add table
Add a link
Reference in a new issue