2018-03-15 07:13:07 +08:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
|
2005-04-17 06:20:36 +08:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* Name: acglobal.h - Declarations for global variables
|
|
|
|
*
|
2023-04-05 21:38:21 +08:00
|
|
|
* Copyright (C) 2000 - 2023, Intel Corp.
|
2005-04-17 06:20:36 +08:00
|
|
|
*
|
2018-03-15 07:13:07 +08:00
|
|
|
*****************************************************************************/
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
#ifndef __ACGLOBAL_H__
|
|
|
|
#define __ACGLOBAL_H__
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
*
|
2018-01-04 07:06:24 +08:00
|
|
|
* Globals related to the incoming ACPI tables
|
2005-04-17 06:20:36 +08:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2014-04-30 10:03:52 +08:00
|
|
|
/* Master list of all ACPI tables that were found in the RSDT/XSDT */
|
2010-05-26 11:50:48 +08:00
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(struct acpi_table_list, acpi_gbl_root_table_list);
|
|
|
|
|
|
|
|
/* DSDT information. Used to check for DSDT corruption */
|
|
|
|
|
|
|
|
ACPI_GLOBAL(struct acpi_table_header *, acpi_gbl_DSDT);
|
|
|
|
ACPI_GLOBAL(struct acpi_table_header, acpi_gbl_original_dsdt_header);
|
2022-10-28 01:58:36 +08:00
|
|
|
ACPI_INIT_GLOBAL(char *, acpi_gbl_CDAT, NULL);
|
2015-08-25 10:29:01 +08:00
|
|
|
ACPI_INIT_GLOBAL(u32, acpi_gbl_dsdt_index, ACPI_INVALID_TABLE_INDEX);
|
|
|
|
ACPI_INIT_GLOBAL(u32, acpi_gbl_facs_index, ACPI_INVALID_TABLE_INDEX);
|
|
|
|
ACPI_INIT_GLOBAL(u32, acpi_gbl_xfacs_index, ACPI_INVALID_TABLE_INDEX);
|
2015-10-14 13:53:57 +08:00
|
|
|
ACPI_INIT_GLOBAL(u32, acpi_gbl_fadt_index, ACPI_INVALID_TABLE_INDEX);
|
2012-02-14 18:14:27 +08:00
|
|
|
|
|
|
|
#if (!ACPI_REDUCED_HARDWARE)
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(struct acpi_table_facs *, acpi_gbl_FACS);
|
ACPICA 20050617-0624 from Bob Moore <robert.moore@intel.com>
ACPICA 20050617:
Moved the object cache operations into the OS interface
layer (OSL) to allow the host OS to handle these operations
if desired (for example, the Linux OSL will invoke the
slab allocator). This support is optional; the compile
time define ACPI_USE_LOCAL_CACHE may be used to utilize
the original cache code in the ACPI CA core. The new OSL
interfaces are shown below. See utalloc.c for an example
implementation, and acpiosxf.h for the exact interface
definitions. Thanks to Alexey Starikovskiy.
acpi_os_create_cache
acpi_os_delete_cache
acpi_os_purge_cache
acpi_os_acquire_object
acpi_os_release_object
Modified the interfaces to acpi_os_acquire_lock and
acpi_os_release_lock to return and restore a flags
parameter. This fits better with many OS lock models.
Note: the current execution state (interrupt handler
or not) is no longer passed to these interfaces. If
necessary, the OSL must determine this state by itself, a
simple and fast operation. Thanks to Alexey Starikovskiy.
Fixed a problem in the ACPI table handling where a valid
XSDT was assumed present if the revision of the RSDP
was 2 or greater. According to the ACPI specification,
the XSDT is optional in all cases, and the table manager
therefore now checks for both an RSDP >=2 and a valid
XSDT pointer. Otherwise, the RSDT pointer is used.
Some ACPI 2.0 compliant BIOSs contain only the RSDT.
Fixed an interpreter problem with the Mid() operator in the
case of an input string where the resulting output string
is of zero length. It now correctly returns a valid,
null terminated string object instead of a string object
with a null pointer.
Fixed a problem with the control method argument handling
to allow a store to an Arg object that already contains an
object of type Device. The Device object is now correctly
overwritten. Previously, an error was returned.
ACPICA 20050624:
Modified the new OSL cache interfaces to use ACPI_CACHE_T
as the type for the host-defined cache object. This allows
the OSL implementation to define and type this object in
any manner desired, simplifying the OSL implementation.
For example, ACPI_CACHE_T is defined as kmem_cache_t for
Linux, and should be defined in the OS-specific header
file for other operating systems as required.
Changed the interface to AcpiOsAcquireObject to directly
return the requested object as the function return (instead
of ACPI_STATUS.) This change was made for performance
reasons, since this is the purpose of the interface in the
first place. acpi_os_acquire_object is now similar to the
acpi_os_allocate interface. Thanks to Alexey Starikovskiy.
Modified the initialization sequence in
acpi_initialize_subsystem to call the OSL interface
acpi_osl_initialize first, before any local initialization.
This change was required because the global initialization
now calls OSL interfaces.
Restructured the code base to split some files because
of size and/or because the code logically belonged in a
separate file. New files are listed below.
utilities/utcache.c /* Local cache interfaces */
utilities/utmutex.c /* Local mutex support */
utilities/utstate.c /* State object support */
parser/psloop.c /* Main AML parse loop */
Signed-off-by: Len Brown <len.brown@intel.com>
2005-06-24 12:00:00 +08:00
|
|
|
|
2012-02-14 18:14:27 +08:00
|
|
|
#endif /* !ACPI_REDUCED_HARDWARE */
|
|
|
|
|
2009-02-18 14:06:12 +08:00
|
|
|
/* These addresses are calculated from the FADT Event Block addresses */
|
2007-02-03 00:48:19 +08:00
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(struct acpi_generic_address, acpi_gbl_xpm1a_status);
|
|
|
|
ACPI_GLOBAL(struct acpi_generic_address, acpi_gbl_xpm1a_enable);
|
2007-02-03 00:48:19 +08:00
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(struct acpi_generic_address, acpi_gbl_xpm1b_status);
|
|
|
|
ACPI_GLOBAL(struct acpi_generic_address, acpi_gbl_xpm1b_enable);
|
2010-04-01 10:47:56 +08:00
|
|
|
|
ACPICA: Add support for using logical addresses of GPE blocks
The logical address of every GPE block in system memory must be
known before passing it to acpi_ev_initialize_gpe_block(), because
memory cannot be mapped on the fly from an interrupt handler.
Accordingly, the host OS must map every GPE block in system
memory upfront and it can store the logical addresses of GPE
blocks for future use.
If these logical addresses were known to ACPICA, it could use them
instead of the corresponding physical addresses of GPE block for
GPE register accesses and the memory mapping lookups carried out
by acpi_os_read_memory() and acpi_os_write_memory() on every
attempt to access a GPE register would not be necessary any more.
To allow that to happen, introduce the ACPI_GPE_USE_LOGICAL_ADDRESSES
symbol to indicate whether or not the host OS wants ACPICA to use the
logical addresses of GPE registers in system memory directly (which
is the case if this symbol is defined). Moreover, conditional on
whether ACPI_GPE_USE_LOGICAL_ADDRESSES is defined, introduce two new
global variables for storing the logical addresses of the FADT GPE
blocks 0 and 1, respectively, acpi_gbl_xgpe0_block_logical_address and
acpi_gbl_xgpe1_block_logical_address, make acpi_ev_gpe_initialize()
pass their values instead of the physical addresses of the GPE blocks
in question to acpi_ev_create_gpe_block() and modify
acpi_hw_gpe_read() and acpi_hw_gpe_write() to access memory directly
via the addresses stored in the struct acpi_gpe_address objects,
which are expected to be the logical addresses of GPE registers if
ACPI_GPE_USE_LOGICAL_ADDRESSES is defined.
With the above changes in place, a host OS wanting ACPICA to
access GPE registers directly through their logical addresses
needs to define the ACPI_GPE_USE_LOGICAL_ADDRESSES symbol and
make sure that the logical addresses of the FADT GPE blocks 0
and 1 are stored in acpi_gbl_xgpe0_block_logical_address and
acpi_gbl_xgpe1_block_logical_address, respectively, prior to
calling acpi_ev_gpe_initialize().
[If such a host OS also uses acpi_install_gpe_block() to add
non-FADT GPE register blocks located in system memory, it must
pass their logical addresses instead of their physical addresses
to this function.]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2020-09-11 22:44:45 +08:00
|
|
|
#ifdef ACPI_GPE_USE_LOGICAL_ADDRESSES
|
|
|
|
ACPI_GLOBAL(unsigned long, acpi_gbl_xgpe0_block_logical_address);
|
|
|
|
ACPI_GLOBAL(unsigned long, acpi_gbl_xgpe1_block_logical_address);
|
|
|
|
|
|
|
|
#endif /* ACPI_GPE_USE_LOGICAL_ADDRESSES */
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
/*
|
2014-02-26 10:32:38 +08:00
|
|
|
* Handle both ACPI 1.0 and ACPI 2.0+ Integer widths. The integer width is
|
2007-02-03 00:48:18 +08:00
|
|
|
* determined by the revision of the DSDT: If the DSDT revision is less than
|
|
|
|
* 2, use only the lower 32 bits of the internal 64-bit Integer.
|
2005-04-17 06:20:36 +08:00
|
|
|
*/
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_integer_bit_width);
|
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_integer_byte_width);
|
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_integer_nybble_width);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2006-06-24 05:04:00 +08:00
|
|
|
/*****************************************************************************
|
|
|
|
*
|
2018-01-04 07:06:24 +08:00
|
|
|
* Mutual exclusion within the ACPICA subsystem
|
2006-06-24 05:04:00 +08:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
/*
|
2007-02-03 00:48:18 +08:00
|
|
|
* Predefined mutex objects. This array contains the
|
2005-04-17 06:20:36 +08:00
|
|
|
* actual OS mutex handles, indexed by the local ACPI_MUTEX_HANDLEs.
|
|
|
|
* (The table maps local handles to the real OS handles)
|
|
|
|
*/
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(struct acpi_mutex_info, acpi_gbl_mutex_info[ACPI_NUM_MUTEX]);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2006-06-24 05:04:00 +08:00
|
|
|
/*
|
2008-04-10 23:06:37 +08:00
|
|
|
* Global lock mutex is an actual AML mutex object
|
2011-03-23 17:26:36 +08:00
|
|
|
* Global lock semaphore works in conjunction with the actual global lock
|
|
|
|
* Global lock spinlock is used for "pending" handshake
|
2006-06-24 05:04:00 +08:00
|
|
|
*/
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(union acpi_operand_object *, acpi_gbl_global_lock_mutex);
|
|
|
|
ACPI_GLOBAL(acpi_semaphore, acpi_gbl_global_lock_semaphore);
|
|
|
|
ACPI_GLOBAL(acpi_spinlock, acpi_gbl_global_lock_pending_lock);
|
|
|
|
ACPI_GLOBAL(u16, acpi_gbl_global_lock_handle);
|
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_global_lock_acquired);
|
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_global_lock_present);
|
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_global_lock_pending);
|
2006-06-24 05:04:00 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Spinlocks are used for interfaces that can be possibly called at
|
|
|
|
* interrupt level
|
|
|
|
*/
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(acpi_spinlock, acpi_gbl_gpe_lock); /* For GPE data structs and registers */
|
2018-04-25 22:28:27 +08:00
|
|
|
ACPI_GLOBAL(acpi_raw_spinlock, acpi_gbl_hardware_lock); /* For ACPI H/W except GPE registers */
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(acpi_spinlock, acpi_gbl_reference_count_lock);
|
2006-06-24 05:04:00 +08:00
|
|
|
|
2012-12-20 09:07:26 +08:00
|
|
|
/* Mutex for _OSI support */
|
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(acpi_mutex, acpi_gbl_osi_mutex);
|
2012-12-20 09:07:26 +08:00
|
|
|
|
|
|
|
/* Reader/Writer lock is used for namespace walk and dynamic table unload */
|
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(struct acpi_rw_lock, acpi_gbl_namespace_rw_lock);
|
2012-12-20 09:07:26 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
/*****************************************************************************
|
|
|
|
*
|
|
|
|
* Miscellaneous globals
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
ACPICA 20050617-0624 from Bob Moore <robert.moore@intel.com>
ACPICA 20050617:
Moved the object cache operations into the OS interface
layer (OSL) to allow the host OS to handle these operations
if desired (for example, the Linux OSL will invoke the
slab allocator). This support is optional; the compile
time define ACPI_USE_LOCAL_CACHE may be used to utilize
the original cache code in the ACPI CA core. The new OSL
interfaces are shown below. See utalloc.c for an example
implementation, and acpiosxf.h for the exact interface
definitions. Thanks to Alexey Starikovskiy.
acpi_os_create_cache
acpi_os_delete_cache
acpi_os_purge_cache
acpi_os_acquire_object
acpi_os_release_object
Modified the interfaces to acpi_os_acquire_lock and
acpi_os_release_lock to return and restore a flags
parameter. This fits better with many OS lock models.
Note: the current execution state (interrupt handler
or not) is no longer passed to these interfaces. If
necessary, the OSL must determine this state by itself, a
simple and fast operation. Thanks to Alexey Starikovskiy.
Fixed a problem in the ACPI table handling where a valid
XSDT was assumed present if the revision of the RSDP
was 2 or greater. According to the ACPI specification,
the XSDT is optional in all cases, and the table manager
therefore now checks for both an RSDP >=2 and a valid
XSDT pointer. Otherwise, the RSDT pointer is used.
Some ACPI 2.0 compliant BIOSs contain only the RSDT.
Fixed an interpreter problem with the Mid() operator in the
case of an input string where the resulting output string
is of zero length. It now correctly returns a valid,
null terminated string object instead of a string object
with a null pointer.
Fixed a problem with the control method argument handling
to allow a store to an Arg object that already contains an
object of type Device. The Device object is now correctly
overwritten. Previously, an error was returned.
ACPICA 20050624:
Modified the new OSL cache interfaces to use ACPI_CACHE_T
as the type for the host-defined cache object. This allows
the OSL implementation to define and type this object in
any manner desired, simplifying the OSL implementation.
For example, ACPI_CACHE_T is defined as kmem_cache_t for
Linux, and should be defined in the OS-specific header
file for other operating systems as required.
Changed the interface to AcpiOsAcquireObject to directly
return the requested object as the function return (instead
of ACPI_STATUS.) This change was made for performance
reasons, since this is the purpose of the interface in the
first place. acpi_os_acquire_object is now similar to the
acpi_os_allocate interface. Thanks to Alexey Starikovskiy.
Modified the initialization sequence in
acpi_initialize_subsystem to call the OSL interface
acpi_osl_initialize first, before any local initialization.
This change was required because the global initialization
now calls OSL interfaces.
Restructured the code base to split some files because
of size and/or because the code logically belonged in a
separate file. New files are listed below.
utilities/utcache.c /* Local cache interfaces */
utilities/utmutex.c /* Local mutex support */
utilities/utstate.c /* State object support */
parser/psloop.c /* Main AML parse loop */
Signed-off-by: Len Brown <len.brown@intel.com>
2005-06-24 12:00:00 +08:00
|
|
|
/* Object caches */
|
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(acpi_cache_t *, acpi_gbl_namespace_cache);
|
|
|
|
ACPI_GLOBAL(acpi_cache_t *, acpi_gbl_state_cache);
|
|
|
|
ACPI_GLOBAL(acpi_cache_t *, acpi_gbl_ps_node_cache);
|
|
|
|
ACPI_GLOBAL(acpi_cache_t *, acpi_gbl_ps_node_ext_cache);
|
|
|
|
ACPI_GLOBAL(acpi_cache_t *, acpi_gbl_operand_cache);
|
|
|
|
|
|
|
|
/* System */
|
|
|
|
|
|
|
|
ACPI_INIT_GLOBAL(u32, acpi_gbl_startup_flags, 0);
|
|
|
|
ACPI_INIT_GLOBAL(u8, acpi_gbl_shutdown, TRUE);
|
2015-12-29 14:01:53 +08:00
|
|
|
ACPI_INIT_GLOBAL(u8, acpi_gbl_early_initialization, TRUE);
|
ACPICA 20050617-0624 from Bob Moore <robert.moore@intel.com>
ACPICA 20050617:
Moved the object cache operations into the OS interface
layer (OSL) to allow the host OS to handle these operations
if desired (for example, the Linux OSL will invoke the
slab allocator). This support is optional; the compile
time define ACPI_USE_LOCAL_CACHE may be used to utilize
the original cache code in the ACPI CA core. The new OSL
interfaces are shown below. See utalloc.c for an example
implementation, and acpiosxf.h for the exact interface
definitions. Thanks to Alexey Starikovskiy.
acpi_os_create_cache
acpi_os_delete_cache
acpi_os_purge_cache
acpi_os_acquire_object
acpi_os_release_object
Modified the interfaces to acpi_os_acquire_lock and
acpi_os_release_lock to return and restore a flags
parameter. This fits better with many OS lock models.
Note: the current execution state (interrupt handler
or not) is no longer passed to these interfaces. If
necessary, the OSL must determine this state by itself, a
simple and fast operation. Thanks to Alexey Starikovskiy.
Fixed a problem in the ACPI table handling where a valid
XSDT was assumed present if the revision of the RSDP
was 2 or greater. According to the ACPI specification,
the XSDT is optional in all cases, and the table manager
therefore now checks for both an RSDP >=2 and a valid
XSDT pointer. Otherwise, the RSDT pointer is used.
Some ACPI 2.0 compliant BIOSs contain only the RSDT.
Fixed an interpreter problem with the Mid() operator in the
case of an input string where the resulting output string
is of zero length. It now correctly returns a valid,
null terminated string object instead of a string object
with a null pointer.
Fixed a problem with the control method argument handling
to allow a store to an Arg object that already contains an
object of type Device. The Device object is now correctly
overwritten. Previously, an error was returned.
ACPICA 20050624:
Modified the new OSL cache interfaces to use ACPI_CACHE_T
as the type for the host-defined cache object. This allows
the OSL implementation to define and type this object in
any manner desired, simplifying the OSL implementation.
For example, ACPI_CACHE_T is defined as kmem_cache_t for
Linux, and should be defined in the OS-specific header
file for other operating systems as required.
Changed the interface to AcpiOsAcquireObject to directly
return the requested object as the function return (instead
of ACPI_STATUS.) This change was made for performance
reasons, since this is the purpose of the interface in the
first place. acpi_os_acquire_object is now similar to the
acpi_os_allocate interface. Thanks to Alexey Starikovskiy.
Modified the initialization sequence in
acpi_initialize_subsystem to call the OSL interface
acpi_osl_initialize first, before any local initialization.
This change was required because the global initialization
now calls OSL interfaces.
Restructured the code base to split some files because
of size and/or because the code logically belonged in a
separate file. New files are listed below.
utilities/utcache.c /* Local cache interfaces */
utilities/utmutex.c /* Local mutex support */
utilities/utstate.c /* State object support */
parser/psloop.c /* Main AML parse loop */
Signed-off-by: Len Brown <len.brown@intel.com>
2005-06-24 12:00:00 +08:00
|
|
|
|
|
|
|
/* Global handlers */
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(struct acpi_global_notify_handler, acpi_gbl_global_notify[2]);
|
|
|
|
ACPI_GLOBAL(acpi_exception_handler, acpi_gbl_exception_handler);
|
|
|
|
ACPI_GLOBAL(acpi_init_handler, acpi_gbl_init_handler);
|
|
|
|
ACPI_GLOBAL(acpi_table_handler, acpi_gbl_table_handler);
|
|
|
|
ACPI_GLOBAL(void *, acpi_gbl_table_handler_context);
|
|
|
|
ACPI_GLOBAL(acpi_interface_handler, acpi_gbl_interface_handler);
|
|
|
|
ACPI_GLOBAL(struct acpi_sci_handler_info *, acpi_gbl_sci_handler_list);
|
2023-03-28 17:50:46 +08:00
|
|
|
ACPI_GLOBAL(struct acpi_ged_handler_info *, acpi_gbl_ged_handler_list);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2008-04-10 23:06:37 +08:00
|
|
|
/* Owner ID support */
|
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_owner_id_mask[ACPI_NUM_OWNERID_MASKS]);
|
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_last_owner_id_index);
|
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_next_owner_id_offset);
|
2008-04-10 23:06:37 +08:00
|
|
|
|
2011-02-14 16:13:25 +08:00
|
|
|
/* Initialization sequencing */
|
|
|
|
|
2016-02-19 14:17:22 +08:00
|
|
|
ACPI_INIT_GLOBAL(u8, acpi_gbl_namespace_initialized, FALSE);
|
2011-02-14 16:13:25 +08:00
|
|
|
|
2018-01-04 07:06:24 +08:00
|
|
|
/* Miscellaneous */
|
ACPICA 20050617-0624 from Bob Moore <robert.moore@intel.com>
ACPICA 20050617:
Moved the object cache operations into the OS interface
layer (OSL) to allow the host OS to handle these operations
if desired (for example, the Linux OSL will invoke the
slab allocator). This support is optional; the compile
time define ACPI_USE_LOCAL_CACHE may be used to utilize
the original cache code in the ACPI CA core. The new OSL
interfaces are shown below. See utalloc.c for an example
implementation, and acpiosxf.h for the exact interface
definitions. Thanks to Alexey Starikovskiy.
acpi_os_create_cache
acpi_os_delete_cache
acpi_os_purge_cache
acpi_os_acquire_object
acpi_os_release_object
Modified the interfaces to acpi_os_acquire_lock and
acpi_os_release_lock to return and restore a flags
parameter. This fits better with many OS lock models.
Note: the current execution state (interrupt handler
or not) is no longer passed to these interfaces. If
necessary, the OSL must determine this state by itself, a
simple and fast operation. Thanks to Alexey Starikovskiy.
Fixed a problem in the ACPI table handling where a valid
XSDT was assumed present if the revision of the RSDP
was 2 or greater. According to the ACPI specification,
the XSDT is optional in all cases, and the table manager
therefore now checks for both an RSDP >=2 and a valid
XSDT pointer. Otherwise, the RSDT pointer is used.
Some ACPI 2.0 compliant BIOSs contain only the RSDT.
Fixed an interpreter problem with the Mid() operator in the
case of an input string where the resulting output string
is of zero length. It now correctly returns a valid,
null terminated string object instead of a string object
with a null pointer.
Fixed a problem with the control method argument handling
to allow a store to an Arg object that already contains an
object of type Device. The Device object is now correctly
overwritten. Previously, an error was returned.
ACPICA 20050624:
Modified the new OSL cache interfaces to use ACPI_CACHE_T
as the type for the host-defined cache object. This allows
the OSL implementation to define and type this object in
any manner desired, simplifying the OSL implementation.
For example, ACPI_CACHE_T is defined as kmem_cache_t for
Linux, and should be defined in the OS-specific header
file for other operating systems as required.
Changed the interface to AcpiOsAcquireObject to directly
return the requested object as the function return (instead
of ACPI_STATUS.) This change was made for performance
reasons, since this is the purpose of the interface in the
first place. acpi_os_acquire_object is now similar to the
acpi_os_allocate interface. Thanks to Alexey Starikovskiy.
Modified the initialization sequence in
acpi_initialize_subsystem to call the OSL interface
acpi_osl_initialize first, before any local initialization.
This change was required because the global initialization
now calls OSL interfaces.
Restructured the code base to split some files because
of size and/or because the code logically belonged in a
separate file. New files are listed below.
utilities/utcache.c /* Local cache interfaces */
utilities/utmutex.c /* Local mutex support */
utilities/utstate.c /* State object support */
parser/psloop.c /* Main AML parse loop */
Signed-off-by: Len Brown <len.brown@intel.com>
2005-06-24 12:00:00 +08:00
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_original_mode);
|
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_ns_lookup_count);
|
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_ps_find_count);
|
|
|
|
ACPI_GLOBAL(u16, acpi_gbl_pm1_enable_register_save);
|
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_debugger_configuration);
|
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_step_to_next_call);
|
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_acpi_hardware_present);
|
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_events_initialized);
|
|
|
|
ACPI_GLOBAL(struct acpi_interface_info *, acpi_gbl_supported_interfaces);
|
|
|
|
ACPI_GLOBAL(struct acpi_address_range *,
|
|
|
|
acpi_gbl_address_range_list[ACPI_ADDRESS_RANGE_MAX]);
|
|
|
|
|
|
|
|
/* Other miscellaneous, declared and initialized in utglobal */
|
|
|
|
|
2005-08-05 12:44:28 +08:00
|
|
|
extern const char *acpi_gbl_sleep_state_names[ACPI_S_STATE_COUNT];
|
2009-06-29 13:39:29 +08:00
|
|
|
extern const char *acpi_gbl_lowest_dstate_names[ACPI_NUM_sx_w_METHODS];
|
|
|
|
extern const char *acpi_gbl_highest_dstate_names[ACPI_NUM_sx_d_METHODS];
|
2005-08-05 12:44:28 +08:00
|
|
|
extern const char *acpi_gbl_region_types[ACPI_NUM_PREDEFINED_REGIONS];
|
2016-03-24 09:40:40 +08:00
|
|
|
extern const char acpi_gbl_lower_hex_digits[];
|
|
|
|
extern const char acpi_gbl_upper_hex_digits[];
|
2014-02-26 10:32:38 +08:00
|
|
|
extern const struct acpi_opcode_info acpi_gbl_aml_op_info[AML_NUM_OPCODES];
|
2008-04-10 23:06:37 +08:00
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
/* Lists for tracking memory allocations (debug only) */
|
ACPICA: Fix unmerged debugger divergences.
Debugger improvements in ACPICA are always ignored by ACPICA Linux
release. This will lead to divergences between Linux and ACPICA.
This patch fixes such unmerged debugger updates.
Following patches are included:
1. Fixed a couple compiler warnings for extra extern
Wed, 14 Mar 2007 21:12:19 +0000
2. Cleanup for internal Reference Object.
Wed, 27 Aug 2008 10:11:30 -0700
3. Debugger: Lock method args for multithread command.
Fri, 24 Apr 2009 12:28:49 -0700
4. Debugger: Add max count argument for Batch command.
Tue, 29 Sep 2009 12:31:58 -0700
5. Add new host interfaces for _OSI support.
Thu, 5 Aug 2010 14:18:28 -0700
6. Increase debugger buffer size for method return objects.
Wed, 17 Nov 2010 13:48:30 -0800
7. Debugger: Add command to display status of global handlers.
Tue, 25 Jan 2011 13:47:58 -0800
8. Debugger: Split large dbcmds.c file.
Wed, 26 Jan 2011 13:03:41 -0800
9. Debugger/AcpiExec: Add support to pass complex args to methods.
Tue, 17 May 2011 13:33:39 -0700
10.Debugger: Add Template command to dump resource templates.
Fri, 28 Oct 2011 14:18:51 -0700
11.Support for custom ACPICA build for ACPI 5.0 reduced hardware.
Wed, 1 Feb 2012 13:18:17 -0800
12.Debugger: Improve command help support.
Wed, 15 Feb 2012 07:59:26 -0800
13.Update ACPI_HW_DEPENDENT* macro invocations.
Wed, 15 Feb 2012 08:14:08 -0800
14.Debugger: Rename function to simplify source code conversion.
Wed, 13 Jun 2012 14:23:06 -0700
15.Debugger: Enhance "Tables" and "Unload" commands.
Fri, 29 Jun 2012 13:10:58 -0700
16.Debugger: update prototype for AcpiDbSleep function.
Fri, 17 Aug 2012 13:43:02 -0700
This patch will not affect the generated vmlinx binary.
This will decrease 264 lines of 20120913 divergence.diff.
Signed-off-by: Robert Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2012-10-31 10:25:15 +08:00
|
|
|
|
2018-01-04 07:06:24 +08:00
|
|
|
#ifdef ACPI_DBG_TRACK_ALLOCATIONS
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(struct acpi_memory_list *, acpi_gbl_global_list);
|
|
|
|
ACPI_GLOBAL(struct acpi_memory_list *, acpi_gbl_ns_node_list);
|
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_display_final_mem_stats);
|
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_disable_mem_tracking);
|
2019-01-15 01:55:24 +08:00
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_verbose_leak_dump);
|
ACPICA: Fix unmerged debugger divergences.
Debugger improvements in ACPICA are always ignored by ACPICA Linux
release. This will lead to divergences between Linux and ACPICA.
This patch fixes such unmerged debugger updates.
Following patches are included:
1. Fixed a couple compiler warnings for extra extern
Wed, 14 Mar 2007 21:12:19 +0000
2. Cleanup for internal Reference Object.
Wed, 27 Aug 2008 10:11:30 -0700
3. Debugger: Lock method args for multithread command.
Fri, 24 Apr 2009 12:28:49 -0700
4. Debugger: Add max count argument for Batch command.
Tue, 29 Sep 2009 12:31:58 -0700
5. Add new host interfaces for _OSI support.
Thu, 5 Aug 2010 14:18:28 -0700
6. Increase debugger buffer size for method return objects.
Wed, 17 Nov 2010 13:48:30 -0800
7. Debugger: Add command to display status of global handlers.
Tue, 25 Jan 2011 13:47:58 -0800
8. Debugger: Split large dbcmds.c file.
Wed, 26 Jan 2011 13:03:41 -0800
9. Debugger/AcpiExec: Add support to pass complex args to methods.
Tue, 17 May 2011 13:33:39 -0700
10.Debugger: Add Template command to dump resource templates.
Fri, 28 Oct 2011 14:18:51 -0700
11.Support for custom ACPICA build for ACPI 5.0 reduced hardware.
Wed, 1 Feb 2012 13:18:17 -0800
12.Debugger: Improve command help support.
Wed, 15 Feb 2012 07:59:26 -0800
13.Update ACPI_HW_DEPENDENT* macro invocations.
Wed, 15 Feb 2012 08:14:08 -0800
14.Debugger: Rename function to simplify source code conversion.
Wed, 13 Jun 2012 14:23:06 -0700
15.Debugger: Enhance "Tables" and "Unload" commands.
Fri, 29 Jun 2012 13:10:58 -0700
16.Debugger: update prototype for AcpiDbSleep function.
Fri, 17 Aug 2012 13:43:02 -0700
This patch will not affect the generated vmlinx binary.
This will decrease 264 lines of 20120913 divergence.diff.
Signed-off-by: Robert Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2012-10-31 10:25:15 +08:00
|
|
|
#endif
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
/*****************************************************************************
|
|
|
|
*
|
2018-01-04 07:06:24 +08:00
|
|
|
* ACPI Namespace
|
2005-04-17 06:20:36 +08:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#define NUM_PREDEFINED_NAMES 10
|
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(struct acpi_namespace_node, acpi_gbl_root_node_struct);
|
|
|
|
ACPI_GLOBAL(struct acpi_namespace_node *, acpi_gbl_root_node);
|
|
|
|
ACPI_GLOBAL(struct acpi_namespace_node *, acpi_gbl_fadt_gpe_device);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2008-04-10 23:06:40 +08:00
|
|
|
extern const u8 acpi_gbl_ns_properties[ACPI_NUM_NS_TYPES];
|
2005-08-05 12:44:28 +08:00
|
|
|
extern const struct acpi_predefined_names
|
|
|
|
acpi_gbl_pre_defined_names[NUM_PREDEFINED_NAMES];
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
#ifdef ACPI_DEBUG_OUTPUT
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_current_node_count);
|
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_current_node_size);
|
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_max_concurrent_node_count);
|
|
|
|
ACPI_GLOBAL(acpi_size *, acpi_gbl_entry_stack_pointer);
|
|
|
|
ACPI_GLOBAL(acpi_size *, acpi_gbl_lowest_stack_pointer);
|
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_deepest_nesting);
|
|
|
|
ACPI_INIT_GLOBAL(u32, acpi_gbl_nesting_level, 0);
|
2005-04-17 06:20:36 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
*
|
2018-01-04 07:06:24 +08:00
|
|
|
* Interpreter/Parser globals
|
2005-04-17 06:20:36 +08:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/* Control method single step flag */
|
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_cm_single_step);
|
2018-01-04 07:06:24 +08:00
|
|
|
ACPI_GLOBAL(struct acpi_thread_state *, acpi_gbl_current_walk_list);
|
|
|
|
ACPI_INIT_GLOBAL(union acpi_parse_object, *acpi_gbl_current_scope, NULL);
|
|
|
|
|
|
|
|
/* ASL/ASL+ converter */
|
|
|
|
|
2018-01-04 07:06:26 +08:00
|
|
|
ACPI_INIT_GLOBAL(u8, acpi_gbl_capture_comments, FALSE);
|
2018-01-04 07:06:24 +08:00
|
|
|
ACPI_INIT_GLOBAL(struct acpi_comment_node, *acpi_gbl_last_list_head, NULL);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
*
|
|
|
|
* Hardware globals
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2005-08-05 12:44:28 +08:00
|
|
|
extern struct acpi_bit_register_info
|
|
|
|
acpi_gbl_bit_register_info[ACPI_NUM_BITREG];
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_sleep_type_a);
|
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_sleep_type_b);
|
2021-09-30 00:31:25 +08:00
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_sleep_type_a_s0);
|
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_sleep_type_b_s0);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
*
|
|
|
|
* Event and GPE globals
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2012-02-14 18:14:27 +08:00
|
|
|
#if (!ACPI_REDUCED_HARDWARE)
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_all_gpes_initialized);
|
|
|
|
ACPI_GLOBAL(struct acpi_gpe_xrupt_info *, acpi_gbl_gpe_xrupt_list_head);
|
|
|
|
ACPI_GLOBAL(struct acpi_gpe_block_info *,
|
|
|
|
acpi_gbl_gpe_fadt_blocks[ACPI_MAX_GPE_BLOCKS]);
|
|
|
|
ACPI_GLOBAL(acpi_gbl_event_handler, acpi_gbl_global_event_handler);
|
|
|
|
ACPI_GLOBAL(void *, acpi_gbl_global_event_handler_context);
|
|
|
|
ACPI_GLOBAL(struct acpi_fixed_event_handler,
|
|
|
|
acpi_gbl_fixed_event_handlers[ACPI_NUM_FIXED_EVENTS]);
|
2012-12-20 09:07:26 +08:00
|
|
|
extern struct acpi_fixed_event_info
|
|
|
|
acpi_gbl_fixed_event_info[ACPI_NUM_FIXED_EVENTS];
|
2012-02-14 18:14:27 +08:00
|
|
|
#endif /* !ACPI_REDUCED_HARDWARE */
|
|
|
|
|
ACPICA: Fix unmerged debugger divergences.
Debugger improvements in ACPICA are always ignored by ACPICA Linux
release. This will lead to divergences between Linux and ACPICA.
This patch fixes such unmerged debugger updates.
Following patches are included:
1. Fixed a couple compiler warnings for extra extern
Wed, 14 Mar 2007 21:12:19 +0000
2. Cleanup for internal Reference Object.
Wed, 27 Aug 2008 10:11:30 -0700
3. Debugger: Lock method args for multithread command.
Fri, 24 Apr 2009 12:28:49 -0700
4. Debugger: Add max count argument for Batch command.
Tue, 29 Sep 2009 12:31:58 -0700
5. Add new host interfaces for _OSI support.
Thu, 5 Aug 2010 14:18:28 -0700
6. Increase debugger buffer size for method return objects.
Wed, 17 Nov 2010 13:48:30 -0800
7. Debugger: Add command to display status of global handlers.
Tue, 25 Jan 2011 13:47:58 -0800
8. Debugger: Split large dbcmds.c file.
Wed, 26 Jan 2011 13:03:41 -0800
9. Debugger/AcpiExec: Add support to pass complex args to methods.
Tue, 17 May 2011 13:33:39 -0700
10.Debugger: Add Template command to dump resource templates.
Fri, 28 Oct 2011 14:18:51 -0700
11.Support for custom ACPICA build for ACPI 5.0 reduced hardware.
Wed, 1 Feb 2012 13:18:17 -0800
12.Debugger: Improve command help support.
Wed, 15 Feb 2012 07:59:26 -0800
13.Update ACPI_HW_DEPENDENT* macro invocations.
Wed, 15 Feb 2012 08:14:08 -0800
14.Debugger: Rename function to simplify source code conversion.
Wed, 13 Jun 2012 14:23:06 -0700
15.Debugger: Enhance "Tables" and "Unload" commands.
Fri, 29 Jun 2012 13:10:58 -0700
16.Debugger: update prototype for AcpiDbSleep function.
Fri, 17 Aug 2012 13:43:02 -0700
This patch will not affect the generated vmlinx binary.
This will decrease 264 lines of 20120913 divergence.diff.
Signed-off-by: Robert Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2012-10-31 10:25:15 +08:00
|
|
|
/*****************************************************************************
|
|
|
|
*
|
|
|
|
* Debug support
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/* Event counters */
|
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(u32, acpi_method_count);
|
|
|
|
ACPI_GLOBAL(u32, acpi_gpe_count);
|
|
|
|
ACPI_GLOBAL(u32, acpi_sci_count);
|
|
|
|
ACPI_GLOBAL(u32, acpi_fixed_event_count[ACPI_NUM_FIXED_EVENTS]);
|
ACPICA: Fix unmerged debugger divergences.
Debugger improvements in ACPICA are always ignored by ACPICA Linux
release. This will lead to divergences between Linux and ACPICA.
This patch fixes such unmerged debugger updates.
Following patches are included:
1. Fixed a couple compiler warnings for extra extern
Wed, 14 Mar 2007 21:12:19 +0000
2. Cleanup for internal Reference Object.
Wed, 27 Aug 2008 10:11:30 -0700
3. Debugger: Lock method args for multithread command.
Fri, 24 Apr 2009 12:28:49 -0700
4. Debugger: Add max count argument for Batch command.
Tue, 29 Sep 2009 12:31:58 -0700
5. Add new host interfaces for _OSI support.
Thu, 5 Aug 2010 14:18:28 -0700
6. Increase debugger buffer size for method return objects.
Wed, 17 Nov 2010 13:48:30 -0800
7. Debugger: Add command to display status of global handlers.
Tue, 25 Jan 2011 13:47:58 -0800
8. Debugger: Split large dbcmds.c file.
Wed, 26 Jan 2011 13:03:41 -0800
9. Debugger/AcpiExec: Add support to pass complex args to methods.
Tue, 17 May 2011 13:33:39 -0700
10.Debugger: Add Template command to dump resource templates.
Fri, 28 Oct 2011 14:18:51 -0700
11.Support for custom ACPICA build for ACPI 5.0 reduced hardware.
Wed, 1 Feb 2012 13:18:17 -0800
12.Debugger: Improve command help support.
Wed, 15 Feb 2012 07:59:26 -0800
13.Update ACPI_HW_DEPENDENT* macro invocations.
Wed, 15 Feb 2012 08:14:08 -0800
14.Debugger: Rename function to simplify source code conversion.
Wed, 13 Jun 2012 14:23:06 -0700
15.Debugger: Enhance "Tables" and "Unload" commands.
Fri, 29 Jun 2012 13:10:58 -0700
16.Debugger: update prototype for AcpiDbSleep function.
Fri, 17 Aug 2012 13:43:02 -0700
This patch will not affect the generated vmlinx binary.
This will decrease 264 lines of 20120913 divergence.diff.
Signed-off-by: Robert Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2012-10-31 10:25:15 +08:00
|
|
|
|
2018-01-04 07:06:24 +08:00
|
|
|
/* Dynamic control method tracing mechanism */
|
ACPICA: Fix unmerged debugger divergences.
Debugger improvements in ACPICA are always ignored by ACPICA Linux
release. This will lead to divergences between Linux and ACPICA.
This patch fixes such unmerged debugger updates.
Following patches are included:
1. Fixed a couple compiler warnings for extra extern
Wed, 14 Mar 2007 21:12:19 +0000
2. Cleanup for internal Reference Object.
Wed, 27 Aug 2008 10:11:30 -0700
3. Debugger: Lock method args for multithread command.
Fri, 24 Apr 2009 12:28:49 -0700
4. Debugger: Add max count argument for Batch command.
Tue, 29 Sep 2009 12:31:58 -0700
5. Add new host interfaces for _OSI support.
Thu, 5 Aug 2010 14:18:28 -0700
6. Increase debugger buffer size for method return objects.
Wed, 17 Nov 2010 13:48:30 -0800
7. Debugger: Add command to display status of global handlers.
Tue, 25 Jan 2011 13:47:58 -0800
8. Debugger: Split large dbcmds.c file.
Wed, 26 Jan 2011 13:03:41 -0800
9. Debugger/AcpiExec: Add support to pass complex args to methods.
Tue, 17 May 2011 13:33:39 -0700
10.Debugger: Add Template command to dump resource templates.
Fri, 28 Oct 2011 14:18:51 -0700
11.Support for custom ACPICA build for ACPI 5.0 reduced hardware.
Wed, 1 Feb 2012 13:18:17 -0800
12.Debugger: Improve command help support.
Wed, 15 Feb 2012 07:59:26 -0800
13.Update ACPI_HW_DEPENDENT* macro invocations.
Wed, 15 Feb 2012 08:14:08 -0800
14.Debugger: Rename function to simplify source code conversion.
Wed, 13 Jun 2012 14:23:06 -0700
15.Debugger: Enhance "Tables" and "Unload" commands.
Fri, 29 Jun 2012 13:10:58 -0700
16.Debugger: update prototype for AcpiDbSleep function.
Fri, 17 Aug 2012 13:43:02 -0700
This patch will not affect the generated vmlinx binary.
This will decrease 264 lines of 20120913 divergence.diff.
Signed-off-by: Robert Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2012-10-31 10:25:15 +08:00
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_original_dbg_level);
|
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_original_dbg_layer);
|
ACPICA: Fix unmerged debugger divergences.
Debugger improvements in ACPICA are always ignored by ACPICA Linux
release. This will lead to divergences between Linux and ACPICA.
This patch fixes such unmerged debugger updates.
Following patches are included:
1. Fixed a couple compiler warnings for extra extern
Wed, 14 Mar 2007 21:12:19 +0000
2. Cleanup for internal Reference Object.
Wed, 27 Aug 2008 10:11:30 -0700
3. Debugger: Lock method args for multithread command.
Fri, 24 Apr 2009 12:28:49 -0700
4. Debugger: Add max count argument for Batch command.
Tue, 29 Sep 2009 12:31:58 -0700
5. Add new host interfaces for _OSI support.
Thu, 5 Aug 2010 14:18:28 -0700
6. Increase debugger buffer size for method return objects.
Wed, 17 Nov 2010 13:48:30 -0800
7. Debugger: Add command to display status of global handlers.
Tue, 25 Jan 2011 13:47:58 -0800
8. Debugger: Split large dbcmds.c file.
Wed, 26 Jan 2011 13:03:41 -0800
9. Debugger/AcpiExec: Add support to pass complex args to methods.
Tue, 17 May 2011 13:33:39 -0700
10.Debugger: Add Template command to dump resource templates.
Fri, 28 Oct 2011 14:18:51 -0700
11.Support for custom ACPICA build for ACPI 5.0 reduced hardware.
Wed, 1 Feb 2012 13:18:17 -0800
12.Debugger: Improve command help support.
Wed, 15 Feb 2012 07:59:26 -0800
13.Update ACPI_HW_DEPENDENT* macro invocations.
Wed, 15 Feb 2012 08:14:08 -0800
14.Debugger: Rename function to simplify source code conversion.
Wed, 13 Jun 2012 14:23:06 -0700
15.Debugger: Enhance "Tables" and "Unload" commands.
Fri, 29 Jun 2012 13:10:58 -0700
16.Debugger: update prototype for AcpiDbSleep function.
Fri, 17 Aug 2012 13:43:02 -0700
This patch will not affect the generated vmlinx binary.
This will decrease 264 lines of 20120913 divergence.diff.
Signed-off-by: Robert Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2012-10-31 10:25:15 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
/*****************************************************************************
|
|
|
|
*
|
2018-01-04 07:06:24 +08:00
|
|
|
* Debugger and Disassembler
|
2005-04-17 06:20:36 +08:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2014-07-08 10:06:45 +08:00
|
|
|
ACPI_INIT_GLOBAL(u8, acpi_gbl_db_output_flags, ACPI_DB_CONSOLE_OUTPUT);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
#ifdef ACPI_DISASSEMBLER
|
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
/* Do not disassemble buffers to resource descriptors */
|
|
|
|
|
|
|
|
ACPI_INIT_GLOBAL(u8, acpi_gbl_no_resource_disassembly, FALSE);
|
|
|
|
ACPI_INIT_GLOBAL(u8, acpi_gbl_ignore_noop_operator, FALSE);
|
2014-11-27 14:26:12 +08:00
|
|
|
ACPI_INIT_GLOBAL(u8, acpi_gbl_cstyle_disassembly, TRUE);
|
2015-04-13 11:50:21 +08:00
|
|
|
ACPI_INIT_GLOBAL(u8, acpi_gbl_force_aml_disassembly, FALSE);
|
2015-08-25 10:30:34 +08:00
|
|
|
ACPI_INIT_GLOBAL(u8, acpi_gbl_dm_opt_verbose, TRUE);
|
2016-08-04 16:43:02 +08:00
|
|
|
ACPI_INIT_GLOBAL(u8, acpi_gbl_dm_emit_external_opcodes, FALSE);
|
2016-10-18 03:03:39 +08:00
|
|
|
ACPI_INIT_GLOBAL(u8, acpi_gbl_do_disassembler_optimizations, TRUE);
|
2017-06-05 16:38:53 +08:00
|
|
|
ACPI_INIT_GLOBAL(ACPI_PARSE_OBJECT_LIST, *acpi_gbl_temp_list_head, NULL);
|
2013-01-25 13:41:08 +08:00
|
|
|
|
2015-08-25 10:30:27 +08:00
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_dm_opt_disasm);
|
2015-08-25 10:28:47 +08:00
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_dm_opt_listing);
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_num_external_methods);
|
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_resolved_external_methods);
|
|
|
|
ACPI_GLOBAL(struct acpi_external_list *, acpi_gbl_external_list);
|
|
|
|
ACPI_GLOBAL(struct acpi_external_file *, acpi_gbl_external_file_list);
|
2005-04-17 06:20:36 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef ACPI_DEBUGGER
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_INIT_GLOBAL(u8, acpi_gbl_abort_method, FALSE);
|
2015-10-19 10:25:50 +08:00
|
|
|
ACPI_INIT_GLOBAL(acpi_thread_id, acpi_gbl_db_thread_id, ACPI_INVALID_THREAD_ID);
|
2020-05-05 08:46:50 +08:00
|
|
|
ACPI_INIT_GLOBAL(u32, acpi_gbl_next_cmd_num, 1);
|
2005-08-05 12:44:28 +08:00
|
|
|
|
2015-04-13 11:50:14 +08:00
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_db_opt_no_ini_methods);
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_db_opt_no_region_support);
|
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_db_output_to_file);
|
|
|
|
ACPI_GLOBAL(char *, acpi_gbl_db_buffer);
|
|
|
|
ACPI_GLOBAL(char *, acpi_gbl_db_filename);
|
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_db_debug_level);
|
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_db_console_debug_level);
|
|
|
|
ACPI_GLOBAL(struct acpi_namespace_node *, acpi_gbl_db_scope_node);
|
2015-10-19 10:25:32 +08:00
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_db_terminate_loop);
|
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_db_threads_terminated);
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(char *, acpi_gbl_db_args[ACPI_DEBUGGER_MAX_ARGS]);
|
|
|
|
ACPI_GLOBAL(acpi_object_type, acpi_gbl_db_arg_types[ACPI_DEBUGGER_MAX_ARGS]);
|
2013-09-23 09:51:52 +08:00
|
|
|
|
|
|
|
/* These buffers should all be the same size */
|
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(char, acpi_gbl_db_parsed_buf[ACPI_DB_LINE_BUFFER_SIZE]);
|
|
|
|
ACPI_GLOBAL(char, acpi_gbl_db_scope_buf[ACPI_DB_LINE_BUFFER_SIZE]);
|
|
|
|
ACPI_GLOBAL(char, acpi_gbl_db_debug_filename[ACPI_DB_LINE_BUFFER_SIZE]);
|
2013-09-23 09:51:52 +08:00
|
|
|
|
2018-01-04 07:06:24 +08:00
|
|
|
/* Statistics globals */
|
|
|
|
|
2015-08-25 10:29:52 +08:00
|
|
|
ACPI_GLOBAL(u16, acpi_gbl_obj_type_count[ACPI_TOTAL_TYPES]);
|
|
|
|
ACPI_GLOBAL(u16, acpi_gbl_node_type_count[ACPI_TOTAL_TYPES]);
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(u16, acpi_gbl_obj_type_count_misc);
|
|
|
|
ACPI_GLOBAL(u16, acpi_gbl_node_type_count_misc);
|
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_num_nodes);
|
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_num_objects);
|
2005-08-05 12:44:28 +08:00
|
|
|
#endif /* ACPI_DEBUGGER */
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2016-03-24 09:40:05 +08:00
|
|
|
#if defined (ACPI_DISASSEMBLER) || defined (ACPI_ASL_COMPILER)
|
|
|
|
ACPI_GLOBAL(const char, *acpi_gbl_pld_panel_list[]);
|
|
|
|
ACPI_GLOBAL(const char, *acpi_gbl_pld_vertical_position_list[]);
|
|
|
|
ACPI_GLOBAL(const char, *acpi_gbl_pld_horizontal_position_list[]);
|
|
|
|
ACPI_GLOBAL(const char, *acpi_gbl_pld_shape_list[]);
|
2017-06-05 16:41:36 +08:00
|
|
|
ACPI_INIT_GLOBAL(u8, acpi_gbl_disasm_flag, FALSE);
|
2016-03-24 09:40:05 +08:00
|
|
|
#endif
|
|
|
|
|
2018-01-04 07:06:24 +08:00
|
|
|
/*****************************************************************************
|
|
|
|
*
|
|
|
|
* ACPICA application-specific globals
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/* ASL-to-ASL+ conversion utility (implemented within the iASL compiler) */
|
|
|
|
|
|
|
|
#ifdef ACPI_ASL_COMPILER
|
2017-04-28 08:53:22 +08:00
|
|
|
ACPI_INIT_GLOBAL(char *, acpi_gbl_current_inline_comment, NULL);
|
|
|
|
ACPI_INIT_GLOBAL(char *, acpi_gbl_current_end_node_comment, NULL);
|
|
|
|
ACPI_INIT_GLOBAL(char *, acpi_gbl_current_open_brace_comment, NULL);
|
|
|
|
ACPI_INIT_GLOBAL(char *, acpi_gbl_current_close_brace_comment, NULL);
|
|
|
|
|
|
|
|
ACPI_INIT_GLOBAL(char *, acpi_gbl_root_filename, NULL);
|
|
|
|
ACPI_INIT_GLOBAL(char *, acpi_gbl_current_filename, NULL);
|
|
|
|
ACPI_INIT_GLOBAL(char *, acpi_gbl_current_parent_filename, NULL);
|
|
|
|
ACPI_INIT_GLOBAL(char *, acpi_gbl_current_include_filename, NULL);
|
|
|
|
|
|
|
|
ACPI_INIT_GLOBAL(struct acpi_comment_node, *acpi_gbl_def_blk_comment_list_head,
|
|
|
|
NULL);
|
|
|
|
ACPI_INIT_GLOBAL(struct acpi_comment_node, *acpi_gbl_def_blk_comment_list_tail,
|
|
|
|
NULL);
|
|
|
|
ACPI_INIT_GLOBAL(struct acpi_comment_node, *acpi_gbl_reg_comment_list_head,
|
|
|
|
NULL);
|
|
|
|
ACPI_INIT_GLOBAL(struct acpi_comment_node, *acpi_gbl_reg_comment_list_tail,
|
|
|
|
NULL);
|
|
|
|
ACPI_INIT_GLOBAL(struct acpi_comment_node, *acpi_gbl_inc_comment_list_head,
|
|
|
|
NULL);
|
|
|
|
ACPI_INIT_GLOBAL(struct acpi_comment_node, *acpi_gbl_inc_comment_list_tail,
|
|
|
|
NULL);
|
|
|
|
ACPI_INIT_GLOBAL(struct acpi_comment_node, *acpi_gbl_end_blk_comment_list_head,
|
|
|
|
NULL);
|
|
|
|
ACPI_INIT_GLOBAL(struct acpi_comment_node, *acpi_gbl_end_blk_comment_list_tail,
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
ACPI_INIT_GLOBAL(struct acpi_comment_addr_node,
|
|
|
|
*acpi_gbl_comment_addr_list_head, NULL);
|
|
|
|
ACPI_INIT_GLOBAL(struct acpi_file_node, *acpi_gbl_file_tree_root, NULL);
|
|
|
|
|
|
|
|
ACPI_GLOBAL(acpi_cache_t *, acpi_gbl_reg_comment_cache);
|
|
|
|
ACPI_GLOBAL(acpi_cache_t *, acpi_gbl_comment_addr_cache);
|
|
|
|
ACPI_GLOBAL(acpi_cache_t *, acpi_gbl_file_cache);
|
|
|
|
|
|
|
|
ACPI_INIT_GLOBAL(u8, acpi_gbl_debug_asl_conversion, FALSE);
|
|
|
|
ACPI_INIT_GLOBAL(ACPI_FILE, acpi_gbl_conv_debug_file, NULL);
|
|
|
|
ACPI_GLOBAL(char, acpi_gbl_table_sig[4]);
|
2018-01-04 07:06:24 +08:00
|
|
|
#endif
|
2014-01-08 13:45:02 +08:00
|
|
|
|
|
|
|
#ifdef ACPI_APPLICATION
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_INIT_GLOBAL(ACPI_FILE, acpi_gbl_debug_file, NULL);
|
2014-07-08 10:06:45 +08:00
|
|
|
ACPI_INIT_GLOBAL(ACPI_FILE, acpi_gbl_output_file, NULL);
|
2016-08-04 16:44:11 +08:00
|
|
|
ACPI_INIT_GLOBAL(u8, acpi_gbl_debug_timeout, FALSE);
|
2014-01-08 13:45:02 +08:00
|
|
|
|
2014-07-08 10:07:00 +08:00
|
|
|
/* Print buffer */
|
|
|
|
|
|
|
|
ACPI_GLOBAL(acpi_spinlock, acpi_gbl_print_lock); /* For print buffer */
|
|
|
|
ACPI_GLOBAL(char, acpi_gbl_print_buffer[1024]);
|
2014-01-08 13:45:02 +08:00
|
|
|
#endif /* ACPI_APPLICATION */
|
|
|
|
|
2005-08-05 12:44:28 +08:00
|
|
|
#endif /* __ACGLOBAL_H__ */
|