blob: 833a38a9c90524c9b099b14d7d40761b660c1b75 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/******************************************************************************
2 *
3 * Module Name: utglobal - Global variables for the ACPI subsystem
4 *
5 *****************************************************************************/
6
7/*
Bob Mooreb4e104e2011-01-17 11:05:40 +08008 * Copyright (C) 2000 - 2011, 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
44#define DEFINE_ACPI_GLOBALS
45
Linus Torvalds1da177e2005-04-16 15:20:36 -070046#include <acpi/acpi.h>
Len Browne2f7a772009-01-09 00:30:03 -050047#include "accommon.h"
Linus Torvalds1da177e2005-04-16 15:20:36 -070048
49#define _COMPONENT ACPI_UTILITIES
Bob Mooree97d6bf2008-12-30 09:45:17 +080050ACPI_MODULE_NAME("utglobal")
Linus Torvalds1da177e2005-04-16 15:20:36 -070051
Robert Moore44f6c012005-04-18 22:49:35 -040052/*******************************************************************************
Linus Torvalds1da177e2005-04-16 15:20:36 -070053 *
Linus Torvalds1da177e2005-04-16 15:20:36 -070054 * Static global variable initialization.
55 *
56 ******************************************************************************/
Linus Torvalds1da177e2005-04-16 15:20:36 -070057/*
58 * We want the debug switches statically initialized so they
59 * are already set when the debugger is entered.
60 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070061/* Debug switch - level and trace mask */
Len Brown4be44fc2005-08-05 00:44:28 -040062u32 acpi_dbg_level = ACPI_DEBUG_DEFAULT;
Linus Torvalds1da177e2005-04-16 15:20:36 -070063
64/* Debug switch - layer (component) mask */
65
Bjorn Helgaase76f4272008-11-13 17:30:13 -060066u32 acpi_dbg_layer = 0;
Len Brown4be44fc2005-08-05 00:44:28 -040067u32 acpi_gbl_nesting_level = 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -070068
69/* Debugger globals */
70
Len Brown4be44fc2005-08-05 00:44:28 -040071u8 acpi_gbl_db_terminate_threads = FALSE;
72u8 acpi_gbl_abort_method = FALSE;
73u8 acpi_gbl_method_executing = FALSE;
Linus Torvalds1da177e2005-04-16 15:20:36 -070074
75/* System flags */
76
Len Brown4be44fc2005-08-05 00:44:28 -040077u32 acpi_gbl_startup_flags = 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -070078
79/* System starts uninitialized */
80
Len Brown4be44fc2005-08-05 00:44:28 -040081u8 acpi_gbl_shutdown = TRUE;
Linus Torvalds1da177e2005-04-16 15:20:36 -070082
Len Brown4be44fc2005-08-05 00:44:28 -040083const char *acpi_gbl_sleep_state_names[ACPI_S_STATE_COUNT] = {
Linus Torvalds1da177e2005-04-16 15:20:36 -070084 "\\_S0_",
85 "\\_S1_",
86 "\\_S2_",
87 "\\_S3_",
88 "\\_S4_",
89 "\\_S5_"
90};
91
Bob Moore15b8dd52009-06-29 13:39:29 +080092const char *acpi_gbl_lowest_dstate_names[ACPI_NUM_sx_w_METHODS] = {
93 "_S0W",
94 "_S1W",
95 "_S2W",
96 "_S3W",
97 "_S4W"
98};
99
100const char *acpi_gbl_highest_dstate_names[ACPI_NUM_sx_d_METHODS] = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700101 "_S1D",
102 "_S2D",
103 "_S3D",
104 "_S4D"
105};
106
Robert Moore44f6c012005-04-18 22:49:35 -0400107/*******************************************************************************
Linus Torvalds1da177e2005-04-16 15:20:36 -0700108 *
Bob Moore84fb2c92007-02-02 19:48:19 +0300109 * Namespace globals
110 *
111 ******************************************************************************/
Linus Torvalds1da177e2005-04-16 15:20:36 -0700112/*
113 * Predefined ACPI Names (Built-in to the Interpreter)
114 *
115 * NOTES:
116 * 1) _SB_ is defined to be a device to allow \_SB_._INI to be run
117 * during the initialization sequence.
118 * 2) _TZ_ is defined to be a thermal zone in order to allow ASL code to
Bob Moore81256662010-10-18 08:44:34 +0800119 * perform a Notify() operation on it. 09/2010: Changed to type Device.
120 * This still allows notifies, but does not confuse host code that
121 * searches for valid thermal_zone objects.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700122 */
Bob Moore08978312005-10-21 00:00:00 -0400123const struct acpi_predefined_names acpi_gbl_pre_defined_names[] = {
124 {"_GPE", ACPI_TYPE_LOCAL_SCOPE, NULL},
125 {"_PR_", ACPI_TYPE_LOCAL_SCOPE, NULL},
126 {"_SB_", ACPI_TYPE_DEVICE, NULL},
127 {"_SI_", ACPI_TYPE_LOCAL_SCOPE, NULL},
Bob Moore81256662010-10-18 08:44:34 +0800128 {"_TZ_", ACPI_TYPE_DEVICE, NULL},
Bob Moore08978312005-10-21 00:00:00 -0400129 {"_REV", ACPI_TYPE_INTEGER, (char *)ACPI_CA_SUPPORT_LEVEL},
130 {"_OS_", ACPI_TYPE_STRING, ACPI_OS_NAME},
131 {"_GL_", ACPI_TYPE_MUTEX, (char *)1},
Linus Torvalds1da177e2005-04-16 15:20:36 -0700132
133#if !defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY)
Bob Moore08978312005-10-21 00:00:00 -0400134 {"_OSI", ACPI_TYPE_METHOD, (char *)1},
Linus Torvalds1da177e2005-04-16 15:20:36 -0700135#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700136
Robert Moore44f6c012005-04-18 22:49:35 -0400137 /* Table terminator */
138
Bob Moore08978312005-10-21 00:00:00 -0400139 {NULL, ACPI_TYPE_ANY, NULL}
Robert Moore44f6c012005-04-18 22:49:35 -0400140};
Linus Torvalds1da177e2005-04-16 15:20:36 -0700141
Linus Torvalds1da177e2005-04-16 15:20:36 -0700142/******************************************************************************
143 *
144 * Event and Hardware globals
145 *
146 ******************************************************************************/
147
Len Brown4be44fc2005-08-05 00:44:28 -0400148struct acpi_bit_register_info acpi_gbl_bit_register_info[ACPI_NUM_BITREG] = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700149 /* Name Parent Register Register Bit Position Register Bit Mask */
150
Len Brown4be44fc2005-08-05 00:44:28 -0400151 /* ACPI_BITREG_TIMER_STATUS */ {ACPI_REGISTER_PM1_STATUS,
152 ACPI_BITPOSITION_TIMER_STATUS,
153 ACPI_BITMASK_TIMER_STATUS},
154 /* ACPI_BITREG_BUS_MASTER_STATUS */ {ACPI_REGISTER_PM1_STATUS,
155 ACPI_BITPOSITION_BUS_MASTER_STATUS,
156 ACPI_BITMASK_BUS_MASTER_STATUS},
157 /* ACPI_BITREG_GLOBAL_LOCK_STATUS */ {ACPI_REGISTER_PM1_STATUS,
158 ACPI_BITPOSITION_GLOBAL_LOCK_STATUS,
159 ACPI_BITMASK_GLOBAL_LOCK_STATUS},
160 /* ACPI_BITREG_POWER_BUTTON_STATUS */ {ACPI_REGISTER_PM1_STATUS,
161 ACPI_BITPOSITION_POWER_BUTTON_STATUS,
162 ACPI_BITMASK_POWER_BUTTON_STATUS},
163 /* ACPI_BITREG_SLEEP_BUTTON_STATUS */ {ACPI_REGISTER_PM1_STATUS,
164 ACPI_BITPOSITION_SLEEP_BUTTON_STATUS,
165 ACPI_BITMASK_SLEEP_BUTTON_STATUS},
166 /* ACPI_BITREG_RT_CLOCK_STATUS */ {ACPI_REGISTER_PM1_STATUS,
167 ACPI_BITPOSITION_RT_CLOCK_STATUS,
168 ACPI_BITMASK_RT_CLOCK_STATUS},
169 /* ACPI_BITREG_WAKE_STATUS */ {ACPI_REGISTER_PM1_STATUS,
170 ACPI_BITPOSITION_WAKE_STATUS,
171 ACPI_BITMASK_WAKE_STATUS},
172 /* ACPI_BITREG_PCIEXP_WAKE_STATUS */ {ACPI_REGISTER_PM1_STATUS,
173 ACPI_BITPOSITION_PCIEXP_WAKE_STATUS,
174 ACPI_BITMASK_PCIEXP_WAKE_STATUS},
Linus Torvalds1da177e2005-04-16 15:20:36 -0700175
Len Brown4be44fc2005-08-05 00:44:28 -0400176 /* ACPI_BITREG_TIMER_ENABLE */ {ACPI_REGISTER_PM1_ENABLE,
177 ACPI_BITPOSITION_TIMER_ENABLE,
178 ACPI_BITMASK_TIMER_ENABLE},
179 /* ACPI_BITREG_GLOBAL_LOCK_ENABLE */ {ACPI_REGISTER_PM1_ENABLE,
180 ACPI_BITPOSITION_GLOBAL_LOCK_ENABLE,
181 ACPI_BITMASK_GLOBAL_LOCK_ENABLE},
182 /* ACPI_BITREG_POWER_BUTTON_ENABLE */ {ACPI_REGISTER_PM1_ENABLE,
183 ACPI_BITPOSITION_POWER_BUTTON_ENABLE,
184 ACPI_BITMASK_POWER_BUTTON_ENABLE},
185 /* ACPI_BITREG_SLEEP_BUTTON_ENABLE */ {ACPI_REGISTER_PM1_ENABLE,
186 ACPI_BITPOSITION_SLEEP_BUTTON_ENABLE,
187 ACPI_BITMASK_SLEEP_BUTTON_ENABLE},
188 /* ACPI_BITREG_RT_CLOCK_ENABLE */ {ACPI_REGISTER_PM1_ENABLE,
189 ACPI_BITPOSITION_RT_CLOCK_ENABLE,
190 ACPI_BITMASK_RT_CLOCK_ENABLE},
Len Brown4be44fc2005-08-05 00:44:28 -0400191 /* ACPI_BITREG_PCIEXP_WAKE_DISABLE */ {ACPI_REGISTER_PM1_ENABLE,
192 ACPI_BITPOSITION_PCIEXP_WAKE_DISABLE,
193 ACPI_BITMASK_PCIEXP_WAKE_DISABLE},
Linus Torvalds1da177e2005-04-16 15:20:36 -0700194
Len Brown4be44fc2005-08-05 00:44:28 -0400195 /* ACPI_BITREG_SCI_ENABLE */ {ACPI_REGISTER_PM1_CONTROL,
196 ACPI_BITPOSITION_SCI_ENABLE,
197 ACPI_BITMASK_SCI_ENABLE},
198 /* ACPI_BITREG_BUS_MASTER_RLD */ {ACPI_REGISTER_PM1_CONTROL,
199 ACPI_BITPOSITION_BUS_MASTER_RLD,
200 ACPI_BITMASK_BUS_MASTER_RLD},
201 /* ACPI_BITREG_GLOBAL_LOCK_RELEASE */ {ACPI_REGISTER_PM1_CONTROL,
202 ACPI_BITPOSITION_GLOBAL_LOCK_RELEASE,
203 ACPI_BITMASK_GLOBAL_LOCK_RELEASE},
Bob Moore82d79b82009-02-18 14:31:05 +0800204 /* ACPI_BITREG_SLEEP_TYPE */ {ACPI_REGISTER_PM1_CONTROL,
205 ACPI_BITPOSITION_SLEEP_TYPE,
206 ACPI_BITMASK_SLEEP_TYPE},
Len Brown4be44fc2005-08-05 00:44:28 -0400207 /* ACPI_BITREG_SLEEP_ENABLE */ {ACPI_REGISTER_PM1_CONTROL,
208 ACPI_BITPOSITION_SLEEP_ENABLE,
209 ACPI_BITMASK_SLEEP_ENABLE},
Linus Torvalds1da177e2005-04-16 15:20:36 -0700210
Len Brown4be44fc2005-08-05 00:44:28 -0400211 /* ACPI_BITREG_ARB_DIS */ {ACPI_REGISTER_PM2_CONTROL,
212 ACPI_BITPOSITION_ARB_DISABLE,
213 ACPI_BITMASK_ARB_DISABLE}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700214};
215
Len Brown4be44fc2005-08-05 00:44:28 -0400216struct acpi_fixed_event_info acpi_gbl_fixed_event_info[ACPI_NUM_FIXED_EVENTS] = {
217 /* ACPI_EVENT_PMTIMER */ {ACPI_BITREG_TIMER_STATUS,
218 ACPI_BITREG_TIMER_ENABLE,
219 ACPI_BITMASK_TIMER_STATUS,
220 ACPI_BITMASK_TIMER_ENABLE},
221 /* ACPI_EVENT_GLOBAL */ {ACPI_BITREG_GLOBAL_LOCK_STATUS,
222 ACPI_BITREG_GLOBAL_LOCK_ENABLE,
223 ACPI_BITMASK_GLOBAL_LOCK_STATUS,
224 ACPI_BITMASK_GLOBAL_LOCK_ENABLE},
225 /* ACPI_EVENT_POWER_BUTTON */ {ACPI_BITREG_POWER_BUTTON_STATUS,
226 ACPI_BITREG_POWER_BUTTON_ENABLE,
227 ACPI_BITMASK_POWER_BUTTON_STATUS,
228 ACPI_BITMASK_POWER_BUTTON_ENABLE},
229 /* ACPI_EVENT_SLEEP_BUTTON */ {ACPI_BITREG_SLEEP_BUTTON_STATUS,
230 ACPI_BITREG_SLEEP_BUTTON_ENABLE,
231 ACPI_BITMASK_SLEEP_BUTTON_STATUS,
232 ACPI_BITMASK_SLEEP_BUTTON_ENABLE},
233 /* ACPI_EVENT_RTC */ {ACPI_BITREG_RT_CLOCK_STATUS,
234 ACPI_BITREG_RT_CLOCK_ENABLE,
235 ACPI_BITMASK_RT_CLOCK_STATUS,
236 ACPI_BITMASK_RT_CLOCK_ENABLE},
Linus Torvalds1da177e2005-04-16 15:20:36 -0700237};
238
Robert Moore44f6c012005-04-18 22:49:35 -0400239/*******************************************************************************
Linus Torvalds1da177e2005-04-16 15:20:36 -0700240 *
Linus Torvalds1da177e2005-04-16 15:20:36 -0700241 * FUNCTION: acpi_ut_init_globals
242 *
Robert Moore44f6c012005-04-18 22:49:35 -0400243 * PARAMETERS: None
244 *
Yi Yangb417d402008-08-04 10:30:09 +0800245 * RETURN: Status
Linus Torvalds1da177e2005-04-16 15:20:36 -0700246 *
247 * DESCRIPTION: Init library globals. All globals that require specific
248 * initialization should be initialized here!
249 *
Robert Moore44f6c012005-04-18 22:49:35 -0400250 ******************************************************************************/
Linus Torvalds1da177e2005-04-16 15:20:36 -0700251
Yi Yangb417d402008-08-04 10:30:09 +0800252acpi_status acpi_ut_init_globals(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700253{
Len Brown4be44fc2005-08-05 00:44:28 -0400254 acpi_status status;
255 u32 i;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700256
Bob Mooreb229cf92006-04-21 17:15:00 -0400257 ACPI_FUNCTION_TRACE(ut_init_globals);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700258
Robert Moore73459f72005-06-24 00:00:00 -0400259 /* Create all memory caches */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700260
Len Brown4be44fc2005-08-05 00:44:28 -0400261 status = acpi_ut_create_caches();
262 if (ACPI_FAILURE(status)) {
Yi Yangb417d402008-08-04 10:30:09 +0800263 return_ACPI_STATUS(status);
Robert Moore73459f72005-06-24 00:00:00 -0400264 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700265
Linus Torvalds1da177e2005-04-16 15:20:36 -0700266 /* Mutex locked flags */
267
Bob Moore4c90ece2006-06-08 16:29:00 -0400268 for (i = 0; i < ACPI_NUM_MUTEX; i++) {
Len Brown4be44fc2005-08-05 00:44:28 -0400269 acpi_gbl_mutex_info[i].mutex = NULL;
270 acpi_gbl_mutex_info[i].thread_id = ACPI_MUTEX_NOT_ACQUIRED;
271 acpi_gbl_mutex_info[i].use_count = 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700272 }
273
Bob Moore28f55eb2005-12-02 18:27:00 -0500274 for (i = 0; i < ACPI_NUM_OWNERID_MASKS; i++) {
275 acpi_gbl_owner_id_mask[i] = 0;
276 }
Bob Mooreec41f192009-02-18 15:03:30 +0800277
278 /* Last owner_iD is never valid */
279
280 acpi_gbl_owner_id_mask[ACPI_NUM_OWNERID_MASKS - 1] = 0x80000000;
Bob Moore28f55eb2005-12-02 18:27:00 -0500281
Linus Torvalds1da177e2005-04-16 15:20:36 -0700282 /* GPE support */
283
Len Brown4be44fc2005-08-05 00:44:28 -0400284 acpi_gbl_gpe_xrupt_list_head = NULL;
285 acpi_gbl_gpe_fadt_blocks[0] = NULL;
286 acpi_gbl_gpe_fadt_blocks[1] = NULL;
Bob Mooree97d6bf2008-12-30 09:45:17 +0800287 acpi_current_gpe_count = 0;
Lin Ming3a378982010-12-13 13:36:15 +0800288 acpi_gbl_all_gpes_initialized = FALSE;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700289
Lin Ming3e08e2d2008-04-10 19:06:38 +0400290 /* Global handlers */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700291
Len Brown4be44fc2005-08-05 00:44:28 -0400292 acpi_gbl_system_notify.handler = NULL;
293 acpi_gbl_device_notify.handler = NULL;
294 acpi_gbl_exception_handler = NULL;
295 acpi_gbl_init_handler = NULL;
Lin Ming3e08e2d2008-04-10 19:06:38 +0400296 acpi_gbl_table_handler = NULL;
Lin Mingb0ed7a92010-08-06 09:35:51 +0800297 acpi_gbl_interface_handler = NULL;
Lin Minga0fcdb22010-12-13 13:39:26 +0800298 acpi_gbl_global_event_handler = NULL;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700299
Linus Torvalds1da177e2005-04-16 15:20:36 -0700300 /* Global Lock support */
301
Bob Moore967440e32006-06-23 17:04:00 -0400302 acpi_gbl_global_lock_semaphore = NULL;
Bob Moorec81da662007-02-02 19:48:18 +0300303 acpi_gbl_global_lock_mutex = NULL;
Len Brown4be44fc2005-08-05 00:44:28 -0400304 acpi_gbl_global_lock_acquired = FALSE;
Len Brown4be44fc2005-08-05 00:44:28 -0400305 acpi_gbl_global_lock_handle = 0;
Bob Moore009c4cbe2008-11-12 15:34:52 +0800306 acpi_gbl_global_lock_present = FALSE;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700307
308 /* Miscellaneous variables */
309
Bob Moore43323cb2010-04-07 11:05:11 +0800310 acpi_gbl_DSDT = NULL;
Len Brown4be44fc2005-08-05 00:44:28 -0400311 acpi_gbl_cm_single_step = FALSE;
312 acpi_gbl_db_terminate_threads = FALSE;
313 acpi_gbl_shutdown = FALSE;
314 acpi_gbl_ns_lookup_count = 0;
315 acpi_gbl_ps_find_count = 0;
316 acpi_gbl_acpi_hardware_present = TRUE;
Bob Moore28f55eb2005-12-02 18:27:00 -0500317 acpi_gbl_last_owner_id_index = 0;
318 acpi_gbl_next_owner_id_offset = 0;
Bob Moore50eca3e2005-09-30 19:03:00 -0400319 acpi_gbl_trace_method_name = 0;
320 acpi_gbl_trace_dbg_level = 0;
321 acpi_gbl_trace_dbg_layer = 0;
Len Brown4be44fc2005-08-05 00:44:28 -0400322 acpi_gbl_debugger_configuration = DEBUGGER_THREADING;
323 acpi_gbl_db_output_flags = ACPI_DB_CONSOLE_OUTPUT;
Bob Moore7f071902009-03-19 09:37:47 +0800324 acpi_gbl_osi_data = 0;
Lin Mingb0ed7a92010-08-06 09:35:51 +0800325 acpi_gbl_osi_mutex = NULL;
Bob Mooreef09c4f2011-02-14 16:13:25 +0800326 acpi_gbl_reg_methods_executed = FALSE;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700327
328 /* Hardware oriented */
329
Len Brown4be44fc2005-08-05 00:44:28 -0400330 acpi_gbl_events_initialized = FALSE;
331 acpi_gbl_system_awake_and_running = TRUE;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700332
333 /* Namespace */
334
Lin Ming7f0c8262009-08-13 14:03:15 +0800335 acpi_gbl_module_code_list = NULL;
Len Brown4be44fc2005-08-05 00:44:28 -0400336 acpi_gbl_root_node = NULL;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700337 acpi_gbl_root_node_struct.name.integer = ACPI_ROOT_NAME;
Bob Moore616861242006-03-17 16:44:00 -0500338 acpi_gbl_root_node_struct.descriptor_type = ACPI_DESC_TYPE_NAMED;
Len Brown4be44fc2005-08-05 00:44:28 -0400339 acpi_gbl_root_node_struct.type = ACPI_TYPE_DEVICE;
Alexey Starikovskiyc45b5c02010-05-26 11:53:07 +0800340 acpi_gbl_root_node_struct.parent = NULL;
Len Brown4be44fc2005-08-05 00:44:28 -0400341 acpi_gbl_root_node_struct.child = NULL;
342 acpi_gbl_root_node_struct.peer = NULL;
343 acpi_gbl_root_node_struct.object = NULL;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700344
345#ifdef ACPI_DEBUG_OUTPUT
Bob Moore1d18c052008-04-10 19:06:40 +0400346 acpi_gbl_lowest_stack_pointer = ACPI_CAST_PTR(acpi_size, ACPI_SIZE_MAX);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700347#endif
348
Bob Moored41eb992007-02-02 19:48:23 +0300349#ifdef ACPI_DBG_TRACK_ALLOCATIONS
350 acpi_gbl_display_final_mem_stats = FALSE;
351#endif
352
Yi Yangb417d402008-08-04 10:30:09 +0800353 return_ACPI_STATUS(AE_OK);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700354}
Bob Moore83135242006-10-03 00:00:00 -0400355
Bob Mooree97d6bf2008-12-30 09:45:17 +0800356ACPI_EXPORT_SYMBOL(acpi_gbl_FADT)
Bob Moore83135242006-10-03 00:00:00 -0400357ACPI_EXPORT_SYMBOL(acpi_dbg_level)
Bob Moore1044f1f2008-09-27 11:08:41 +0800358ACPI_EXPORT_SYMBOL(acpi_dbg_layer)
Bob Mooree97d6bf2008-12-30 09:45:17 +0800359ACPI_EXPORT_SYMBOL(acpi_current_gpe_count)