00001 #ifndef PIC_H 00002 #define PIC_H 00003 00004 #define PIC_INT_VECTOR_IRQ0 0x20 00005 #define PIC_INT_VECTOR_IRQ8 0x28 00006 #define PIC_MASTER 0x20 00007 #define PIC_MASTER2 0x21 00008 #define PIC_SLAVE 0xA0 00009 #define PIC_SLAVE2 0xA1 00010 00011 //irq0 timer 8254 00012 //irq1 keyboard 8042 00013 //irq2 slave pic 8259 00014 //irq3 com2 00015 //irq4 com1 00016 //irq5 lpt2 00017 //irq6 fdc 00018 //irq7 lpt1 00019 00020 //irq8 rtc 00021 //irq9 redir irq2 00022 //irq10 user 00023 //irq11 user 00024 //irq12 user 00025 //irq13 fpu 00026 //irq14 hdc 00027 //irq15 reserve 00028 00029 void PicInit(void); 00030 00031 #endif
1.5.9