2005-04-17 06:20:36 +08:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* Name: acglobal.h - Declarations for global variables
|
|
|
|
*
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
/*
|
2015-02-05 15:20:45 +08:00
|
|
|
* Copyright (C) 2000 - 2015, Intel Corp.
|
2005-04-17 06:20:36 +08:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions, and the following disclaimer,
|
|
|
|
* without modification.
|
|
|
|
* 2. Redistributions in binary form must reproduce at minimum a disclaimer
|
|
|
|
* substantially similar to the "NO WARRANTY" disclaimer below
|
|
|
|
* ("Disclaimer") and any redistribution must be conditioned upon
|
|
|
|
* including a substantially similar Disclaimer requirement for further
|
|
|
|
* binary redistribution.
|
|
|
|
* 3. Neither the names of the above-listed copyright holders nor the names
|
|
|
|
* of any contributors may be used to endorse or promote products derived
|
|
|
|
* from this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* Alternatively, this software may be distributed under the terms of the
|
|
|
|
* GNU General Public License ("GPL") version 2 as published by the Free
|
|
|
|
* Software Foundation.
|
|
|
|
*
|
|
|
|
* NO WARRANTY
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
|
|
|
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
* HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
|
|
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
|
|
|
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
* POSSIBILITY OF SUCH DAMAGES.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ACGLOBAL_H__
|
|
|
|
#define __ACGLOBAL_H__
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
*
|
2014-04-30 10:03:52 +08:00
|
|
|
* Globals related to the 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);
|
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);
|
2015-07-01 14:43:18 +08:00
|
|
|
ACPI_GLOBAL(struct acpi_table_facs *, acpi_gbl_facs32);
|
|
|
|
ACPI_GLOBAL(struct acpi_table_facs *, acpi_gbl_facs64);
|
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
|
|
|
|
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
|
|
|
/*****************************************************************************
|
|
|
|
*
|
2011-11-16 10:57:28 +08:00
|
|
|
* Mutual exclusion within 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 */
|
|
|
|
ACPI_GLOBAL(acpi_spinlock, acpi_gbl_hardware_lock); /* For ACPI H/W except GPE registers */
|
|
|
|
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);
|
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);
|
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 */
|
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_reg_methods_executed);
|
2011-02-14 16:13:25 +08:00
|
|
|
|
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
|
|
|
/* Misc */
|
|
|
|
|
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];
|
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
|
|
|
|
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
|
|
|
#ifdef ACPI_DBG_TRACK_ALLOCATIONS
|
|
|
|
|
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
|
|
|
|
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);
|
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
|
|
|
/*****************************************************************************
|
|
|
|
*
|
|
|
|
* Namespace globals
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#if !defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY)
|
|
|
|
#define NUM_PREDEFINED_NAMES 10
|
|
|
|
#else
|
|
|
|
#define NUM_PREDEFINED_NAMES 9
|
|
|
|
#endif
|
|
|
|
|
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);
|
|
|
|
ACPI_GLOBAL(union acpi_operand_object *, acpi_gbl_module_code_list);
|
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
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
*
|
|
|
|
* Interpreter globals
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(struct acpi_thread_state *, acpi_gbl_current_walk_list);
|
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);
|
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);
|
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];
|
2006-06-09 04:29:00 +08:00
|
|
|
|
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
|
|
|
|
|
|
|
/* Support for dynamic control method tracing mechanism */
|
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_original_dbg_level);
|
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_original_dbg_layer);
|
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_trace_dbg_level);
|
|
|
|
ACPI_GLOBAL(u32, acpi_gbl_trace_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
|
|
|
/*****************************************************************************
|
|
|
|
*
|
2013-01-25 13:41:08 +08:00
|
|
|
* Debugger and Disassembler globals
|
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);
|
2013-01-25 13:41:08 +08:00
|
|
|
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_db_opt_disasm);
|
|
|
|
ACPI_GLOBAL(u8, acpi_gbl_db_opt_verbose);
|
|
|
|
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_db_terminate_threads, FALSE);
|
|
|
|
ACPI_INIT_GLOBAL(u8, acpi_gbl_abort_method, FALSE);
|
|
|
|
ACPI_INIT_GLOBAL(u8, acpi_gbl_method_executing, FALSE);
|
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);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
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_line_buf[ACPI_DB_LINE_BUFFER_SIZE]);
|
|
|
|
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
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
/*
|
|
|
|
* Statistic globals
|
|
|
|
*/
|
2014-02-26 10:32:38 +08:00
|
|
|
ACPI_GLOBAL(u16, acpi_gbl_obj_type_count[ACPI_TYPE_NS_NODE_MAX + 1]);
|
|
|
|
ACPI_GLOBAL(u16, acpi_gbl_node_type_count[ACPI_TYPE_NS_NODE_MAX + 1]);
|
|
|
|
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
|
|
|
|
2014-01-08 13:45:02 +08:00
|
|
|
/*****************************************************************************
|
|
|
|
*
|
|
|
|
* Application globals
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#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);
|
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 */
|
|
|
|
|
2012-06-29 09:12:59 +08:00
|
|
|
/*****************************************************************************
|
|
|
|
*
|
|
|
|
* Info/help support
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
extern const struct ah_predefined_name asl_predefined_info[];
|
2014-04-04 12:39:50 +08:00
|
|
|
extern const struct ah_device_id asl_device_ids[];
|
2012-06-29 09:12:59 +08:00
|
|
|
|
2005-08-05 12:44:28 +08:00
|
|
|
#endif /* __ACGLOBAL_H__ */
|