blob: 9179e9abe3db2e4a12f0596450985699c513836c [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/******************************************************************************
2 *
3 * Module Name: evxfevnt - External Interfaces, ACPI event disable/enable
4 *
5 *****************************************************************************/
6
7/*
Bob Moorec8100dc2016-01-15 08:17:03 +08008 * Copyright (C) 2000 - 2016, Intel Corp.
Linus Torvalds1da177e2005-04-16 15:20:36 -07009 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.
17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * substantially similar to the "NO WARRANTY" disclaimer below
19 * ("Disclaimer") and any redistribution must be conditioned upon
20 * including a substantially similar Disclaimer requirement for further
21 * binary redistribution.
22 * 3. Neither the names of the above-listed copyright holders nor the names
23 * of any contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * Alternatively, this software may be distributed under the terms of the
27 * GNU General Public License ("GPL") version 2 as published by the Free
28 * Software Foundation.
29 *
30 * NO WARRANTY
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 * POSSIBILITY OF SUCH DAMAGES.
42 */
43
Lv Zheng839e9282013-10-29 09:29:51 +080044#define EXPORT_ACPI_INTERFACES
45
Linus Torvalds1da177e2005-04-16 15:20:36 -070046#include <acpi/acpi.h>
Len Browne2f7a772009-01-09 00:30:03 -050047#include "accommon.h"
Len Browne2f7a772009-01-09 00:30:03 -050048#include "actables.h"
Linus Torvalds1da177e2005-04-16 15:20:36 -070049
50#define _COMPONENT ACPI_EVENTS
Len Brown4be44fc2005-08-05 00:44:28 -040051ACPI_MODULE_NAME("evxfevnt")
Linus Torvalds1da177e2005-04-16 15:20:36 -070052
Bob Moore33620c52012-02-14 18:14:27 +080053#if (!ACPI_REDUCED_HARDWARE) /* Entire module */
Linus Torvalds1da177e2005-04-16 15:20:36 -070054/*******************************************************************************
55 *
56 * FUNCTION: acpi_enable
57 *
58 * PARAMETERS: None
59 *
60 * RETURN: Status
61 *
62 * DESCRIPTION: Transfers the system into ACPI mode.
63 *
64 ******************************************************************************/
Len Brown4be44fc2005-08-05 00:44:28 -040065acpi_status acpi_enable(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -070066{
Len Brownb430acb2010-05-06 17:41:08 -040067 acpi_status status;
Len Brown3d695832010-06-28 20:55:01 -040068 int retry;
Linus Torvalds1da177e2005-04-16 15:20:36 -070069
Bob Mooreb229cf92006-04-21 17:15:00 -040070 ACPI_FUNCTION_TRACE(acpi_enable);
Linus Torvalds1da177e2005-04-16 15:20:36 -070071
Bob Moorec8573032007-02-02 19:48:23 +030072 /* ACPI tables must be present */
73
Lv Zheng62fcce92015-10-14 13:53:57 +080074 if (acpi_gbl_fadt_index == ACPI_INVALID_TABLE_INDEX) {
Bob Moorec8573032007-02-02 19:48:23 +030075 return_ACPI_STATUS(AE_NO_ACPI_TABLES);
76 }
77
Bob Moorec39660b2013-03-08 09:22:14 +000078 /* If the Hardware Reduced flag is set, machine is always in acpi mode */
79
80 if (acpi_gbl_reduced_hardware) {
81 return_ACPI_STATUS(AE_OK);
82 }
83
Bob Moorec8573032007-02-02 19:48:23 +030084 /* Check current mode */
85
Linus Torvalds1da177e2005-04-16 15:20:36 -070086 if (acpi_hw_get_mode() == ACPI_SYS_MODE_ACPI) {
Len Brown4be44fc2005-08-05 00:44:28 -040087 ACPI_DEBUG_PRINT((ACPI_DB_INIT,
88 "System is already in ACPI mode\n"));
Len Brownb430acb2010-05-06 17:41:08 -040089 return_ACPI_STATUS(AE_OK);
Linus Torvalds1da177e2005-04-16 15:20:36 -070090 }
91
Len Brownb430acb2010-05-06 17:41:08 -040092 /* Transition to ACPI mode */
93
94 status = acpi_hw_set_mode(ACPI_SYS_MODE_ACPI);
95 if (ACPI_FAILURE(status)) {
96 ACPI_ERROR((AE_INFO,
97 "Could not transition to ACPI mode"));
98 return_ACPI_STATUS(status);
99 }
100
101 /* Sanity check that transition succeeded */
102
Len Brown3d695832010-06-28 20:55:01 -0400103 for (retry = 0; retry < 30000; ++retry) {
104 if (acpi_hw_get_mode() == ACPI_SYS_MODE_ACPI) {
105 if (retry != 0)
106 ACPI_WARNING((AE_INFO,
107 "Platform took > %d00 usec to enter ACPI mode", retry));
108 return_ACPI_STATUS(AE_OK);
109 }
110 acpi_os_stall(100); /* 100 usec */
Len Brownb430acb2010-05-06 17:41:08 -0400111 }
112
Len Brown3d695832010-06-28 20:55:01 -0400113 ACPI_ERROR((AE_INFO, "Hardware did not enter ACPI mode"));
114 return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700115}
116
Bob Moore83135242006-10-03 00:00:00 -0400117ACPI_EXPORT_SYMBOL(acpi_enable)
118
Linus Torvalds1da177e2005-04-16 15:20:36 -0700119/*******************************************************************************
120 *
121 * FUNCTION: acpi_disable
122 *
123 * PARAMETERS: None
124 *
125 * RETURN: Status
126 *
Robert Moore44f6c012005-04-18 22:49:35 -0400127 * DESCRIPTION: Transfers the system into LEGACY (non-ACPI) mode.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700128 *
129 ******************************************************************************/
Len Brown4be44fc2005-08-05 00:44:28 -0400130acpi_status acpi_disable(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700131{
Len Brown4be44fc2005-08-05 00:44:28 -0400132 acpi_status status = AE_OK;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700133
Bob Mooreb229cf92006-04-21 17:15:00 -0400134 ACPI_FUNCTION_TRACE(acpi_disable);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700135
Bob Moorec39660b2013-03-08 09:22:14 +0000136 /* If the Hardware Reduced flag is set, machine is always in acpi mode */
137
138 if (acpi_gbl_reduced_hardware) {
139 return_ACPI_STATUS(AE_OK);
140 }
141
Linus Torvalds1da177e2005-04-16 15:20:36 -0700142 if (acpi_hw_get_mode() == ACPI_SYS_MODE_LEGACY) {
Len Brown4be44fc2005-08-05 00:44:28 -0400143 ACPI_DEBUG_PRINT((ACPI_DB_INIT,
144 "System is already in legacy (non-ACPI) mode\n"));
145 } else {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700146 /* Transition to LEGACY mode */
147
Len Brown4be44fc2005-08-05 00:44:28 -0400148 status = acpi_hw_set_mode(ACPI_SYS_MODE_LEGACY);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700149
Len Brown4be44fc2005-08-05 00:44:28 -0400150 if (ACPI_FAILURE(status)) {
Bob Mooreb8e4d892006-01-27 16:43:00 -0500151 ACPI_ERROR((AE_INFO,
152 "Could not exit ACPI mode to legacy mode"));
Len Brown4be44fc2005-08-05 00:44:28 -0400153 return_ACPI_STATUS(status);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700154 }
155
Len Brown4be44fc2005-08-05 00:44:28 -0400156 ACPI_DEBUG_PRINT((ACPI_DB_INIT, "ACPI mode disabled\n"));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700157 }
158
Len Brown4be44fc2005-08-05 00:44:28 -0400159 return_ACPI_STATUS(status);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700160}
161
Bob Moore83135242006-10-03 00:00:00 -0400162ACPI_EXPORT_SYMBOL(acpi_disable)
163
Linus Torvalds1da177e2005-04-16 15:20:36 -0700164/*******************************************************************************
165 *
166 * FUNCTION: acpi_enable_event
167 *
Bob Mooreba494be2012-07-12 09:40:10 +0800168 * PARAMETERS: event - The fixed eventto be enabled
169 * flags - Reserved
Linus Torvalds1da177e2005-04-16 15:20:36 -0700170 *
171 * RETURN: Status
172 *
173 * DESCRIPTION: Enable an ACPI event (fixed)
174 *
175 ******************************************************************************/
Len Brown4be44fc2005-08-05 00:44:28 -0400176acpi_status acpi_enable_event(u32 event, u32 flags)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700177{
Len Brown4be44fc2005-08-05 00:44:28 -0400178 acpi_status status = AE_OK;
179 u32 value;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700180
Bob Mooreb229cf92006-04-21 17:15:00 -0400181 ACPI_FUNCTION_TRACE(acpi_enable_event);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700182
183 /* Decode the Fixed Event */
184
185 if (event > ACPI_EVENT_MAX) {
Len Brown4be44fc2005-08-05 00:44:28 -0400186 return_ACPI_STATUS(AE_BAD_PARAMETER);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700187 }
188
189 /*
Bob Moore9f15fc62008-11-12 16:01:56 +0800190 * Enable the requested fixed event (by writing a one to the enable
191 * register bit)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700192 */
Len Brown4be44fc2005-08-05 00:44:28 -0400193 status =
Bob Moore50ffba12009-02-23 15:02:07 +0800194 acpi_write_bit_register(acpi_gbl_fixed_event_info[event].
Bob Moore768aaaf2009-03-06 09:49:25 +0800195 enable_register_id, ACPI_ENABLE_EVENT);
Len Brown4be44fc2005-08-05 00:44:28 -0400196 if (ACPI_FAILURE(status)) {
197 return_ACPI_STATUS(status);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700198 }
199
200 /* Make sure that the hardware responded */
201
Len Brown4be44fc2005-08-05 00:44:28 -0400202 status =
Bob Moore50ffba12009-02-23 15:02:07 +0800203 acpi_read_bit_register(acpi_gbl_fixed_event_info[event].
204 enable_register_id, &value);
Len Brown4be44fc2005-08-05 00:44:28 -0400205 if (ACPI_FAILURE(status)) {
206 return_ACPI_STATUS(status);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700207 }
208
209 if (value != 1) {
Bob Mooreb8e4d892006-01-27 16:43:00 -0500210 ACPI_ERROR((AE_INFO,
211 "Could not enable %s event",
212 acpi_ut_get_event_name(event)));
Len Brown4be44fc2005-08-05 00:44:28 -0400213 return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700214 }
215
Len Brown4be44fc2005-08-05 00:44:28 -0400216 return_ACPI_STATUS(status);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700217}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700218
Bob Moore83135242006-10-03 00:00:00 -0400219ACPI_EXPORT_SYMBOL(acpi_enable_event)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700220
221/*******************************************************************************
222 *
Linus Torvalds1da177e2005-04-16 15:20:36 -0700223 * FUNCTION: acpi_disable_event
224 *
Lv Zheng75c80442012-12-19 05:36:49 +0000225 * PARAMETERS: event - The fixed event to be disabled
226 * flags - Reserved
Linus Torvalds1da177e2005-04-16 15:20:36 -0700227 *
228 * RETURN: Status
229 *
230 * DESCRIPTION: Disable an ACPI event (fixed)
231 *
232 ******************************************************************************/
Len Brown4be44fc2005-08-05 00:44:28 -0400233acpi_status acpi_disable_event(u32 event, u32 flags)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700234{
Len Brown4be44fc2005-08-05 00:44:28 -0400235 acpi_status status = AE_OK;
236 u32 value;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700237
Bob Mooreb229cf92006-04-21 17:15:00 -0400238 ACPI_FUNCTION_TRACE(acpi_disable_event);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700239
240 /* Decode the Fixed Event */
241
242 if (event > ACPI_EVENT_MAX) {
Len Brown4be44fc2005-08-05 00:44:28 -0400243 return_ACPI_STATUS(AE_BAD_PARAMETER);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700244 }
245
246 /*
Bob Moore9f15fc62008-11-12 16:01:56 +0800247 * Disable the requested fixed event (by writing a zero to the enable
248 * register bit)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700249 */
Len Brown4be44fc2005-08-05 00:44:28 -0400250 status =
Bob Moore50ffba12009-02-23 15:02:07 +0800251 acpi_write_bit_register(acpi_gbl_fixed_event_info[event].
Bob Moore768aaaf2009-03-06 09:49:25 +0800252 enable_register_id, ACPI_DISABLE_EVENT);
Len Brown4be44fc2005-08-05 00:44:28 -0400253 if (ACPI_FAILURE(status)) {
254 return_ACPI_STATUS(status);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700255 }
256
Len Brown4be44fc2005-08-05 00:44:28 -0400257 status =
Bob Moore50ffba12009-02-23 15:02:07 +0800258 acpi_read_bit_register(acpi_gbl_fixed_event_info[event].
259 enable_register_id, &value);
Len Brown4be44fc2005-08-05 00:44:28 -0400260 if (ACPI_FAILURE(status)) {
261 return_ACPI_STATUS(status);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700262 }
263
264 if (value != 0) {
Bob Mooreb8e4d892006-01-27 16:43:00 -0500265 ACPI_ERROR((AE_INFO,
266 "Could not disable %s events",
267 acpi_ut_get_event_name(event)));
Len Brown4be44fc2005-08-05 00:44:28 -0400268 return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700269 }
270
Len Brown4be44fc2005-08-05 00:44:28 -0400271 return_ACPI_STATUS(status);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700272}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700273
Bob Moore83135242006-10-03 00:00:00 -0400274ACPI_EXPORT_SYMBOL(acpi_disable_event)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700275
276/*******************************************************************************
277 *
278 * FUNCTION: acpi_clear_event
279 *
Bob Mooreba494be2012-07-12 09:40:10 +0800280 * PARAMETERS: event - The fixed event to be cleared
Linus Torvalds1da177e2005-04-16 15:20:36 -0700281 *
282 * RETURN: Status
283 *
284 * DESCRIPTION: Clear an ACPI event (fixed)
285 *
286 ******************************************************************************/
Len Brown4be44fc2005-08-05 00:44:28 -0400287acpi_status acpi_clear_event(u32 event)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700288{
Len Brown4be44fc2005-08-05 00:44:28 -0400289 acpi_status status = AE_OK;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700290
Bob Mooreb229cf92006-04-21 17:15:00 -0400291 ACPI_FUNCTION_TRACE(acpi_clear_event);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700292
293 /* Decode the Fixed Event */
294
295 if (event > ACPI_EVENT_MAX) {
Len Brown4be44fc2005-08-05 00:44:28 -0400296 return_ACPI_STATUS(AE_BAD_PARAMETER);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700297 }
298
299 /*
Bob Moore9f15fc62008-11-12 16:01:56 +0800300 * Clear the requested fixed event (By writing a one to the status
301 * register bit)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700302 */
Len Brown4be44fc2005-08-05 00:44:28 -0400303 status =
Bob Moore50ffba12009-02-23 15:02:07 +0800304 acpi_write_bit_register(acpi_gbl_fixed_event_info[event].
Bob Moore768aaaf2009-03-06 09:49:25 +0800305 status_register_id, ACPI_CLEAR_STATUS);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700306
Len Brown4be44fc2005-08-05 00:44:28 -0400307 return_ACPI_STATUS(status);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700308}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700309
Bob Moore83135242006-10-03 00:00:00 -0400310ACPI_EXPORT_SYMBOL(acpi_clear_event)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700311
312/*******************************************************************************
313 *
Linus Torvalds1da177e2005-04-16 15:20:36 -0700314 * FUNCTION: acpi_get_event_status
315 *
Bob Mooreba494be2012-07-12 09:40:10 +0800316 * PARAMETERS: event - The fixed event
Robert Moore44f6c012005-04-18 22:49:35 -0400317 * event_status - Where the current status of the event will
Linus Torvalds1da177e2005-04-16 15:20:36 -0700318 * be returned
319 *
320 * RETURN: Status
321 *
322 * DESCRIPTION: Obtains and returns the current status of the event
323 *
324 ******************************************************************************/
Len Brown4be44fc2005-08-05 00:44:28 -0400325acpi_status acpi_get_event_status(u32 event, acpi_event_status * event_status)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700326{
Lv Zhenga08f8132014-10-10 10:39:57 +0800327 acpi_status status;
328 acpi_event_status local_event_status = 0;
329 u32 in_byte;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700330
Bob Mooreb229cf92006-04-21 17:15:00 -0400331 ACPI_FUNCTION_TRACE(acpi_get_event_status);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700332
333 if (!event_status) {
Len Brown4be44fc2005-08-05 00:44:28 -0400334 return_ACPI_STATUS(AE_BAD_PARAMETER);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700335 }
336
337 /* Decode the Fixed Event */
338
339 if (event > ACPI_EVENT_MAX) {
Len Brown4be44fc2005-08-05 00:44:28 -0400340 return_ACPI_STATUS(AE_BAD_PARAMETER);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700341 }
342
Lv Zhenga08f8132014-10-10 10:39:57 +0800343 /* Fixed event currently can be dispatched? */
344
345 if (acpi_gbl_fixed_event_handlers[event].handler) {
Lv Zheng2f857232014-10-10 10:40:05 +0800346 local_event_status |= ACPI_EVENT_FLAG_HAS_HANDLER;
Lv Zhenga08f8132014-10-10 10:39:57 +0800347 }
348
349 /* Fixed event currently enabled? */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700350
Len Brown4be44fc2005-08-05 00:44:28 -0400351 status =
Bob Moore50ffba12009-02-23 15:02:07 +0800352 acpi_read_bit_register(acpi_gbl_fixed_event_info[event].
Lv Zhenga08f8132014-10-10 10:39:57 +0800353 enable_register_id, &in_byte);
354 if (ACPI_FAILURE(status)) {
Zhang Rui71b58cb2008-06-20 09:42:47 +0800355 return_ACPI_STATUS(status);
Lv Zhenga08f8132014-10-10 10:39:57 +0800356 }
Zhang Rui71b58cb2008-06-20 09:42:47 +0800357
Lv Zhenga08f8132014-10-10 10:39:57 +0800358 if (in_byte) {
Lv Zheng09af8e82015-04-13 11:49:13 +0800359 local_event_status |=
360 (ACPI_EVENT_FLAG_ENABLED | ACPI_EVENT_FLAG_ENABLE_SET);
Lv Zhenga08f8132014-10-10 10:39:57 +0800361 }
362
363 /* Fixed event currently active? */
Zhang Rui71b58cb2008-06-20 09:42:47 +0800364
365 status =
Bob Moore50ffba12009-02-23 15:02:07 +0800366 acpi_read_bit_register(acpi_gbl_fixed_event_info[event].
Lv Zhenga08f8132014-10-10 10:39:57 +0800367 status_register_id, &in_byte);
368 if (ACPI_FAILURE(status)) {
Zhang Rui71b58cb2008-06-20 09:42:47 +0800369 return_ACPI_STATUS(status);
Lv Zhenga08f8132014-10-10 10:39:57 +0800370 }
Zhang Rui71b58cb2008-06-20 09:42:47 +0800371
Lv Zhenga08f8132014-10-10 10:39:57 +0800372 if (in_byte) {
Lv Zheng09af8e82015-04-13 11:49:13 +0800373 local_event_status |= ACPI_EVENT_FLAG_STATUS_SET;
Lv Zhenga08f8132014-10-10 10:39:57 +0800374 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700375
Lv Zhenga08f8132014-10-10 10:39:57 +0800376 (*event_status) = local_event_status;
377 return_ACPI_STATUS(AE_OK);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700378}
379
Bob Moore83135242006-10-03 00:00:00 -0400380ACPI_EXPORT_SYMBOL(acpi_get_event_status)
Bob Moore33620c52012-02-14 18:14:27 +0800381#endif /* !ACPI_REDUCED_HARDWARE */