summaryrefslogtreecommitdiff
path: root/Kernel/IRQHandler.h
blob: f79c96a795cee632266526026be40635a5597acf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include <AK/Types.h>

class IRQHandler {
public:
    virtual ~IRQHandler();
    virtual void handleIRQ() = 0;

    byte irqNumber() const { return m_irqNumber; }

    void enableIRQ();
    void disableIRQ();

protected:
    explicit IRQHandler(byte irq);

private:
    byte m_irqNumber { 0 };
};