mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +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 };
|
|
};
|
|
|