21 lines
377 B
C
21 lines
377 B
C
#pragma once
|
|
|
|
#include <std/inline.h>
|
|
|
|
#define PIC1 0x20
|
|
#define PIC2 0xA0
|
|
#define PIC1_COMMAND PIC1
|
|
#define PIC1_DATA (PIC1 + 1)
|
|
#define PIC2_COMMAND PIC2
|
|
#define PIC2_DATA (PIC2 + 1)
|
|
#define PIC_EOI 0x20
|
|
|
|
#define ICW1_ICW4 0x01
|
|
#define ICW1_INIT 0x10
|
|
#define ICW4_8086 0x01
|
|
|
|
void pic_init();
|
|
void pic_send_eoi(u8 no);
|
|
void pic_irq_enable(u8 no);
|
|
void pic_irq_disable(u8 no);
|