mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
22 lines
335 B
C++
22 lines
335 B
C++
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
|
|
namespace PIC {
|
|
|
|
void enable(BYTE number);
|
|
void disable(BYTE number);
|
|
void eoi(BYTE number);
|
|
void initialize();
|
|
word getISR();
|
|
|
|
}
|
|
|
|
class IRQHandlerScope {
|
|
public:
|
|
explicit IRQHandlerScope(BYTE irq) : m_irq(irq) { }
|
|
~IRQHandlerScope() { PIC::eoi(m_irq); }
|
|
|
|
private:
|
|
BYTE m_irq { 0 };
|
|
};
|