ia64/xen-unstable

view tools/firmware/acpi/acpi_fadt.h @ 6392:bca2fd76995e

Add EXT3 as built-in filesystem for x86/64 domU.
author kaf24@firebug.cl.cam.ac.uk
date Wed Aug 24 15:21:48 2005 +0000 (2005-08-24)
parents bc8bb3a26ccc
children f8d20c3e4225
line source
1 /*
2 * Copyright (c) 2004, Intel Corporation.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15 * Place - Suite 330, Boston, MA 02111-1307 USA.
16 *
17 */
18 #ifndef _FADT_H_
19 #define _FADT_H_
21 //
22 // FADT Definitions, see ACPI 2.0 specification for details.
23 //
25 #define ACPI_OEM_FADT_REVISION 0x00000000 // TBD
27 #define ACPI_PREFERRED_PM_PROFILE 0x04
28 #define ACPI_SCI_INT 0x0009
29 #define ACPI_SMI_CMD 0x000000B2
30 #define ACPI_ACPI_ENABLE 0x00
31 #define ACPI_ACPI_DISABLE 0x00
32 #define ACPI_S4_BIOS_REQ 0x00
33 #define ACPI_PSTATE_CNT 0x00
34 #define ACPI_GPE1_BASE 0x20
35 #define ACPI_CST_CNT 0x00
36 #define ACPI_P_LVL2_LAT 0x0065
37 #define ACPI_P_LVL3_LAT 0X03E9
38 #define ACPI_FLUSH_SIZE 0x00
39 #define ACPI_FLUSH_STRIDE 0x00
40 #define ACPI_DUTY_OFFSET 0x01
41 #define ACPI_DUTY_WIDTH 0x00
42 #define ACPI_DAY_ALRM 0x00
43 #define ACPI_MON_ALRM 0x00
44 #define ACPI_CENTURY 0x00
46 //
47 // IA-PC Boot Architecture Flags, see ACPI 2.0 table specification and Acpi2_0.h
48 //
49 #define ACPI_IAPC_BOOT_ARCH (ACPI_LEGACY_DEVICES | ACPI_8042)
51 //
52 // Fixed Feature Flags
53 //
54 #define ACPI_FIXED_FEATURE_FLAGS (ACPI_SLP_BUTTON| ACPI_WBINVD )
56 //
57 // PM1A Event Register Block Generic Address Information
58 //
59 #define ACPI_PM1A_EVT_BLK_ADDRESS_SPACE_ID ACPI_SYSTEM_IO
60 #define ACPI_PM1A_EVT_BLK_BIT_WIDTH 0x00
61 #define ACPI_PM1A_EVT_BLK_BIT_OFFSET 0x00
62 #define ACPI_PM1A_EVT_BLK_ADDRESS 0x0000000000000000
64 //
65 // PM1B Event Register Block Generic Address Information
66 //
67 #define ACPI_PM1B_EVT_BLK_ADDRESS_SPACE_ID ACPI_SYSTEM_IO
68 #define ACPI_PM1B_EVT_BLK_BIT_WIDTH 0x00
69 #define ACPI_PM1B_EVT_BLK_BIT_OFFSET 0x00
70 #define ACPI_PM1B_EVT_BLK_ADDRESS 0x0000000000000000
72 //
73 // PM1A Control Register Block Generic Address Information
74 //
75 #define ACPI_PM1A_CNT_BLK_ADDRESS_SPACE_ID ACPI_SYSTEM_IO
76 #define ACPI_PM1A_CNT_BLK_BIT_WIDTH 0x10
77 #define ACPI_PM1A_CNT_BLK_BIT_OFFSET 0x00
78 #define ACPI_PM1A_CNT_BLK_ADDRESS (ACPI_PM1A_EVT_BLK_ADDRESS + 0x04)
80 //
81 // PM1B Control Register Block Generic Address Information
82 //
83 #define ACPI_PM1B_CNT_BLK_ADDRESS_SPACE_ID ACPI_SYSTEM_IO
84 #define ACPI_PM1B_CNT_BLK_BIT_WIDTH 0x00
85 #define ACPI_PM1B_CNT_BLK_BIT_OFFSET 0x00
86 #define ACPI_PM1B_CNT_BLK_ADDRESS 0x0000000000000000
88 //
89 // PM2 Control Register Block Generic Address Information
90 //
91 #define ACPI_PM2_CNT_BLK_ADDRESS_SPACE_ID ACPI_SYSTEM_IO
92 #define ACPI_PM2_CNT_BLK_BIT_WIDTH 0x00
93 #define ACPI_PM2_CNT_BLK_BIT_OFFSET 0x00
94 #define ACPI_PM2_CNT_BLK_ADDRESS 0x0000000000000000
96 //
97 // Power Management Timer Control Register Block Generic Address
98 // Information
99 //
100 #define ACPI_PM_TMR_BLK_ADDRESS_SPACE_ID ACPI_SYSTEM_IO
101 #define ACPI_PM_TMR_BLK_BIT_WIDTH 0x20
102 #define ACPI_PM_TMR_BLK_BIT_OFFSET 0x00
103 #define ACPI_PM_TMR_BLK_ADDRESS (ACPI_PM1A_EVT_BLK_ADDRESS + 0x08)
105 //
106 // General Purpose Event 0 Register Block Generic Address
107 // Information
108 //
110 #define ACPI_GPE0_BLK_ADDRESS_SPACE_ID ACPI_SYSTEM_IO
111 #define ACPI_GPE0_BLK_BIT_WIDTH 0x00
112 #define ACPI_GPE0_BLK_BIT_OFFSET 0x00
113 #define ACPI_GPE0_BLK_ADDRESS 0x00
115 //
116 // General Purpose Event 1 Register Block Generic Address
117 // Information
118 //
120 #define ACPI_GPE1_BLK_ADDRESS_SPACE_ID ACPI_SYSTEM_IO
121 #define ACPI_GPE1_BLK_BIT_WIDTH 0x00
122 #define ACPI_GPE1_BLK_BIT_OFFSET 0x00
123 #define ACPI_GPE1_BLK_ADDRESS 0x00
126 //
127 // Reset Register Generic Address Information
128 //
129 #define ACPI_RESET_REG_ADDRESS_SPACE_ID ACPI_SYSTEM_IO
130 #define ACPI_RESET_REG_BIT_WIDTH 0x08
131 #define ACPI_RESET_REG_BIT_OFFSET 0x00
132 #define ACPI_RESET_REG_ADDRESS 0x0000000000000CF9
133 #define ACPI_RESET_VALUE 0x06
135 //
136 // Number of bytes decoded by PM1 event blocks (a and b)
137 //
138 #define ACPI_PM1_EVT_LEN ((ACPI_PM1A_EVT_BLK_BIT_WIDTH + ACPI_PM1B_EVT_BLK_BIT_WIDTH) / 8)
140 //
141 // Number of bytes decoded by PM1 control blocks (a and b)
142 //
143 #define ACPI_PM1_CNT_LEN ((ACPI_PM1A_CNT_BLK_BIT_WIDTH + ACPI_PM1B_CNT_BLK_BIT_WIDTH) / 8)
145 //
146 // Number of bytes decoded by PM2 control block
147 //
148 #define ACPI_PM2_CNT_LEN (ACPI_PM2_CNT_BLK_BIT_WIDTH / 8)
150 //
151 // Number of bytes decoded by PM timer block
152 //
153 #define ACPI_PM_TMR_LEN (ACPI_PM_TMR_BLK_BIT_WIDTH / 8)
155 //
156 // Number of bytes decoded by GPE0 block
157 //
158 #define ACPI_GPE0_BLK_LEN (ACPI_GPE0_BLK_BIT_WIDTH / 8)
160 //
161 // Number of bytes decoded by GPE1 block
162 //
163 #define ACPI_GPE1_BLK_LEN 0
165 #endif