ladybird/Kernel/IRQHandler.h
2018-12-03 00:39:25 +01:00

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 };
};