1/******************************************************************************
2 *
3 * Module Name: utglobal - Global variables for the ACPI subsystem
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
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
277/******************************************************************************
278 *
279 * Namespace globals
280 *
281 ******************************************************************************/
282
283
284/*
285 * Predefined ACPI Names (Built-in to the Interpreter)
286 *
287 * NOTES:
288 * 1) _SB_ is defined to be a device to allow \_SB_._INI to be run
289 * during the initialization sequence.
290 */
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
302#if !defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY)
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 */
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
391ACPI_TABLE_LIST AcpiGbl_TableLists[NUM_ACPI_TABLE_TYPES];
392
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
556 * indicate what type is actually going to be stored for this entry.
557 */
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
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 ---
2 *
3 * Module Name: utglobal - Global variables for the ACPI subsystem
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
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
277/******************************************************************************
278 *
279 * Namespace globals
280 *
281 ******************************************************************************/
282
283
284/*
285 * Predefined ACPI Names (Built-in to the Interpreter)
286 *
287 * NOTES:
288 * 1) _SB_ is defined to be a device to allow \_SB_._INI to be run
289 * during the initialization sequence.
290 */
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
302#if !defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY)
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 */
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
391ACPI_TABLE_LIST AcpiGbl_TableLists[NUM_ACPI_TABLE_TYPES];
392
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
556 * indicate what type is actually going to be stored for this entry.
557 */
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
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 ---