blob: d5193b82e059d724f92ea09614a22cf219a18c7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include <AK/Types.h>
class IRQHandler {
public:
virtual ~IRQHandler();
virtual void handle_irq() = 0;
u8 irq_number() const { return m_irq_number; }
void enable_irq();
void disable_irq();
protected:
explicit IRQHandler(u8 irq);
private:
u8 m_irq_number { 0 };
};
|