mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 17:00:37 +00:00
21 lines
318 B
C++
21 lines
318 B
C++
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
|
|
class IRQHandler {
|
|
public:
|
|
virtual ~IRQHandler();
|
|
virtual void handle_irq() = 0;
|
|
|
|
byte irq_number() const { return m_irq_number; }
|
|
|
|
void enable_irq();
|
|
void disable_irq();
|
|
|
|
protected:
|
|
explicit IRQHandler(byte irq);
|
|
|
|
private:
|
|
byte m_irq_number { 0 };
|
|
};
|
|
|