17 #define PIC1_DATA 0x21 19 #define PIC2_DATA 0xA1 26 print(
"PIC init ... ");
53 println(
"%2aok%a. IRQ0=INT%02x, IRQ8=INT%02x.", irq0, irq8);
void pic_init()
Initializes the PIC.
void pic_send_eoi(uint8_t intr)
Sends an "end of interrupt" signal.
#define PIC2_DATA
the slave PIC's data port
#define INT_IRQ0
where we want to map the master PIC's IRQs
#define PIC_EOI
"end of interrupt" signals that an IRQ has been handled
#define PIC1_DATA
the master PIC's data port
#define INT_IRQ8
where we want to map the slave PIC's IRQs
#define PIC1_CMD
the master PIC's command port
#define PIC2_CMD
the slave PIC's command port