banan-os/kernel/include/kernel/PIC.h

18 lines
356 B
C
Raw Normal View History

2022-12-07 02:41:18 +02:00
#pragma once
#include <kernel/InterruptController.h>
2022-12-07 02:41:18 +02:00
class PIC final : public InterruptController
2022-12-07 02:41:18 +02:00
{
public:
virtual void eoi(uint8_t) override;
virtual void enable_irq(uint8_t) override;
virtual bool is_in_service(uint8_t) override;
2022-12-07 02:41:18 +02:00
static void remap();
static void mask_all();
2022-12-07 02:41:18 +02:00
private:
static PIC* create();
friend class InterruptController;
};