~ubuntu-branches/debian/wheezy/linux-2.6/wheezy

« back to all changes in this revision

Viewing changes to drivers/acpi/acpica/acglobal.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno, Martin Michlmayr
  • Date: 2011-04-06 13:53:30 UTC
  • mfrom: (43.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110406135330-wjufxhd0tvn3zx4z
Tags: 2.6.38-3
[ Ben Hutchings ]
* [ppc64] Add to linux-tools package architectures (Closes: #620124)
* [amd64] Save cr4 to mmu_cr4_features at boot time (Closes: #620284)
* appletalk: Fix bugs introduced when removing use of BKL
* ALSA: Fix yet another race in disconnection
* cciss: Fix lost command issue
* ath9k: Fix kernel panic in AR2427
* ses: Avoid kernel panic when lun 0 is not mapped
* PCI/ACPI: Report ASPM support to BIOS if not disabled from command line

[ Aurelien Jarno ]
* rtlwifi: fix build when PCI is not enabled.

[ Martin Michlmayr ]
* rtlwifi: Eliminate udelay calls with too large values (Closes: #620204)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *****************************************************************************/
6
6
 
7
7
/*
8
 
 * Copyright (C) 2000 - 2008, Intel Corp.
 
8
 * Copyright (C) 2000 - 2011, Intel Corp.
9
9
 * All rights reserved.
10
10
 *
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);
101
101
 
102
102
/*
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.
106
 
 */
107
 
u8 ACPI_INIT_GLOBAL(acpi_gbl_leave_wake_gpes_disabled, TRUE);
108
 
 
109
 
/*
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.
112
105
 */
113
106
u8 ACPI_INIT_GLOBAL(acpi_gbl_use_default_register_widths, TRUE);
114
107
 
 
108
/*
 
109
 * Optionally enable output from the AML Debug Object.
 
110
 */
 
111
u32 ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE);
 
112
 
 
113
/*
 
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
 
117
 * the DSDT.
 
118
 */
 
119
u8 ACPI_INIT_GLOBAL(acpi_gbl_copy_dsdt_locally, FALSE);
 
120
 
 
121
/*
 
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.
 
126
 */
 
127
u8 ACPI_INIT_GLOBAL(acpi_gbl_truncate_io_addresses, FALSE);
 
128
 
115
129
/* acpi_gbl_FADT is a local copy of the FADT, converted to a common format. */
116
130
 
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;
121
136
 
122
137
#endif
123
138
 
131
146
 
132
147
extern u32 acpi_gbl_nesting_level;
133
148
 
 
149
ACPI_EXTERN u32 acpi_gpe_count;
 
150
ACPI_EXTERN u32 acpi_fixed_event_count[ACPI_NUM_FIXED_EVENTS];
 
151
 
134
152
/* Support for dynamic control method tracing mechanism */
135
153
 
136
154
ACPI_EXTERN u32 acpi_gbl_original_dbg_level;
145
163
 ****************************************************************************/
146
164
 
147
165
/*
148
 
 * acpi_gbl_root_table_list is the master list of ACPI tables found in the
149
 
 * RSDT/XSDT.
150
 
 *
 
166
 * acpi_gbl_root_table_list is the master list of ACPI tables that were
 
167
 * found in the RSDT/XSDT.
151
168
 */
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;
154
171
 
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;
162
179
 
 
180
/* DSDT information. Used to check for DSDT corruption */
 
181
 
 
182
ACPI_EXTERN struct acpi_table_header *acpi_gbl_DSDT;
 
183
ACPI_EXTERN struct acpi_table_header acpi_gbl_original_dsdt_header;
 
184
 
163
185
/*
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;
171
193
 
 
194
/* Mutex for _OSI support */
 
195
 
 
196
ACPI_EXTERN acpi_mutex acpi_gbl_osi_mutex;
 
197
 
172
198
/* Reader/Writer lock is used for namespace walk and dynamic table unload */
173
199
 
174
200
ACPI_EXTERN struct acpi_rw_lock acpi_gbl_namespace_rw_lock;
202
228
 */
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
207
235
 
208
236
/*****************************************************************************
209
237
 *
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;
240
269
 
241
270
/* Owner ID support */
242
271
 
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;
260
289
 
261
290
#ifndef DEFINE_ACPI_GLOBALS
262
291
 
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;
349
381
 
350
382
/*****************************************************************************
351
383
 *