initial commit
[pfinal.git] / Routix / include / routix / 8259.h
blob183f3a81afb1c30f9bf18eb036c95e84b267b205
1 /* 8259.h */
3 #ifndef __SYSTEM
4 #include "routix/system.h"
5 #endif
7 #define PIC1_A0 0x20
8 #define PIC1_A1 0x21
9 #define PIC2_A0 0xa0
10 #define PIC2_A1 0xa1
13 void enable_irq (byte irqn);
14 void disable_irq (byte irqn);
16 void inicializarPics(unsigned char int1, unsigned char int2);
17 void mascarasPics(unsigned char mask1, unsigned char mask2);
21 #define endOfInterrupt() outportb(PIC1_A0,0x20)