1 | ; Project name : XTIDE Universal BIOS
|
---|
2 | ; Description : Equates for 8259 Interrupt Controllers.
|
---|
3 |
|
---|
4 | ;
|
---|
5 | ; XTIDE Universal BIOS and Associated Tools
|
---|
6 | ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team.
|
---|
7 | ;
|
---|
8 | ; This program is free software; you can redistribute it and/or modify
|
---|
9 | ; it under the terms of the GNU General Public License as published by
|
---|
10 | ; the Free Software Foundation; either version 2 of the License, or
|
---|
11 | ; (at your option) any later version.
|
---|
12 | ;
|
---|
13 | ; This program is distributed in the hope that it will be useful,
|
---|
14 | ; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
15 | ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
16 | ; GNU General Public License for more details.
|
---|
17 | ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
---|
18 | ;
|
---|
19 |
|
---|
20 | %ifndef INT_CONTROLLER_INC
|
---|
21 | %define INT_CONTROLLER_INC
|
---|
22 |
|
---|
23 | ; 8259 Master and Slave Interrupt Controller Ports
|
---|
24 | MASTER_8259_IRR_AND_ISR_in EQU 20h ; Interrupt Request Register / Interrupt In-Service Register
|
---|
25 | MASTER_8259_COMMAND_out EQU 20h ; Command output
|
---|
26 | MASTER_8259_IMR EQU 21h ; Interrupt Mask Register
|
---|
27 | MASTER_8259_INIT_out EQU 21h ; Initialization Command Parameters
|
---|
28 | SLAVE_8259_IRR_AND_ISR_in EQU 0A0h ; Interrupt Request Register / Interrupt In-Service Register
|
---|
29 | SLAVE_8259_COMMAND_out EQU 0A0h ; Command output
|
---|
30 | SLAVE_8259_IMR EQU 0A1h ; Interrupt Mask Register
|
---|
31 | SLAVE_8259_INIT_out EQU 0A1h ; Initialization Command Parameters
|
---|
32 |
|
---|
33 | ; 8259 Interrupt Controller Commands
|
---|
34 | COMMAND_CLEAR_ROTATE_IN_AUTOMATIC_EOI_MODE EQU 00h
|
---|
35 | COMMAND_READ_INTERRUPT_REQUEST_REGISTER EQU 0Ah
|
---|
36 | COMMAND_READ_INTERRUPT_INSERVICE_REGISTER EQU 0Bh
|
---|
37 | COMMAND_END_OF_INTERRUPT EQU 20h
|
---|
38 | COMMAND_NO_OPERATION EQU 40h
|
---|
39 | COMMAND_CLEAR_SPECIAL_MASK_MODE EQU 48h
|
---|
40 | COMMAND_SPECIFIC_EOI_FOR_IR0 EQU 60h
|
---|
41 | COMMAND_SPECIFIC_EOI_FOR_IR1 EQU 61h
|
---|
42 | COMMAND_SPECIFIC_EOI_FOR_IR2 EQU 62h
|
---|
43 | COMMAND_SPECIFIC_EOI_FOR_IR3 EQU 63h
|
---|
44 | COMMAND_SPECIFIC_EOI_FOR_IR4 EQU 64h
|
---|
45 | COMMAND_SPECIFIC_EOI_FOR_IR5 EQU 65h
|
---|
46 | COMMAND_SPECIFIC_EOI_FOR_IR6 EQU 66h
|
---|
47 | COMMAND_SPECIFIC_EOI_FOR_IR7 EQU 67h
|
---|
48 | COMMAND_SET_SPECIAL_MASK_MODE EQU 68h
|
---|
49 | COMMAND_SET_ROTATE_IN_AUTOMATIC_EOI_MODE EQU 80h
|
---|
50 | COMMAND_ROTATE_ON_NONSPECIFIC_EOI EQU 0A0h
|
---|
51 | COMMAND_IR0_LOWEST_PRIORITY EQU 0C0h
|
---|
52 | COMMAND_IR1_LOWEST_PRIORITY EQU 0C1h
|
---|
53 | COMMAND_IR2_LOWEST_PRIORITY EQU 0C2h
|
---|
54 | COMMAND_IR3_LOWEST_PRIORITY EQU 0C3h
|
---|
55 | COMMAND_IR4_LOWEST_PRIORITY EQU 0C4h
|
---|
56 | COMMAND_IR5_LOWEST_PRIORITY EQU 0C5h
|
---|
57 | COMMAND_IR6_LOWEST_PRIORITY EQU 0C6h
|
---|
58 | COMMAND_IR7_LOWEST_PRIORITY EQU 0C7h
|
---|
59 | COMMAND_EOI_AND_IR0_LOWEST_PRIORITY EQU 0E0h
|
---|
60 | COMMAND_EOI_AND_IR1_LOWEST_PRIORITY EQU 0E1h
|
---|
61 | COMMAND_EOI_AND_IR2_LOWEST_PRIORITY EQU 0E2h
|
---|
62 | COMMAND_EOI_AND_IR3_LOWEST_PRIORITY EQU 0E3h
|
---|
63 | COMMAND_EOI_AND_IR4_LOWEST_PRIORITY EQU 0E4h
|
---|
64 | COMMAND_EOI_AND_IR5_LOWEST_PRIORITY EQU 0E5h
|
---|
65 | COMMAND_EOI_AND_IR6_LOWEST_PRIORITY EQU 0E6h
|
---|
66 | COMMAND_EOI_AND_IR7_LOWEST_PRIORITY EQU 0E7h
|
---|
67 |
|
---|
68 |
|
---|
69 | %endif ; INT_CONTROLLER_INC
|
---|