[152] | 1 | ; Project name : XTIDE Universal BIOS
|
---|
| 2 | ; Description : Equates for 8259 Interrupt Controllers.
|
---|
| 3 | %ifndef INT_CONTROLLER_INC
|
---|
| 4 | %define INT_CONTROLLER_INC
|
---|
[3] | 5 |
|
---|
| 6 | ; 8259 Master and Slave Interrupt Controller Ports
|
---|
[152] | 7 | MASTER_8259_IRR_AND_ISR_in EQU 20h ; Interrupt Request Register / Interrupt In-Service Register
|
---|
| 8 | MASTER_8259_COMMAND_out EQU 20h ; Command output
|
---|
| 9 | MASTER_8259_IMR EQU 21h ; Interrupt Mask Register
|
---|
| 10 | MASTER_8259_INIT_out EQU 21h ; Initialization Command Parameters
|
---|
| 11 | SLAVE_8259_IRR_AND_ISR_in EQU 0A0h ; Interrupt Request Register / Interrupt In-Service Register
|
---|
| 12 | SLAVE_8259_COMMAND_out EQU 0A0h ; Command output
|
---|
| 13 | SLAVE_8259_IMR EQU 0A1h ; Interrupt Mask Register
|
---|
| 14 | SLAVE_8259_INIT_out EQU 0A1h ; Initialization Command Parameters
|
---|
[3] | 15 |
|
---|
[152] | 16 | ; 8259 Interrupt Controller Commands
|
---|
| 17 | COMMAND_CLEAR_ROTATE_IN_AUTOMATIC_EOI_MODE EQU 00h
|
---|
| 18 | COMMAND_READ_INTERRUPT_REQUEST_REGISTER EQU 0Ah
|
---|
| 19 | COMMAND_READ_INTERRUPT_INSERVICE_REGISTER EQU 0Bh
|
---|
| 20 | COMMAND_END_OF_INTERRUPT EQU 20h
|
---|
| 21 | COMMAND_NO_OPERATION EQU 40h
|
---|
| 22 | COMMAND_CLEAR_SPECIAL_MASK_MODE EQU 48h
|
---|
| 23 | COMMAND_SPECIFIC_EOI_FOR_IR0 EQU 60h
|
---|
| 24 | COMMAND_SPECIFIC_EOI_FOR_IR1 EQU 61h
|
---|
| 25 | COMMAND_SPECIFIC_EOI_FOR_IR2 EQU 62h
|
---|
| 26 | COMMAND_SPECIFIC_EOI_FOR_IR3 EQU 63h
|
---|
| 27 | COMMAND_SPECIFIC_EOI_FOR_IR4 EQU 64h
|
---|
| 28 | COMMAND_SPECIFIC_EOI_FOR_IR5 EQU 65h
|
---|
| 29 | COMMAND_SPECIFIC_EOI_FOR_IR6 EQU 66h
|
---|
| 30 | COMMAND_SPECIFIC_EOI_FOR_IR7 EQU 67h
|
---|
| 31 | COMMAND_SET_SPECIAL_MASK_MODE EQU 68h
|
---|
| 32 | COMMAND_SET_ROTATE_IN_AUTOMATIC_EOI_MODE EQU 80h
|
---|
| 33 | COMMAND_ROTATE_ON_NONSPECIFIC_EOI EQU 0A0h
|
---|
| 34 | COMMAND_IR0_LOWEST_PRIORITY EQU 0C0h
|
---|
| 35 | COMMAND_IR1_LOWEST_PRIORITY EQU 0C1h
|
---|
| 36 | COMMAND_IR2_LOWEST_PRIORITY EQU 0C2h
|
---|
| 37 | COMMAND_IR3_LOWEST_PRIORITY EQU 0C3h
|
---|
| 38 | COMMAND_IR4_LOWEST_PRIORITY EQU 0C4h
|
---|
| 39 | COMMAND_IR5_LOWEST_PRIORITY EQU 0C5h
|
---|
| 40 | COMMAND_IR6_LOWEST_PRIORITY EQU 0C6h
|
---|
| 41 | COMMAND_IR7_LOWEST_PRIORITY EQU 0C7h
|
---|
| 42 | COMMAND_EOI_AND_IR0_LOWEST_PRIORITY EQU 0E0h
|
---|
| 43 | COMMAND_EOI_AND_IR1_LOWEST_PRIORITY EQU 0E1h
|
---|
| 44 | COMMAND_EOI_AND_IR2_LOWEST_PRIORITY EQU 0E2h
|
---|
| 45 | COMMAND_EOI_AND_IR3_LOWEST_PRIORITY EQU 0E3h
|
---|
| 46 | COMMAND_EOI_AND_IR4_LOWEST_PRIORITY EQU 0E4h
|
---|
| 47 | COMMAND_EOI_AND_IR5_LOWEST_PRIORITY EQU 0E5h
|
---|
| 48 | COMMAND_EOI_AND_IR6_LOWEST_PRIORITY EQU 0E6h
|
---|
| 49 | COMMAND_EOI_AND_IR7_LOWEST_PRIORITY EQU 0E7h
|
---|
[3] | 50 |
|
---|
| 51 |
|
---|
[152] | 52 | %endif ; INT_CONTROLLER_INC
|
---|