UnnamedOS
pic.c File Reference
#include <common.h>
#include <interrupts/pic.h>
+ Include dependency graph for pic.c:

Go to the source code of this file.

Macros

#define PIC1_CMD   0x20
 the master PIC's command port
 
#define PIC1_DATA   0x21
 the master PIC's data port
 
#define PIC2_CMD   0xA0
 the slave PIC's command port
 
#define PIC2_DATA   0xA1
 the slave PIC's data port
 
#define PIC_EOI   0x20
 "end of interrupt" signals that an IRQ has been handled
 
#define INT_IRQ0   0x20
 where we want to map the master PIC's IRQs
 
#define INT_IRQ8   0x28
 where we want to map the slave PIC's IRQs
 

Functions

void pic_init ()
 Initializes the PIC. More...
 
void pic_send_eoi (uint8_t intr)
 Sends an "end of interrupt" signal. More...