ia64/xen-unstable

view tools/firmware/hvmloader/acpi/static_tables.c @ 18711:e5332ba0309f

hvmloader: Remove unneeded legacy flag from FADT flags field.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
rHG: changed tools/firmware/hvmloader/acpi/static_tables.c
author Keir Fraser <keir.fraser@citrix.com>
date Thu Oct 23 11:18:34 2008 +0100 (2008-10-23)
parents c6eeb71a85cf
children 567d312e80ad
line source
1 /*
2 * Copyright (c) 2004, Intel Corporation.
3 * Copyright (c) 2006, Keir Fraser, XenSource Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
16 * Place - Suite 330, Boston, MA 02111-1307 USA.
17 */
19 #include "acpi2_0.h"
20 #include "../config.h"
21 #include <xen/hvm/ioreq.h>
23 /*
24 * Firmware ACPI Control Structure (FACS).
25 */
27 struct acpi_20_facs Facs = {
28 .signature = ACPI_2_0_FACS_SIGNATURE,
29 .length = sizeof(struct acpi_20_facs),
30 .version = ACPI_2_0_FACS_VERSION
31 };
34 /*
35 * Fixed ACPI Description Table (FADT).
36 */
38 #define ACPI_PM1A_EVT_BLK_BIT_WIDTH 0x20
39 #define ACPI_PM1A_EVT_BLK_BIT_OFFSET 0x00
40 #define ACPI_PM1A_CNT_BLK_BIT_WIDTH 0x10
41 #define ACPI_PM1A_CNT_BLK_BIT_OFFSET 0x00
42 #define ACPI_PM_TMR_BLK_BIT_WIDTH 0x20
43 #define ACPI_PM_TMR_BLK_BIT_OFFSET 0x00
45 struct acpi_20_fadt Fadt = {
46 .header = {
47 .signature = ACPI_2_0_FADT_SIGNATURE,
48 .length = sizeof(struct acpi_20_fadt),
49 .revision = ACPI_2_0_FADT_REVISION,
50 .oem_id = ACPI_OEM_ID,
51 .oem_table_id = ACPI_OEM_TABLE_ID,
52 .oem_revision = ACPI_OEM_REVISION,
53 .creator_id = ACPI_CREATOR_ID,
54 .creator_revision = ACPI_CREATOR_REVISION
55 },
57 .sci_int = 9,
59 .pm1a_evt_blk = ACPI_PM1A_EVT_BLK_ADDRESS,
60 .pm1a_cnt_blk = ACPI_PM1A_CNT_BLK_ADDRESS,
61 .pm_tmr_blk = ACPI_PM_TMR_BLK_ADDRESS,
62 .gpe0_blk = ACPI_GPE0_BLK_ADDRESS,
63 .pm1_evt_len = ACPI_PM1A_EVT_BLK_BIT_WIDTH / 8,
64 .pm1_cnt_len = ACPI_PM1A_CNT_BLK_BIT_WIDTH / 8,
65 .pm_tmr_len = ACPI_PM_TMR_BLK_BIT_WIDTH / 8,
66 .gpe0_blk_len = ACPI_GPE0_BLK_LEN,
68 .p_lvl2_lat = 0x0fff, /* >100, means we do not support C2 state */
69 .p_lvl3_lat = 0x0fff, /* >1000, means we do not support C3 state */
70 .iapc_boot_arch = ACPI_8042,
71 .flags = (ACPI_PROC_C1 | ACPI_SLP_BUTTON |
72 ACPI_WBINVD | ACPI_PWR_BUTTON |
73 ACPI_FIX_RTC | ACPI_TMR_VAL_EXT),
75 .reset_reg = {
76 .address_space_id = ACPI_SYSTEM_IO,
77 .register_bit_width = 8, /* *must* be 8 */
78 .register_bit_offset = 0, /* *must* be 0 */
79 .address = 0xcf9
80 },
81 .reset_value = 6,
83 .x_pm1a_evt_blk = {
84 .address_space_id = ACPI_SYSTEM_IO,
85 .register_bit_width = ACPI_PM1A_EVT_BLK_BIT_WIDTH,
86 .register_bit_offset = ACPI_PM1A_EVT_BLK_BIT_OFFSET,
87 .address = ACPI_PM1A_EVT_BLK_ADDRESS,
88 },
90 .x_pm1a_cnt_blk = {
91 .address_space_id = ACPI_SYSTEM_IO,
92 .register_bit_width = ACPI_PM1A_CNT_BLK_BIT_WIDTH,
93 .register_bit_offset = ACPI_PM1A_CNT_BLK_BIT_OFFSET,
94 .address = ACPI_PM1A_CNT_BLK_ADDRESS,
95 },
97 .x_pm_tmr_blk = {
98 .address_space_id = ACPI_SYSTEM_IO,
99 .register_bit_width = ACPI_PM_TMR_BLK_BIT_WIDTH,
100 .register_bit_offset = ACPI_PM_TMR_BLK_BIT_OFFSET,
101 .address = ACPI_PM_TMR_BLK_ADDRESS,
102 }
103 };
105 struct acpi_20_rsdt Rsdt = {
106 .header = {
107 .signature = ACPI_2_0_RSDT_SIGNATURE,
108 .length = sizeof(struct acpi_header),
109 .revision = ACPI_2_0_RSDT_REVISION,
110 .oem_id = ACPI_OEM_ID,
111 .oem_table_id = ACPI_OEM_TABLE_ID,
112 .oem_revision = ACPI_OEM_REVISION,
113 .creator_id = ACPI_CREATOR_ID,
114 .creator_revision = ACPI_CREATOR_REVISION
115 }
116 };
118 struct acpi_20_xsdt Xsdt = {
119 .header = {
120 .signature = ACPI_2_0_XSDT_SIGNATURE,
121 .length = sizeof(struct acpi_header),
122 .revision = ACPI_2_0_XSDT_REVISION,
123 .oem_id = ACPI_OEM_ID,
124 .oem_table_id = ACPI_OEM_TABLE_ID,
125 .oem_revision = ACPI_OEM_REVISION,
126 .creator_id = ACPI_CREATOR_ID,
127 .creator_revision = ACPI_CREATOR_REVISION
128 }
129 };
132 struct acpi_20_rsdp Rsdp = {
133 .signature = ACPI_2_0_RSDP_SIGNATURE,
134 .oem_id = ACPI_OEM_ID,
135 .revision = ACPI_2_0_RSDP_REVISION,
136 .length = sizeof(struct acpi_20_rsdp)
137 };
139 /*
140 * Local variables:
141 * mode: C
142 * c-set-style: "BSD"
143 * c-basic-offset: 4
144 * tab-width: 4
145 * indent-tabs-mode: nil
146 * End:
147 */