mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
27f699ef0c
These types can be picked up by including <AK/Types.h>: * u8, u16, u32, u64 (unsigned) * i8, i16, i32, i64 (signed)
21 lines
311 B
C++
21 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 };
|
|
};
|