Deleted Added
full compact
utglobal.c (126372) utglobal.c (127175)
1/******************************************************************************
2 *
3 * Module Name: utglobal - Global variables for the ACPI subsystem
1/******************************************************************************
2 *
3 * Module Name: utglobal - Global variables for the ACPI subsystem
4 * $Revision: 193 $
4 * $Revision: 194 $
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999 - 2004, Intel Corp.

--- 247 unchanged lines hidden (view full) ---

260 "\\_S5_"};
261
262const char *AcpiGbl_HighestDstateNames[4] = {
263 "_S1D",
264 "_S2D",
265 "_S3D",
266 "_S4D"};
267
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999 - 2004, Intel Corp.

--- 247 unchanged lines hidden (view full) ---

260 "\\_S5_"};
261
262const char *AcpiGbl_HighestDstateNames[4] = {
263 "_S1D",
264 "_S2D",
265 "_S3D",
266 "_S4D"};
267
268/* Strings supported by the _OSI predefined (internal) method */
269
270const char *AcpiGbl_ValidOsiStrings[ACPI_NUM_OSI_STRINGS] = {
271 "Linux",
272 "Windows 2000",
273 "Windows 2001",
274 "Windows 2001.1"};
275
276
268/******************************************************************************
269 *
270 * Namespace globals
271 *
272 ******************************************************************************/
273
274
275/*
276 * Predefined ACPI Names (Built-in to the Interpreter)
277 *
277/******************************************************************************
278 *
279 * Namespace globals
280 *
281 ******************************************************************************/
282
283
284/*
285 * Predefined ACPI Names (Built-in to the Interpreter)
286 *
278 * Initial values are currently supported only for types String and Number.
279 * Both are specified as strings in this table.
280 *
281 * NOTES:
287 * NOTES:
282 * 1) _SB_ is defined to be a device to allow _SB_/_INI to be run
288 * 1) _SB_ is defined to be a device to allow \_SB_._INI to be run
283 * during the initialization sequence.
284 */
289 * during the initialization sequence.
290 */
285
286const ACPI_PREDEFINED_NAMES AcpiGbl_PreDefinedNames[] =
287{
288 {"_GPE", ACPI_TYPE_LOCAL_SCOPE, NULL},
289 {"_PR_", ACPI_TYPE_LOCAL_SCOPE, NULL},
290 {"_SB_", ACPI_TYPE_DEVICE, NULL},
291 {"_SI_", ACPI_TYPE_LOCAL_SCOPE, NULL},
292 {"_TZ_", ACPI_TYPE_LOCAL_SCOPE, NULL},
293 {"_REV", ACPI_TYPE_INTEGER, "2"},
294 {"_OS_", ACPI_TYPE_STRING, ACPI_OS_NAME},
295 {"_GL_", ACPI_TYPE_MUTEX, "0"},
296
291const ACPI_PREDEFINED_NAMES AcpiGbl_PreDefinedNames[] =
292{
293 {"_GPE", ACPI_TYPE_LOCAL_SCOPE, NULL},
294 {"_PR_", ACPI_TYPE_LOCAL_SCOPE, NULL},
295 {"_SB_", ACPI_TYPE_DEVICE, NULL},
296 {"_SI_", ACPI_TYPE_LOCAL_SCOPE, NULL},
297 {"_TZ_", ACPI_TYPE_LOCAL_SCOPE, NULL},
298 {"_REV", ACPI_TYPE_INTEGER, "2"},
299 {"_OS_", ACPI_TYPE_STRING, ACPI_OS_NAME},
300 {"_GL_", ACPI_TYPE_MUTEX, "0"},
301
297#if defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY)
302#if !defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY)
298 {"_OSI", ACPI_TYPE_METHOD, "1"},
299#endif
300 {NULL, ACPI_TYPE_ANY, NULL} /* Table terminator */
301};
302
303
304/*
305 * Properties of the ACPI Object Types, both internal and external.
306 * The table is indexed by values of ACPI_OBJECT_TYPE
307 */
303 {"_OSI", ACPI_TYPE_METHOD, "1"},
304#endif
305 {NULL, ACPI_TYPE_ANY, NULL} /* Table terminator */
306};
307
308
309/*
310 * Properties of the ACPI Object Types, both internal and external.
311 * The table is indexed by values of ACPI_OBJECT_TYPE
312 */
308
309const UINT8 AcpiGbl_NsProperties[] =
310{
311 ACPI_NS_NORMAL, /* 00 Any */
312 ACPI_NS_NORMAL, /* 01 Number */
313 ACPI_NS_NORMAL, /* 02 String */
314 ACPI_NS_NORMAL, /* 03 Buffer */
315 ACPI_NS_NORMAL, /* 04 Package */
316 ACPI_NS_NORMAL, /* 05 FieldUnit */

--- 62 unchanged lines hidden (view full) ---

379 * it is NOT an exhaustive list of all possible ACPI tables. All ACPI tables
380 * that are not used by the subsystem are simply ignored.
381 *
382 * Do NOT add any table to this list that is not consumed directly by this
383 * subsystem.
384 *
385 ******************************************************************************/
386
313const UINT8 AcpiGbl_NsProperties[] =
314{
315 ACPI_NS_NORMAL, /* 00 Any */
316 ACPI_NS_NORMAL, /* 01 Number */
317 ACPI_NS_NORMAL, /* 02 String */
318 ACPI_NS_NORMAL, /* 03 Buffer */
319 ACPI_NS_NORMAL, /* 04 Package */
320 ACPI_NS_NORMAL, /* 05 FieldUnit */

--- 62 unchanged lines hidden (view full) ---

383 * it is NOT an exhaustive list of all possible ACPI tables. All ACPI tables
384 * that are not used by the subsystem are simply ignored.
385 *
386 * Do NOT add any table to this list that is not consumed directly by this
387 * subsystem.
388 *
389 ******************************************************************************/
390
387
388ACPI_TABLE_LIST AcpiGbl_TableLists[NUM_ACPI_TABLE_TYPES];
389
391ACPI_TABLE_LIST AcpiGbl_TableLists[NUM_ACPI_TABLE_TYPES];
392
390
391ACPI_TABLE_SUPPORT AcpiGbl_TableData[NUM_ACPI_TABLE_TYPES] =
392{
393 /*********** Name, Signature, Global typed pointer Signature size, Type How many allowed?, Contains valid AML? */
394
395 /* RSDP 0 */ {RSDP_NAME, RSDP_SIG, NULL, sizeof (RSDP_SIG)-1, ACPI_TABLE_ROOT | ACPI_TABLE_SINGLE},
396 /* DSDT 1 */ {DSDT_SIG, DSDT_SIG, (void *) &AcpiGbl_DSDT, sizeof (DSDT_SIG)-1, ACPI_TABLE_SECONDARY| ACPI_TABLE_SINGLE | ACPI_TABLE_EXECUTABLE},
397 /* FADT 2 */ {FADT_SIG, FADT_SIG, (void *) &AcpiGbl_FADT, sizeof (FADT_SIG)-1, ACPI_TABLE_PRIMARY | ACPI_TABLE_SINGLE},
398 /* FACS 3 */ {FACS_SIG, FACS_SIG, (void *) &AcpiGbl_FACS, sizeof (FACS_SIG)-1, ACPI_TABLE_SECONDARY| ACPI_TABLE_SINGLE},

--- 147 unchanged lines hidden (view full) ---

546 ****************************************************************************/
547
548/*
549 * Elements of AcpiGbl_NsTypeNames below must match
550 * one-to-one with values of ACPI_OBJECT_TYPE
551 *
552 * The type ACPI_TYPE_ANY (Untyped) is used as a "don't care" when searching; when
553 * stored in a table it really means that we have thus far seen no evidence to
393ACPI_TABLE_SUPPORT AcpiGbl_TableData[NUM_ACPI_TABLE_TYPES] =
394{
395 /*********** Name, Signature, Global typed pointer Signature size, Type How many allowed?, Contains valid AML? */
396
397 /* RSDP 0 */ {RSDP_NAME, RSDP_SIG, NULL, sizeof (RSDP_SIG)-1, ACPI_TABLE_ROOT | ACPI_TABLE_SINGLE},
398 /* DSDT 1 */ {DSDT_SIG, DSDT_SIG, (void *) &AcpiGbl_DSDT, sizeof (DSDT_SIG)-1, ACPI_TABLE_SECONDARY| ACPI_TABLE_SINGLE | ACPI_TABLE_EXECUTABLE},
399 /* FADT 2 */ {FADT_SIG, FADT_SIG, (void *) &AcpiGbl_FADT, sizeof (FADT_SIG)-1, ACPI_TABLE_PRIMARY | ACPI_TABLE_SINGLE},
400 /* FACS 3 */ {FACS_SIG, FACS_SIG, (void *) &AcpiGbl_FACS, sizeof (FACS_SIG)-1, ACPI_TABLE_SECONDARY| ACPI_TABLE_SINGLE},

--- 147 unchanged lines hidden (view full) ---

548 ****************************************************************************/
549
550/*
551 * Elements of AcpiGbl_NsTypeNames below must match
552 * one-to-one with values of ACPI_OBJECT_TYPE
553 *
554 * The type ACPI_TYPE_ANY (Untyped) is used as a "don't care" when searching; when
555 * stored in a table it really means that we have thus far seen no evidence to
554 * indicatewhat type is actually going to be stored for this entry.
556 * indicate what type is actually going to be stored for this entry.
555 */
557 */
556
557static const char AcpiGbl_BadType[] = "UNDEFINED";
558#define TYPE_NAME_LENGTH 12 /* Maximum length of each string */
559
560static const char *AcpiGbl_NsTypeNames[] = /* printable names of ACPI types */
561{
562 /* 00 */ "Untyped",
563 /* 01 */ "Integer",
564 /* 02 */ "String",

--- 288 unchanged lines hidden (view full) ---

853AcpiUtInitGlobals (
854 void)
855{
856 UINT32 i;
857
858
859 ACPI_FUNCTION_TRACE ("UtInitGlobals");
860
558static const char AcpiGbl_BadType[] = "UNDEFINED";
559#define TYPE_NAME_LENGTH 12 /* Maximum length of each string */
560
561static const char *AcpiGbl_NsTypeNames[] = /* printable names of ACPI types */
562{
563 /* 00 */ "Untyped",
564 /* 01 */ "Integer",
565 /* 02 */ "String",

--- 288 unchanged lines hidden (view full) ---

854AcpiUtInitGlobals (
855 void)
856{
857 UINT32 i;
858
859
860 ACPI_FUNCTION_TRACE ("UtInitGlobals");
861
862 /* Runtime configuration */
863
864 AcpiGbl_CreateOsiMethod = TRUE;
865 AcpiGbl_AllMethodsSerialized = FALSE;
866
861 /* Memory allocation and cache lists */
862
863 ACPI_MEMSET (AcpiGbl_MemoryLists, 0, sizeof (ACPI_MEMORY_LIST) * ACPI_NUM_MEM_LISTS);
864
865 AcpiGbl_MemoryLists[ACPI_MEM_LIST_STATE].LinkOffset = (UINT16) ACPI_PTR_DIFF (&(((ACPI_GENERIC_STATE *) NULL)->Common.Next), NULL);
866 AcpiGbl_MemoryLists[ACPI_MEM_LIST_PSNODE].LinkOffset = (UINT16) ACPI_PTR_DIFF (&(((ACPI_PARSE_OBJECT *) NULL)->Common.Next), NULL);
867 AcpiGbl_MemoryLists[ACPI_MEM_LIST_PSNODE_EXT].LinkOffset = (UINT16) ACPI_PTR_DIFF (&(((ACPI_PARSE_OBJECT *) NULL)->Common.Next), NULL);
868 AcpiGbl_MemoryLists[ACPI_MEM_LIST_OPERAND].LinkOffset = (UINT16) ACPI_PTR_DIFF (&(((ACPI_OPERAND_OBJECT *) NULL)->Cache.Next), NULL);

--- 106 unchanged lines hidden ---
867 /* Memory allocation and cache lists */
868
869 ACPI_MEMSET (AcpiGbl_MemoryLists, 0, sizeof (ACPI_MEMORY_LIST) * ACPI_NUM_MEM_LISTS);
870
871 AcpiGbl_MemoryLists[ACPI_MEM_LIST_STATE].LinkOffset = (UINT16) ACPI_PTR_DIFF (&(((ACPI_GENERIC_STATE *) NULL)->Common.Next), NULL);
872 AcpiGbl_MemoryLists[ACPI_MEM_LIST_PSNODE].LinkOffset = (UINT16) ACPI_PTR_DIFF (&(((ACPI_PARSE_OBJECT *) NULL)->Common.Next), NULL);
873 AcpiGbl_MemoryLists[ACPI_MEM_LIST_PSNODE_EXT].LinkOffset = (UINT16) ACPI_PTR_DIFF (&(((ACPI_PARSE_OBJECT *) NULL)->Common.Next), NULL);
874 AcpiGbl_MemoryLists[ACPI_MEM_LIST_OPERAND].LinkOffset = (UINT16) ACPI_PTR_DIFF (&(((ACPI_OPERAND_OBJECT *) NULL)->Cache.Next), NULL);

--- 106 unchanged lines hidden ---