|
|
1.1 root 1: /*
2: * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * The contents of this file constitute Original Code as defined in and
7: * are subject to the Apple Public Source License Version 1.1 (the
8: * "License"). You may not use this file except in compliance with the
9: * License. Please obtain a copy of the License at
10: * http://www.apple.com/publicsource and read it before using this file.
11: *
12: * This Original Code and all software distributed under the License are
13: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17: * License for the specific language governing rights and limitations
18: * under the License.
19: *
20: * @APPLE_LICENSE_HEADER_END@
21: */
22: /*
23: * @OSF_COPYRIGHT@
24: *
25: */
26:
27: #define LAPIC_START 0xFEE00000
28: #define LAPIC_SIZE 0x00000400
29:
30: #define LAPIC_ID 0x00000020
31: #define LAPIC_ID_SHIFT 24
32: #define LAPIC_ID_MASK 0x0F
33: #define LAPIC_VERSION 0x00000030
34: #define LAPIC_VERSION_MASK 0xFF
35: #define LAPIC_TPR 0x00000080
36: #define LAPIC_TPR_MASK 0xFF
37: #define LAPIC_APR 0x00000090
38: #define LAPIC_APR_MASK 0xFF
39: #define LAPIC_PPR 0x000000A0
40: #define LAPIC_PPR_MASK 0xFF
41: #define LAPIC_EOI 0x000000B0
42: #define LAPIC_REMOTE_READ 0x000000C0
43: #define LAPIC_LDR 0x000000D0
44: #define LAPIC_LDR_SHIFT 24
45: #define LAPIC_DFR 0x000000E0
46: #define LAPIC_DFR_FLAT 0xFFFFFFFF
47: #define LAPIC_DFR_CLUSTER 0x0FFFFFFF
48: #define LAPIC_DFR_SHIFT 28
49: #define LAPIC_SVR 0x000000F0
50: #define LAPIC_SVR_MASK 0x0FF
51: #define LAPIC_SVR_ENABLE 0x100
52: #define LAPIC_SVR_FOCUS_OFF 0x200
53: #define LAPIC_ISR_BASE 0x00000100
54: #define LAPIC_TMR_BASE 0x00000180
55: #define LAPIC_IRR_BASE 0x00000200
56: #define LAPIC_ERROR_STATUS 0x00000280
57: #define LAPIC_ICR 0x00000300
58: #define LAPIC_ICR_VECTOR_MASK 0x000FF
59: #define LAPIC_ICR_DM_MASK 0x00700
60: #define LAPIC_ICR_DM_FIXED 0x00000
61: #define LAPIC_ICR_DM_LOWEST 0x00100
62: #define LAPIC_ICR_DM_SMI 0x00200
63: #define LAPIC_ICR_DM_REMOTE 0x00300
64: #define LAPIC_ICR_DM_NMI 0x00400
65: #define LAPIC_ICR_DM_INIT 0x00500
66: #define LAPIC_ICR_DM_STARTUP 0x00600
67: #define LAPIC_ICR_DM_LOGICAL 0x00800
68: #define LAPIC_ICR_DS_PENDING 0x01000
69: #define LAPIC_ICR_LEVEL_ASSERT 0x04000
70: #define LAPIC_ICR_TRIGGER_LEVEL 0x08000
71: #define LAPIC_ICR_RR_MASK 0x30000
72: #define LAPIC_ICR_RR_INVALID 0x00000
73: #define LAPIC_ICR_RR_INPROGRESS 0x10000
74: #define LAPIC_ICR_RR_VALID 0x20000
75: #define LAPIC_ICR_DSS_MASK 0xC0000
76: #define LAPIC_ICR_DSS_DEST 0x00000
77: #define LAPIC_ICR_DSS_SELF 0x40000
78: #define LAPIC_ICR_DSS_ALL 0x80000
79: #define LAPIC_ICR_DSS_OTHERS 0xC0000
80: #define LAPIC_ICRD 0x00000310
81: #define LAPIC_ICRD_DEST_SHIFT 24
82: #define LAPIC_LVT_TIMER 0x00000320
83: #define LAPIC_LVT_LINT0 0x00000350
84: #define LAPIC_LVT_LINT1 0x00000360
85: #define LAPIC_LVT_ERROR 0x00000370
86: #define LAPIC_LVT_VECTOR_MASK 0x0000F
87: #define LAPIC_LVT_DM_SHIFT 8
88: #define LAPIC_LVT_DM_MASK 0x00007
89: #define LAPIC_LVT_DM_FIXED 0x00000
90: #define LAPIC_LVT_DM_NMI 0x00400
91: #define LAPIC_LVT_DM_EXTINT 0x00700
92: #define LAPIC_LVT_DS_PENDING 0x01000
93: #define LAPIC_LVT_IP_PLRITY_LOW 0x02000
94: #define LAPIC_LVT_REMOTE_IRR 0x04000
95: #define LAPIC_LVT_TM_LEVEL 0x08000
96: #define LAPIC_LVT_MASKED 0x10000
97: #define LAPIC_LVT_PERIODIC 0x20000
98: #define LAPIC_INITIAL_COUNT_TIMER 0x00000380
99: #define LAPIC_CURRENT_COUNT_TIMER 0x00000390
100: #define LAPIC_TIMER_DIVIDE_CONFIG 0x000003E0
101:
102: #define IOAPIC_START 0xFEC00000
103: #define IOAPIC_SIZE 0x00000020
104:
105: #define IOAPIC_RSELECT 0x00000000
106: #define IOAPIC_RWINDOW 0x00000010
107: #define IOA_R_ID 0x00
108: #define IOA_R_ID_SHIFT 24
109: #define IOA_R_VERSION 0x01
110: #define IOA_R_VERSION_MASK 0xFF
111: #define IOA_R_VERSION_ME_SHIFT 16
112: #define IOA_R_VERSION_ME_MASK 0xFF
113: #define IOA_R_REDIRECTION 0x10
114: #define IOA_R_R_VECTOR_MASK 0x000FF
115: #define IOA_R_R_DM_MASK 0x00700
116: #define IOA_R_R_DM_FIXED 0x00000
117: #define IOA_R_R_DM_LOWEST 0x00100
118: #define IOA_R_R_DM_NMI 0x00400
119: #define IOA_R_R_DM_RESET 0x00500
120: #define IOA_R_R_DM_EXTINT 0x00700
121: #define IOA_R_R_DEST_LOGICAL 0x00800
122: #define IOA_R_R_DS_PENDING 0x01000
123: #define IOA_R_R_IP_PLRITY_LOW 0x02000
124: #define IOA_R_R_TM_LEVEL 0x08000
125: #define IOA_R_R_MASKED 0x10000
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.