ApertureOS
pic.h
Go to the documentation of this file.
1 #ifndef _PIC_H_
2 #define _PIC_H_
3 
4 #include "types.h"
5 
6 #define PIC1 0x20 /* IO base address for master PIC */
7 #define PIC2 0xA0 /* IO base address for slave PIC */
8 #define PIC1_COMMAND PIC1
9 #define PIC1_DATA (PIC1+1)
10 #define PIC2_COMMAND PIC2
11 #define PIC2_DATA (PIC2+1)
12 
13 uint32_t PIC_Initialize();
14 void PIC_SetOffset(int off1, int off2);
15 void PIC_MaskAll();
16 void PIC_MaskIRQ(uint8_t irq);
17 void PIC_UnMaskIRQ(uint8_t irq);
18 void PIC_SendEOI(uint8_t irq);
19 
20 #endif /* end of include guard: _PIC_H_ */
void PIC_MaskAll()
Definition: pic.c:38
void PIC_MaskIRQ(uint8_t irq)
Definition: pic.c:44
void PIC_SetOffset(int off1, int off2)
Definition: pic.c:66
void PIC_SendEOI(uint8_t irq)
Definition: pic.c:152
void PIC_UnMaskIRQ(uint8_t irq)
Definition: pic.c:55
uint32_t PIC_Initialize()
Definition: pic.c:25