1/******************************************************************************
2 *
3 * Module Name: utglobal - Global variables for the ACPI subsystem
4 * $Revision: 193 $
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/******************************************************************************
269 *
270 * Namespace globals
271 *
272 ******************************************************************************/
273
274
275/*
276 * Predefined ACPI Names (Built-in to the Interpreter)
277 *
278 * Initial values are currently supported only for types String and Number.
279 * Both are specified as strings in this table.
280 *
281 * NOTES:
282 * 1) _SB_ is defined to be a device to allow _SB_/_INI to be run
283 * during the initialization sequence.
284 */
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
297#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 */
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
387
388ACPI_TABLE_LIST AcpiGbl_TableLists[NUM_ACPI_TABLE_TYPES];
389
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
554 * indicatewhat type is actually going to be stored for this entry.
555 */
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
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 ---
2 *
3 * Module Name: utglobal - Global variables for the ACPI subsystem
4 * $Revision: 193 $
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/******************************************************************************
269 *
270 * Namespace globals
271 *
272 ******************************************************************************/
273
274
275/*
276 * Predefined ACPI Names (Built-in to the Interpreter)
277 *
278 * Initial values are currently supported only for types String and Number.
279 * Both are specified as strings in this table.
280 *
281 * NOTES:
282 * 1) _SB_ is defined to be a device to allow _SB_/_INI to be run
283 * during the initialization sequence.
284 */
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
297#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 */
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
387
388ACPI_TABLE_LIST AcpiGbl_TableLists[NUM_ACPI_TABLE_TYPES];
389
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
554 * indicatewhat type is actually going to be stored for this entry.
555 */
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
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 ---