5
5
*****************************************************************************/
8
* Copyright (C) 2000 - 2008, Intel Corp.
8
* Copyright (C) 2000 - 2011, Intel Corp.
9
9
* All rights reserved.
11
11
* Redistribution and use in source and binary forms, with or without
100
100
u8 ACPI_INIT_GLOBAL(acpi_gbl_create_osi_method, TRUE);
103
* Disable wakeup GPEs during runtime? Default is TRUE because WAKE and
104
* RUNTIME GPEs should never be shared, and WAKE GPEs should typically only
105
* be enabled just before going to sleep.
107
u8 ACPI_INIT_GLOBAL(acpi_gbl_leave_wake_gpes_disabled, TRUE);
110
103
* Optionally use default values for the ACPI register widths. Set this to
111
104
* TRUE to use the defaults, if an FADT contains incorrect widths/lengths.
113
106
u8 ACPI_INIT_GLOBAL(acpi_gbl_use_default_register_widths, TRUE);
109
* Optionally enable output from the AML Debug Object.
111
u32 ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE);
114
* Optionally copy the entire DSDT to local memory (instead of simply
115
* mapping it.) There are some BIOSs that corrupt or replace the original
116
* DSDT, creating the need for this option. Default is FALSE, do not copy
119
u8 ACPI_INIT_GLOBAL(acpi_gbl_copy_dsdt_locally, FALSE);
122
* Optionally truncate I/O addresses to 16 bits. Provides compatibility
123
* with other ACPI implementations. NOTE: During ACPICA initialization,
124
* this value is set to TRUE if any Windows OSI strings have been
125
* requested by the BIOS.
127
u8 ACPI_INIT_GLOBAL(acpi_gbl_truncate_io_addresses, FALSE);
115
129
/* acpi_gbl_FADT is a local copy of the FADT, converted to a common format. */
117
131
struct acpi_table_fadt acpi_gbl_FADT;
118
132
u32 acpi_current_gpe_count;
119
133
u32 acpi_gbl_trace_flags;
120
134
acpi_name acpi_gbl_trace_method_name;
135
u8 acpi_gbl_system_awake_and_running;
132
147
extern u32 acpi_gbl_nesting_level;
149
ACPI_EXTERN u32 acpi_gpe_count;
150
ACPI_EXTERN u32 acpi_fixed_event_count[ACPI_NUM_FIXED_EVENTS];
134
152
/* Support for dynamic control method tracing mechanism */
136
154
ACPI_EXTERN u32 acpi_gbl_original_dbg_level;
145
163
****************************************************************************/
148
* acpi_gbl_root_table_list is the master list of ACPI tables found in the
166
* acpi_gbl_root_table_list is the master list of ACPI tables that were
167
* found in the RSDT/XSDT.
152
ACPI_EXTERN struct acpi_internal_rsdt acpi_gbl_root_table_list;
169
ACPI_EXTERN struct acpi_table_list acpi_gbl_root_table_list;
153
170
ACPI_EXTERN struct acpi_table_facs *acpi_gbl_FACS;
155
172
/* These addresses are calculated from the FADT Event Block addresses */
160
177
ACPI_EXTERN struct acpi_generic_address acpi_gbl_xpm1b_status;
161
178
ACPI_EXTERN struct acpi_generic_address acpi_gbl_xpm1b_enable;
180
/* DSDT information. Used to check for DSDT corruption */
182
ACPI_EXTERN struct acpi_table_header *acpi_gbl_DSDT;
183
ACPI_EXTERN struct acpi_table_header acpi_gbl_original_dsdt_header;
164
186
* Handle both ACPI 1.0 and ACPI 2.0 Integer widths. The integer width is
165
187
* determined by the revision of the DSDT: If the DSDT revision is less than
169
191
ACPI_EXTERN u8 acpi_gbl_integer_byte_width;
170
192
ACPI_EXTERN u8 acpi_gbl_integer_nybble_width;
194
/* Mutex for _OSI support */
196
ACPI_EXTERN acpi_mutex acpi_gbl_osi_mutex;
172
198
/* Reader/Writer lock is used for namespace walk and dynamic table unload */
174
200
ACPI_EXTERN struct acpi_rw_lock acpi_gbl_namespace_rw_lock;
203
229
ACPI_EXTERN spinlock_t _acpi_gbl_gpe_lock; /* For GPE data structs and registers */
204
230
ACPI_EXTERN spinlock_t _acpi_gbl_hardware_lock; /* For ACPI H/W except GPE registers */
231
ACPI_EXTERN spinlock_t _acpi_ev_global_lock_pending_lock; /* For global lock */
205
232
#define acpi_gbl_gpe_lock &_acpi_gbl_gpe_lock
206
233
#define acpi_gbl_hardware_lock &_acpi_gbl_hardware_lock
234
#define acpi_ev_global_lock_pending_lock &_acpi_ev_global_lock_pending_lock
208
236
/*****************************************************************************
237
265
ACPI_EXTERN acpi_tbl_handler acpi_gbl_table_handler;
238
266
ACPI_EXTERN void *acpi_gbl_table_handler_context;
239
267
ACPI_EXTERN struct acpi_walk_state *acpi_gbl_breakpoint_walk;
268
ACPI_EXTERN acpi_interface_handler acpi_gbl_interface_handler;
241
270
/* Owner ID support */
255
284
ACPI_EXTERN u8 acpi_gbl_step_to_next_call;
256
285
ACPI_EXTERN u8 acpi_gbl_acpi_hardware_present;
257
286
ACPI_EXTERN u8 acpi_gbl_events_initialized;
258
ACPI_EXTERN u8 acpi_gbl_system_awake_and_running;
259
287
ACPI_EXTERN u8 acpi_gbl_osi_data;
288
ACPI_EXTERN struct acpi_interface_info *acpi_gbl_supported_interfaces;
261
290
#ifndef DEFINE_ACPI_GLOBALS
346
375
ACPI_EXTERN struct acpi_gpe_xrupt_info *acpi_gbl_gpe_xrupt_list_head;
347
376
ACPI_EXTERN struct acpi_gpe_block_info
348
377
*acpi_gbl_gpe_fadt_blocks[ACPI_MAX_GPE_BLOCKS];
378
ACPI_EXTERN u8 acpi_gbl_all_gpes_initialized;
379
ACPI_EXTERN ACPI_GBL_EVENT_HANDLER acpi_gbl_global_event_handler;
380
ACPI_EXTERN void *acpi_gbl_global_event_handler_context;
350
382
/*****************************************************************************