serenity/Kernel/IRQHandler.h

21 lines
311 B
C
Raw Normal View History

#pragma once
#include <AK/Types.h>
class IRQHandler {
public:
virtual ~IRQHandler();
2018-12-03 00:39:25 +01:00
virtual void handle_irq() = 0;
u8 irq_number() const { return m_irq_number; }
2018-12-03 00:39:25 +01:00
void enable_irq();
void disable_irq();
protected:
explicit IRQHandler(u8 irq);
private:
u8 m_irq_number { 0 };
};