source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS/Inc/IntController.inc@ 394

Last change on this file since 394 was 376, checked in by gregli@…, 13 years ago

WIDE checkin... Added copyright and license information to sorce files, as per the GPL instructions for usage.

File size: 3.0 KB
Line 
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
24MASTER_8259_IRR_AND_ISR_in EQU 20h ; Interrupt Request Register / Interrupt In-Service Register
25MASTER_8259_COMMAND_out EQU 20h ; Command output
26MASTER_8259_IMR EQU 21h ; Interrupt Mask Register
27MASTER_8259_INIT_out EQU 21h ; Initialization Command Parameters
28SLAVE_8259_IRR_AND_ISR_in EQU 0A0h ; Interrupt Request Register / Interrupt In-Service Register
29SLAVE_8259_COMMAND_out EQU 0A0h ; Command output
30SLAVE_8259_IMR EQU 0A1h ; Interrupt Mask Register
31SLAVE_8259_INIT_out EQU 0A1h ; Initialization Command Parameters
32
33; 8259 Interrupt Controller Commands
34COMMAND_CLEAR_ROTATE_IN_AUTOMATIC_EOI_MODE EQU 00h
35COMMAND_READ_INTERRUPT_REQUEST_REGISTER EQU 0Ah
36COMMAND_READ_INTERRUPT_INSERVICE_REGISTER EQU 0Bh
37COMMAND_END_OF_INTERRUPT EQU 20h
38COMMAND_NO_OPERATION EQU 40h
39COMMAND_CLEAR_SPECIAL_MASK_MODE EQU 48h
40COMMAND_SPECIFIC_EOI_FOR_IR0 EQU 60h
41COMMAND_SPECIFIC_EOI_FOR_IR1 EQU 61h
42COMMAND_SPECIFIC_EOI_FOR_IR2 EQU 62h
43COMMAND_SPECIFIC_EOI_FOR_IR3 EQU 63h
44COMMAND_SPECIFIC_EOI_FOR_IR4 EQU 64h
45COMMAND_SPECIFIC_EOI_FOR_IR5 EQU 65h
46COMMAND_SPECIFIC_EOI_FOR_IR6 EQU 66h
47COMMAND_SPECIFIC_EOI_FOR_IR7 EQU 67h
48COMMAND_SET_SPECIAL_MASK_MODE EQU 68h
49COMMAND_SET_ROTATE_IN_AUTOMATIC_EOI_MODE EQU 80h
50COMMAND_ROTATE_ON_NONSPECIFIC_EOI EQU 0A0h
51COMMAND_IR0_LOWEST_PRIORITY EQU 0C0h
52COMMAND_IR1_LOWEST_PRIORITY EQU 0C1h
53COMMAND_IR2_LOWEST_PRIORITY EQU 0C2h
54COMMAND_IR3_LOWEST_PRIORITY EQU 0C3h
55COMMAND_IR4_LOWEST_PRIORITY EQU 0C4h
56COMMAND_IR5_LOWEST_PRIORITY EQU 0C5h
57COMMAND_IR6_LOWEST_PRIORITY EQU 0C6h
58COMMAND_IR7_LOWEST_PRIORITY EQU 0C7h
59COMMAND_EOI_AND_IR0_LOWEST_PRIORITY EQU 0E0h
60COMMAND_EOI_AND_IR1_LOWEST_PRIORITY EQU 0E1h
61COMMAND_EOI_AND_IR2_LOWEST_PRIORITY EQU 0E2h
62COMMAND_EOI_AND_IR3_LOWEST_PRIORITY EQU 0E3h
63COMMAND_EOI_AND_IR4_LOWEST_PRIORITY EQU 0E4h
64COMMAND_EOI_AND_IR5_LOWEST_PRIORITY EQU 0E5h
65COMMAND_EOI_AND_IR6_LOWEST_PRIORITY EQU 0E6h
66COMMAND_EOI_AND_IR7_LOWEST_PRIORITY EQU 0E7h
67
68
69%endif ; INT_CONTROLLER_INC
Note: See TracBrowser for help on using the repository browser.