ia64/xen-unstable

view tools/firmware/acpi/acpi_fadt.c @ 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
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 */
19 #include "acpi2_0.h"
20 #include "acpi_fadt.h"
22 //
23 // Fixed ACPI Description Table
24 //
26 ACPI_2_0_FADT Fadt = {
27 {
28 ACPI_2_0_FADT_SIGNATURE,
29 sizeof (ACPI_2_0_FADT),
30 ACPI_2_0_FADT_REVISION,
31 0x00,// Checksum will be updated later
32 ACPI_OEM_ID, // OEM ID
33 ACPI_OEM_TABLE_ID, // OEM Table ID
34 ACPI_OEM_REVISION, // OEM Revision
35 ACPI_CREATOR_ID, // Creator ID
36 ACPI_CREATOR_REVISION, // Creator Revision
37 },
38 //
39 // These addresses will be updated later
40 //
41 0x00000000, // Physical Address (0~4G) of the FACS
42 0x00000000, // Physical Address (0~4G) of the DSDT
44 0x00,
45 ACPI_PREFERRED_PM_PROFILE, // Enterprise
46 ACPI_SCI_INT, // IRQ 9
47 ACPI_SMI_CMD,
48 ACPI_ACPI_ENABLE,
49 ACPI_ACPI_DISABLE,
50 ACPI_S4_BIOS_REQ, // zero. not supported
51 ACPI_PSTATE_CNT, // not supported
53 ACPI_PM1A_EVT_BLK_ADDRESS, // required
54 ACPI_PM1B_EVT_BLK_ADDRESS, // not supported
55 ACPI_PM1A_CNT_BLK_ADDRESS, // required
56 ACPI_PM1B_CNT_BLK_ADDRESS, // not supported
57 ACPI_PM2_CNT_BLK_ADDRESS, // not supported
58 ACPI_PM_TMR_BLK_ADDRESS, // required
59 ACPI_GPE0_BLK_ADDRESS, // not supported
60 ACPI_GPE1_BLK_ADDRESS, // not supported
61 ACPI_PM1_EVT_LEN,
62 ACPI_PM1_CNT_LEN,
63 ACPI_PM2_CNT_LEN,
64 ACPI_PM_TMR_LEN,
65 ACPI_GPE0_BLK_LEN,
66 ACPI_GPE1_BLK_LEN,
67 ACPI_GPE1_BASE,
69 ACPI_CST_CNT,
70 ACPI_P_LVL2_LAT, // >100, not support C2 state
71 ACPI_P_LVL3_LAT, // >1000, not support C3 state
72 ACPI_FLUSH_SIZE, // not support
73 ACPI_FLUSH_STRIDE, // not support
74 ACPI_DUTY_OFFSET, // not support
75 ACPI_DUTY_WIDTH, // not support
76 ACPI_DAY_ALRM, // not support
77 ACPI_MON_ALRM, // not support
78 ACPI_CENTURY, // not support
79 ACPI_IAPC_BOOT_ARCH,
80 0x00,
81 ACPI_FIXED_FEATURE_FLAGS,
83 //
84 // Reset Register Block
85 //
86 { ACPI_RESET_REG_ADDRESS_SPACE_ID,
87 ACPI_RESET_REG_BIT_WIDTH,
88 ACPI_RESET_REG_BIT_OFFSET,
89 0x00,
90 ACPI_RESET_REG_ADDRESS,
91 },
93 ACPI_RESET_VALUE,
94 {
95 0x00,
96 0x00,
97 0x00,
98 },
99 //
100 // These addresses will be updated later
101 //
102 0x0000000000000000, // X_FIRMWARE_CTRL: 64bit physical address of the FACS.
103 0x0000000000000000, // X_DSDT: 64bit physical address of the DSDT.
105 //
106 // PM1a Event Register Block
107 //
108 {
109 ACPI_PM1A_EVT_BLK_ADDRESS_SPACE_ID,
110 ACPI_PM1A_EVT_BLK_BIT_WIDTH,
111 ACPI_PM1A_EVT_BLK_BIT_OFFSET,
112 0x00,
113 ACPI_PM1A_EVT_BLK_ADDRESS,
114 },
116 //
117 // PM1b Event Register Block
118 //
119 {
120 ACPI_PM1B_EVT_BLK_ADDRESS_SPACE_ID, // not support
121 ACPI_PM1B_EVT_BLK_BIT_WIDTH,
122 ACPI_PM1B_EVT_BLK_BIT_OFFSET,
123 0x00,
124 ACPI_PM1B_EVT_BLK_ADDRESS,
125 },
127 //
128 // PM1a Control Register Block
129 //
130 {
131 ACPI_PM1A_CNT_BLK_ADDRESS_SPACE_ID,
132 ACPI_PM1A_CNT_BLK_BIT_WIDTH,
133 ACPI_PM1A_CNT_BLK_BIT_OFFSET,
134 0x00,
135 ACPI_PM1A_CNT_BLK_ADDRESS,
136 },
138 //
139 // PM1b Control Register Block
140 //
141 {
142 ACPI_PM1B_CNT_BLK_ADDRESS_SPACE_ID,
143 ACPI_PM1B_CNT_BLK_BIT_WIDTH,
144 ACPI_PM1B_CNT_BLK_BIT_OFFSET,
145 0x00,
146 ACPI_PM1B_CNT_BLK_ADDRESS,
147 },
149 //
150 // PM2 Control Register Block
151 //
152 {
153 ACPI_PM2_CNT_BLK_ADDRESS_SPACE_ID,
154 ACPI_PM2_CNT_BLK_BIT_WIDTH,
155 ACPI_PM2_CNT_BLK_BIT_OFFSET,
156 0x00,
157 ACPI_PM2_CNT_BLK_ADDRESS,
158 },
160 //
161 // PM Timer Control Register Block
162 //
163 {
164 ACPI_PM_TMR_BLK_ADDRESS_SPACE_ID,
165 ACPI_PM_TMR_BLK_BIT_WIDTH,
166 ACPI_PM_TMR_BLK_BIT_OFFSET,
167 0x00,
168 ACPI_PM_TMR_BLK_ADDRESS,
169 },
171 //
172 // General Purpose Event 0 Register Block
173 //
174 {
175 ACPI_GPE0_BLK_ADDRESS_SPACE_ID,
176 ACPI_GPE0_BLK_BIT_WIDTH,
177 ACPI_GPE0_BLK_BIT_OFFSET,
178 0x00,
179 ACPI_GPE0_BLK_ADDRESS,
180 },
182 //
183 // General Purpose Event 1 Register Block
184 //
185 {
186 ACPI_GPE1_BLK_ADDRESS_SPACE_ID,
187 ACPI_GPE1_BLK_BIT_WIDTH,
188 ACPI_GPE1_BLK_BIT_OFFSET,
189 0x00,
190 ACPI_GPE1_BLK_ADDRESS
191 }
193 };