mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-25 15:39:55 +00:00
27f699ef0c
These types can be picked up by including <AK/Types.h>: * u8, u16, u32, u64 (unsigned) * i8, i16, i32, i64 (signed)
20 lines
311 B
C++
20 lines
311 B
C++
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
|
|
class IRQHandler {
|
|
public:
|
|
virtual ~IRQHandler();
|
|
virtual void handle_irq() = 0;
|
|
|
|
u8 irq_number() const { return m_irq_number; }
|
|
|
|
void enable_irq();
|
|
void disable_irq();
|
|
|
|
protected:
|
|
explicit IRQHandler(u8 irq);
|
|
|
|
private:
|
|
u8 m_irq_number { 0 };
|
|
};
|