mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
22 lines
318 B
C++
22 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 };
|
|
};
|
|
|