2018-03-14 23:13:07 +00:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
|
2005-04-16 22:20:36 +00:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* Module Name: exdump - Interpreter debug output routines
|
|
|
|
*
|
2018-01-04 18:06:38 +00:00
|
|
|
* Copyright (C) 2000 - 2018, Intel Corp.
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
2018-03-14 23:13:07 +00:00
|
|
|
*****************************************************************************/
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
#include <acpi/acpi.h>
|
2009-01-09 05:30:03 +00:00
|
|
|
#include "accommon.h"
|
|
|
|
#include "acinterp.h"
|
|
|
|
#include "amlcode.h"
|
|
|
|
#include "acnamesp.h"
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
#define _COMPONENT ACPI_EXECUTER
|
2005-08-05 04:44:28 +00:00
|
|
|
ACPI_MODULE_NAME("exdump")
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2005-05-13 04:00:00 +00:00
|
|
|
/*
|
|
|
|
* The following routines are used for debug output only
|
|
|
|
*/
|
|
|
|
#if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
|
2005-04-19 02:49:35 +00:00
|
|
|
/* Local prototypes */
|
2016-03-24 01:40:40 +00:00
|
|
|
static void acpi_ex_out_string(const char *title, const char *value);
|
2005-04-19 02:49:35 +00:00
|
|
|
|
2016-03-24 01:40:40 +00:00
|
|
|
static void acpi_ex_out_pointer(const char *title, const void *value);
|
2005-04-19 02:49:35 +00:00
|
|
|
|
ACPI: ACPICA 20060331
Implemented header file support for the following
additional ACPI tables: ASF!, BOOT, CPEP, DBGP, MCFG, SPCR,
SPMI, TCPA, and WDRT. With this support, all current and
known ACPI tables are now defined in the ACPICA headers and
are available for use by device drivers and other software.
Implemented support to allow tables that contain ACPI
names with invalid characters to be loaded. Previously,
this would cause the table load to fail, but since
there are several known cases of such tables on
existing machines, this change was made to enable
ACPI support for them. Also, this matches the
behavior of the Microsoft ACPI implementation.
https://bugzilla.novell.com/show_bug.cgi?id=147621
Fixed a couple regressions introduced during the memory
optimization in the 20060317 release. The namespace
node definition required additional reorganization and
an internal datatype that had been changed to 8-bit was
restored to 32-bit. (Valery Podrezov)
Fixed a problem where a null pointer passed to
acpi_ut_delete_generic_state() could be passed through
to acpi_os_release_object which is unexpected. Such
null pointers are now trapped and ignored, matching
the behavior of the previous implementation before the
deployment of acpi_os_release_object(). (Valery Podrezov,
Fiodor Suietov)
Fixed a memory mapping leak during the deletion of
a SystemMemory operation region where a cached memory
mapping was not deleted. This became a noticeable problem
for operation regions that are defined within frequently
used control methods. (Dana Meyers)
Reorganized the ACPI table header files into two main
files: one for the ACPI tables consumed by the ACPICA core,
and another for the miscellaneous ACPI tables that are
consumed by the drivers and other software. The various
FADT definitions were merged into one common section and
three different tables (ACPI 1.0, 1.0+, and 2.0)
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2006-03-31 05:00:00 +00:00
|
|
|
static void
|
|
|
|
acpi_ex_dump_object(union acpi_operand_object *obj_desc,
|
|
|
|
struct acpi_exdump_info *info);
|
|
|
|
|
2005-11-02 05:00:00 +00:00
|
|
|
static void acpi_ex_dump_reference_obj(union acpi_operand_object *obj_desc);
|
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 04:00:00 +00:00
|
|
|
|
|
|
|
static void
|
2005-11-02 05:00:00 +00:00
|
|
|
acpi_ex_dump_package_obj(union acpi_operand_object *obj_desc,
|
|
|
|
u32 level, u32 index);
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* Object Descriptor info tables
|
|
|
|
*
|
|
|
|
* Note: The first table entry must be an INIT opcode and must contain
|
|
|
|
* the table length (number of table entries)
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
static struct acpi_exdump_info acpi_ex_dump_integer[2] = {
|
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_integer), NULL},
|
|
|
|
{ACPI_EXD_UINT64, ACPI_EXD_OFFSET(integer.value), "Value"}
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct acpi_exdump_info acpi_ex_dump_string[4] = {
|
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_string), NULL},
|
|
|
|
{ACPI_EXD_UINT32, ACPI_EXD_OFFSET(string.length), "Length"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(string.pointer), "Pointer"},
|
|
|
|
{ACPI_EXD_STRING, 0, NULL}
|
|
|
|
};
|
|
|
|
|
2007-02-02 16:48:22 +00:00
|
|
|
static struct acpi_exdump_info acpi_ex_dump_buffer[5] = {
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_buffer), NULL},
|
|
|
|
{ACPI_EXD_UINT32, ACPI_EXD_OFFSET(buffer.length), "Length"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(buffer.pointer), "Pointer"},
|
2014-02-26 02:33:32 +00:00
|
|
|
{ACPI_EXD_NODE, ACPI_EXD_OFFSET(buffer.node), "Parent Node"},
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_BUFFER, 0, NULL}
|
|
|
|
};
|
|
|
|
|
2014-02-26 02:33:32 +00:00
|
|
|
static struct acpi_exdump_info acpi_ex_dump_package[6] = {
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_package), NULL},
|
2014-02-26 02:33:32 +00:00
|
|
|
{ACPI_EXD_NODE, ACPI_EXD_OFFSET(package.node), "Parent Node"},
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(package.flags), "Flags"},
|
2017-08-03 06:27:15 +00:00
|
|
|
{ACPI_EXD_UINT32, ACPI_EXD_OFFSET(package.count), "Element Count"},
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(package.elements), "Element List"},
|
|
|
|
{ACPI_EXD_PACKAGE, 0, NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct acpi_exdump_info acpi_ex_dump_device[4] = {
|
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_device), NULL},
|
2012-05-03 03:08:19 +00:00
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(device.notify_list[0]),
|
2005-11-02 05:00:00 +00:00
|
|
|
"System Notify"},
|
2012-05-03 03:08:19 +00:00
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(device.notify_list[1]),
|
2014-02-26 02:33:32 +00:00
|
|
|
"Device Notify"},
|
|
|
|
{ACPI_EXD_HDLR_LIST, ACPI_EXD_OFFSET(device.handler), "Handler"}
|
2005-11-02 05:00:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static struct acpi_exdump_info acpi_ex_dump_event[2] = {
|
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_event), NULL},
|
2006-06-23 21:04:00 +00:00
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(event.os_semaphore), "OsSemaphore"}
|
2005-11-02 05:00:00 +00:00
|
|
|
};
|
|
|
|
|
2009-05-21 02:42:09 +00:00
|
|
|
static struct acpi_exdump_info acpi_ex_dump_method[9] = {
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_method), NULL},
|
2011-01-12 01:19:43 +00:00
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(method.info_flags), "Info Flags"},
|
2009-05-21 02:42:09 +00:00
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(method.param_count),
|
|
|
|
"Parameter Count"},
|
2006-06-23 21:04:00 +00:00
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(method.sync_level), "Sync Level"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(method.mutex), "Mutex"},
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(method.owner_id), "Owner Id"},
|
2005-11-17 18:07:00 +00:00
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(method.thread_count), "Thread Count"},
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_UINT32, ACPI_EXD_OFFSET(method.aml_length), "Aml Length"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(method.aml_start), "Aml Start"}
|
|
|
|
};
|
|
|
|
|
2014-04-04 04:38:12 +00:00
|
|
|
static struct acpi_exdump_info acpi_ex_dump_mutex[6] = {
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_mutex), NULL},
|
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(mutex.sync_level), "Sync Level"},
|
2014-04-04 04:38:12 +00:00
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(mutex.original_sync_level),
|
|
|
|
"Original Sync Level"},
|
2007-05-10 03:01:59 +00:00
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(mutex.owner_thread), "Owner Thread"},
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_UINT16, ACPI_EXD_OFFSET(mutex.acquisition_depth),
|
|
|
|
"Acquire Depth"},
|
2006-06-23 21:04:00 +00:00
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(mutex.os_mutex), "OsMutex"}
|
2005-11-02 05:00:00 +00:00
|
|
|
};
|
|
|
|
|
2014-02-26 02:33:32 +00:00
|
|
|
static struct acpi_exdump_info acpi_ex_dump_region[8] = {
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_region), NULL},
|
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(region.space_id), "Space Id"},
|
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(region.flags), "Flags"},
|
2014-02-26 02:33:32 +00:00
|
|
|
{ACPI_EXD_NODE, ACPI_EXD_OFFSET(region.node), "Parent Node"},
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_ADDRESS, ACPI_EXD_OFFSET(region.address), "Address"},
|
|
|
|
{ACPI_EXD_UINT32, ACPI_EXD_OFFSET(region.length), "Length"},
|
2014-02-26 02:33:32 +00:00
|
|
|
{ACPI_EXD_HDLR_LIST, ACPI_EXD_OFFSET(region.handler), "Handler"},
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(region.next), "Next"}
|
|
|
|
};
|
|
|
|
|
2014-02-26 02:33:32 +00:00
|
|
|
static struct acpi_exdump_info acpi_ex_dump_power[6] = {
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_power), NULL},
|
|
|
|
{ACPI_EXD_UINT32, ACPI_EXD_OFFSET(power_resource.system_level),
|
|
|
|
"System Level"},
|
|
|
|
{ACPI_EXD_UINT32, ACPI_EXD_OFFSET(power_resource.resource_order),
|
|
|
|
"Resource Order"},
|
2012-05-03 03:08:19 +00:00
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(power_resource.notify_list[0]),
|
2005-11-02 05:00:00 +00:00
|
|
|
"System Notify"},
|
2012-05-03 03:08:19 +00:00
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(power_resource.notify_list[1]),
|
2014-02-26 02:33:32 +00:00
|
|
|
"Device Notify"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(power_resource.handler), "Handler"}
|
2005-11-02 05:00:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static struct acpi_exdump_info acpi_ex_dump_processor[7] = {
|
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_processor), NULL},
|
2007-02-02 16:48:22 +00:00
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(processor.proc_id), "Processor ID"},
|
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(processor.length), "Length"},
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_ADDRESS, ACPI_EXD_OFFSET(processor.address), "Address"},
|
2012-05-03 03:08:19 +00:00
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(processor.notify_list[0]),
|
2005-11-02 05:00:00 +00:00
|
|
|
"System Notify"},
|
2012-05-03 03:08:19 +00:00
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(processor.notify_list[1]),
|
2005-11-02 05:00:00 +00:00
|
|
|
"Device Notify"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(processor.handler), "Handler"}
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct acpi_exdump_info acpi_ex_dump_thermal[4] = {
|
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_thermal), NULL},
|
2012-05-03 03:08:19 +00:00
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(thermal_zone.notify_list[0]),
|
2005-11-02 05:00:00 +00:00
|
|
|
"System Notify"},
|
2012-05-03 03:08:19 +00:00
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(thermal_zone.notify_list[1]),
|
2005-11-02 05:00:00 +00:00
|
|
|
"Device Notify"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(thermal_zone.handler), "Handler"}
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct acpi_exdump_info acpi_ex_dump_buffer_field[3] = {
|
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_buffer_field), NULL},
|
|
|
|
{ACPI_EXD_FIELD, 0, NULL},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(buffer_field.buffer_obj),
|
|
|
|
"Buffer Object"}
|
|
|
|
};
|
|
|
|
|
2011-11-16 05:39:07 +00:00
|
|
|
static struct acpi_exdump_info acpi_ex_dump_region_field[5] = {
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_region_field), NULL},
|
|
|
|
{ACPI_EXD_FIELD, 0, NULL},
|
2011-11-16 05:39:07 +00:00
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(field.access_length), "AccessLength"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(field.region_obj), "Region Object"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(field.resource_buffer),
|
|
|
|
"ResourceBuffer"}
|
2005-11-02 05:00:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static struct acpi_exdump_info acpi_ex_dump_bank_field[5] = {
|
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_bank_field), NULL},
|
|
|
|
{ACPI_EXD_FIELD, 0, NULL},
|
|
|
|
{ACPI_EXD_UINT32, ACPI_EXD_OFFSET(bank_field.value), "Value"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(bank_field.region_obj),
|
|
|
|
"Region Object"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(bank_field.bank_obj), "Bank Object"}
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct acpi_exdump_info acpi_ex_dump_index_field[5] = {
|
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_bank_field), NULL},
|
|
|
|
{ACPI_EXD_FIELD, 0, NULL},
|
|
|
|
{ACPI_EXD_UINT32, ACPI_EXD_OFFSET(index_field.value), "Value"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(index_field.index_obj),
|
|
|
|
"Index Object"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(index_field.data_obj), "Data Object"}
|
|
|
|
};
|
|
|
|
|
2015-07-01 06:44:44 +00:00
|
|
|
static struct acpi_exdump_info acpi_ex_dump_reference[9] = {
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_reference), NULL},
|
2008-09-27 03:08:41 +00:00
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(reference.class), "Class"},
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(reference.target_type), "Target Type"},
|
2008-09-27 02:40:39 +00:00
|
|
|
{ACPI_EXD_UINT32, ACPI_EXD_OFFSET(reference.value), "Value"},
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(reference.object), "Object Desc"},
|
2014-02-26 02:33:32 +00:00
|
|
|
{ACPI_EXD_NODE, ACPI_EXD_OFFSET(reference.node), "Node"},
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(reference.where), "Where"},
|
2015-07-01 06:44:44 +00:00
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(reference.index_pointer),
|
|
|
|
"Index Pointer"},
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_REFERENCE, 0, NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct acpi_exdump_info acpi_ex_dump_address_handler[6] = {
|
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_address_handler),
|
|
|
|
NULL},
|
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(address_space.space_id), "Space Id"},
|
2014-02-26 02:33:32 +00:00
|
|
|
{ACPI_EXD_HDLR_LIST, ACPI_EXD_OFFSET(address_space.next), "Next"},
|
|
|
|
{ACPI_EXD_RGN_LIST, ACPI_EXD_OFFSET(address_space.region_list),
|
2005-11-02 05:00:00 +00:00
|
|
|
"Region List"},
|
2014-02-26 02:33:32 +00:00
|
|
|
{ACPI_EXD_NODE, ACPI_EXD_OFFSET(address_space.node), "Node"},
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(address_space.context), "Context"}
|
|
|
|
};
|
|
|
|
|
2012-05-03 03:08:19 +00:00
|
|
|
static struct acpi_exdump_info acpi_ex_dump_notify[7] = {
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_notify), NULL},
|
2014-02-26 02:33:32 +00:00
|
|
|
{ACPI_EXD_NODE, ACPI_EXD_OFFSET(notify.node), "Node"},
|
2012-05-03 03:08:19 +00:00
|
|
|
{ACPI_EXD_UINT32, ACPI_EXD_OFFSET(notify.handler_type), "Handler Type"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(notify.handler), "Handler"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(notify.context), "Context"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(notify.next[0]),
|
|
|
|
"Next System Notify"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(notify.next[1]), "Next Device Notify"}
|
2005-11-02 05:00:00 +00:00
|
|
|
};
|
|
|
|
|
2014-02-26 02:33:32 +00:00
|
|
|
static struct acpi_exdump_info acpi_ex_dump_extra[6] = {
|
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_extra), NULL},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(extra.method_REG), "_REG Method"},
|
|
|
|
{ACPI_EXD_NODE, ACPI_EXD_OFFSET(extra.scope_node), "Scope Node"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(extra.region_context),
|
|
|
|
"Region Context"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(extra.aml_start), "Aml Start"},
|
|
|
|
{ACPI_EXD_UINT32, ACPI_EXD_OFFSET(extra.aml_length), "Aml Length"}
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct acpi_exdump_info acpi_ex_dump_data[3] = {
|
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_data), NULL},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(data.handler), "Handler"},
|
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(data.pointer), "Raw Data"}
|
|
|
|
};
|
|
|
|
|
2005-11-02 05:00:00 +00:00
|
|
|
/* Miscellaneous tables */
|
|
|
|
|
2014-02-26 02:33:32 +00:00
|
|
|
static struct acpi_exdump_info acpi_ex_dump_common[5] = {
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_common), NULL},
|
|
|
|
{ACPI_EXD_TYPE, 0, NULL},
|
|
|
|
{ACPI_EXD_UINT16, ACPI_EXD_OFFSET(common.reference_count),
|
|
|
|
"Reference Count"},
|
2014-02-26 02:33:32 +00:00
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(common.flags), "Flags"},
|
|
|
|
{ACPI_EXD_LIST, ACPI_EXD_OFFSET(common.next_object), "Object List"}
|
2005-11-02 05:00:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static struct acpi_exdump_info acpi_ex_dump_field_common[7] = {
|
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_field_common), NULL},
|
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(common_field.field_flags),
|
|
|
|
"Field Flags"},
|
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(common_field.access_byte_width),
|
|
|
|
"Access Byte Width"},
|
|
|
|
{ACPI_EXD_UINT32, ACPI_EXD_OFFSET(common_field.bit_length),
|
|
|
|
"Bit Length"},
|
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(common_field.start_field_bit_offset),
|
|
|
|
"Field Bit Offset"},
|
|
|
|
{ACPI_EXD_UINT32, ACPI_EXD_OFFSET(common_field.base_byte_offset),
|
|
|
|
"Base Byte Offset"},
|
2014-02-26 02:33:32 +00:00
|
|
|
{ACPI_EXD_NODE, ACPI_EXD_OFFSET(common_field.node), "Parent Node"}
|
2005-11-02 05:00:00 +00:00
|
|
|
};
|
|
|
|
|
2014-02-26 02:33:32 +00:00
|
|
|
static struct acpi_exdump_info acpi_ex_dump_node[7] = {
|
2005-11-02 05:00:00 +00:00
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_node), NULL},
|
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_NSOFFSET(flags), "Flags"},
|
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_NSOFFSET(owner_id), "Owner Id"},
|
2014-02-26 02:33:32 +00:00
|
|
|
{ACPI_EXD_LIST, ACPI_EXD_NSOFFSET(object), "Object List"},
|
|
|
|
{ACPI_EXD_NODE, ACPI_EXD_NSOFFSET(parent), "Parent"},
|
|
|
|
{ACPI_EXD_NODE, ACPI_EXD_NSOFFSET(child), "Child"},
|
|
|
|
{ACPI_EXD_NODE, ACPI_EXD_NSOFFSET(peer), "Peer"}
|
2005-11-02 05:00:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Dispatch table, indexed by object type */
|
|
|
|
|
|
|
|
static struct acpi_exdump_info *acpi_ex_dump_info[] = {
|
|
|
|
NULL,
|
|
|
|
acpi_ex_dump_integer,
|
|
|
|
acpi_ex_dump_string,
|
|
|
|
acpi_ex_dump_buffer,
|
|
|
|
acpi_ex_dump_package,
|
|
|
|
NULL,
|
|
|
|
acpi_ex_dump_device,
|
|
|
|
acpi_ex_dump_event,
|
|
|
|
acpi_ex_dump_method,
|
|
|
|
acpi_ex_dump_mutex,
|
|
|
|
acpi_ex_dump_region,
|
|
|
|
acpi_ex_dump_power,
|
|
|
|
acpi_ex_dump_processor,
|
|
|
|
acpi_ex_dump_thermal,
|
|
|
|
acpi_ex_dump_buffer_field,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
acpi_ex_dump_region_field,
|
|
|
|
acpi_ex_dump_bank_field,
|
|
|
|
acpi_ex_dump_index_field,
|
|
|
|
acpi_ex_dump_reference,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
acpi_ex_dump_notify,
|
|
|
|
acpi_ex_dump_address_handler,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
2014-02-26 02:33:32 +00:00
|
|
|
NULL,
|
|
|
|
acpi_ex_dump_extra,
|
|
|
|
acpi_ex_dump_data
|
2005-11-02 05:00:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* FUNCTION: acpi_ex_dump_object
|
|
|
|
*
|
|
|
|
* PARAMETERS: obj_desc - Descriptor to dump
|
2012-07-12 01:40:10 +00:00
|
|
|
* info - Info table corresponding to this object
|
2005-11-02 05:00:00 +00:00
|
|
|
* type
|
|
|
|
*
|
|
|
|
* RETURN: None
|
|
|
|
*
|
|
|
|
* DESCRIPTION: Walk the info table for this object
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
static void
|
|
|
|
acpi_ex_dump_object(union acpi_operand_object *obj_desc,
|
|
|
|
struct acpi_exdump_info *info)
|
|
|
|
{
|
|
|
|
u8 *target;
|
2016-03-24 01:40:40 +00:00
|
|
|
const char *name;
|
2005-11-02 05:00:00 +00:00
|
|
|
u8 count;
|
2014-02-26 02:33:32 +00:00
|
|
|
union acpi_operand_object *start;
|
|
|
|
union acpi_operand_object *data = NULL;
|
|
|
|
union acpi_operand_object *next;
|
|
|
|
struct acpi_namespace_node *node;
|
2005-11-02 05:00:00 +00:00
|
|
|
|
|
|
|
if (!info) {
|
|
|
|
acpi_os_printf
|
ACPI: ACPICA 20060421
Removed a device initialization optimization introduced in
20051216 where the _STA method was not run unless an _INI
was also present for the same device. This optimization
could cause problems because it could allow _INI methods
to be run within a not-present device subtree (If a
not-present device had no _INI, _STA would not be run,
the not-present status would not be discovered, and the
children of the device would be incorrectly traversed.)
Implemented a new _STA optimization where namespace
subtrees that do not contain _INI are identified and
ignored during device initialization. Selectively running
_STA can significantly improve boot time on large machines
(with assistance from Len Brown.)
Implemented support for the device initialization case
where the returned _STA flags indicate a device not-present
but functioning. In this case, _INI is not run, but the
device children are examined for presence, as per the
ACPI specification.
Implemented an additional change to the IndexField support
in order to conform to MS behavior. The value written to
the Index Register is not simply a byte offset, it is a
byte offset in units of the access width of the parent
Index Field. (Fiodor Suietov)
Defined and deployed a new OSL interface,
acpi_os_validate_address(). This interface is called during
the creation of all AML operation regions, and allows
the host OS to exert control over what addresses it will
allow the AML code to access. Operation Regions whose
addresses are disallowed will cause a runtime exception
when they are actually accessed (will not affect or abort
table loading.)
Defined and deployed a new OSL interface,
acpi_os_validate_interface(). This interface allows the host OS
to match the various "optional" interface/behavior strings
for the _OSI predefined control method as appropriate
(with assistance from Bjorn Helgaas.)
Restructured and corrected various problems in the
exception handling code paths within DsCallControlMethod
and DsTerminateControlMethod in dsmethod (with assistance
from Takayoshi Kochi.)
Modified the Linux source converter to ignore quoted string
literals while converting identifiers from mixed to lower
case. This will correct problems with the disassembler
and other areas where such strings must not be modified.
The ACPI_FUNCTION_* macros no longer require quotes around
the function name. This allows the Linux source converter
to convert the names, now that the converter ignores
quoted strings.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2006-04-21 21:15:00 +00:00
|
|
|
("ExDumpObject: Display not implemented for object type %s\n",
|
2005-11-02 05:00:00 +00:00
|
|
|
acpi_ut_get_object_type_name(obj_desc));
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* First table entry must contain the table length (# of table entries) */
|
|
|
|
|
|
|
|
count = info->offset;
|
|
|
|
|
|
|
|
while (count) {
|
2017-08-03 06:27:15 +00:00
|
|
|
if (!obj_desc) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2005-11-17 18:07:00 +00:00
|
|
|
target = ACPI_ADD_PTR(u8, obj_desc, info->offset);
|
2005-11-02 05:00:00 +00:00
|
|
|
name = info->name;
|
|
|
|
|
|
|
|
switch (info->opcode) {
|
|
|
|
case ACPI_EXD_INIT:
|
2013-06-08 00:58:14 +00:00
|
|
|
|
2005-11-02 05:00:00 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_EXD_TYPE:
|
2009-03-19 01:52:34 +00:00
|
|
|
|
2014-02-26 02:33:32 +00:00
|
|
|
acpi_os_printf("%20s : %2.2X [%s]\n", "Type",
|
|
|
|
obj_desc->common.type,
|
|
|
|
acpi_ut_get_object_type_name(obj_desc));
|
2005-11-02 05:00:00 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_EXD_UINT8:
|
|
|
|
|
|
|
|
acpi_os_printf("%20s : %2.2X\n", name, *target);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_EXD_UINT16:
|
|
|
|
|
|
|
|
acpi_os_printf("%20s : %4.4X\n", name,
|
2005-11-17 18:07:00 +00:00
|
|
|
ACPI_GET16(target));
|
2005-11-02 05:00:00 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_EXD_UINT32:
|
|
|
|
|
|
|
|
acpi_os_printf("%20s : %8.8X\n", name,
|
2005-11-17 18:07:00 +00:00
|
|
|
ACPI_GET32(target));
|
2005-11-02 05:00:00 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_EXD_UINT64:
|
|
|
|
|
|
|
|
acpi_os_printf("%20s : %8.8X%8.8X\n", "Value",
|
2005-11-17 18:07:00 +00:00
|
|
|
ACPI_FORMAT_UINT64(ACPI_GET64(target)));
|
2005-11-02 05:00:00 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_EXD_POINTER:
|
2007-02-02 16:48:22 +00:00
|
|
|
case ACPI_EXD_ADDRESS:
|
2005-11-02 05:00:00 +00:00
|
|
|
|
|
|
|
acpi_ex_out_pointer(name,
|
|
|
|
*ACPI_CAST_PTR(void *, target));
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_EXD_STRING:
|
|
|
|
|
|
|
|
acpi_ut_print_string(obj_desc->string.pointer,
|
|
|
|
ACPI_UINT8_MAX);
|
|
|
|
acpi_os_printf("\n");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_EXD_BUFFER:
|
|
|
|
|
|
|
|
ACPI_DUMP_BUFFER(obj_desc->buffer.pointer,
|
|
|
|
obj_desc->buffer.length);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_EXD_PACKAGE:
|
|
|
|
|
|
|
|
/* Dump the package contents */
|
|
|
|
|
|
|
|
acpi_os_printf("\nPackage Contents:\n");
|
|
|
|
acpi_ex_dump_package_obj(obj_desc, 0, 0);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_EXD_FIELD:
|
|
|
|
|
|
|
|
acpi_ex_dump_object(obj_desc,
|
|
|
|
acpi_ex_dump_field_common);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_EXD_REFERENCE:
|
|
|
|
|
2008-09-27 03:08:41 +00:00
|
|
|
acpi_ex_out_string("Class Name",
|
2016-03-24 01:40:40 +00:00
|
|
|
acpi_ut_get_reference_name
|
|
|
|
(obj_desc));
|
2005-11-02 05:00:00 +00:00
|
|
|
acpi_ex_dump_reference_obj(obj_desc);
|
|
|
|
break;
|
|
|
|
|
2014-02-26 02:33:32 +00:00
|
|
|
case ACPI_EXD_LIST:
|
|
|
|
|
|
|
|
start = *ACPI_CAST_PTR(void *, target);
|
|
|
|
next = start;
|
|
|
|
|
2017-08-03 06:27:15 +00:00
|
|
|
acpi_os_printf("%20s : %p ", name, next);
|
2014-02-26 02:33:32 +00:00
|
|
|
if (next) {
|
2017-08-03 06:27:15 +00:00
|
|
|
acpi_os_printf("%s (Type %2.2X)",
|
2014-02-26 02:33:32 +00:00
|
|
|
acpi_ut_get_object_type_name
|
|
|
|
(next), next->common.type);
|
|
|
|
|
|
|
|
while (next->common.next_object) {
|
|
|
|
if ((next->common.type ==
|
|
|
|
ACPI_TYPE_LOCAL_DATA) && !data) {
|
|
|
|
data = next;
|
|
|
|
}
|
|
|
|
|
|
|
|
next = next->common.next_object;
|
|
|
|
acpi_os_printf("->%p(%s %2.2X)", next,
|
|
|
|
acpi_ut_get_object_type_name
|
|
|
|
(next),
|
|
|
|
next->common.type);
|
|
|
|
|
|
|
|
if ((next == start) || (next == data)) {
|
|
|
|
acpi_os_printf
|
|
|
|
("\n**** Error: Object list appears to be circular linked");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2017-08-03 06:27:15 +00:00
|
|
|
} else {
|
|
|
|
acpi_os_printf("- No attached objects");
|
2014-02-26 02:33:32 +00:00
|
|
|
}
|
|
|
|
|
2014-07-30 04:20:53 +00:00
|
|
|
acpi_os_printf("\n");
|
2014-02-26 02:33:32 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_EXD_HDLR_LIST:
|
|
|
|
|
|
|
|
start = *ACPI_CAST_PTR(void *, target);
|
|
|
|
next = start;
|
|
|
|
|
|
|
|
acpi_os_printf("%20s : %p", name, next);
|
|
|
|
if (next) {
|
|
|
|
acpi_os_printf("(%s %2.2X)",
|
|
|
|
acpi_ut_get_object_type_name
|
2015-12-29 06:01:53 +00:00
|
|
|
(next),
|
|
|
|
next->address_space.space_id);
|
2014-02-26 02:33:32 +00:00
|
|
|
|
|
|
|
while (next->address_space.next) {
|
|
|
|
if ((next->common.type ==
|
|
|
|
ACPI_TYPE_LOCAL_DATA) && !data) {
|
|
|
|
data = next;
|
|
|
|
}
|
|
|
|
|
|
|
|
next = next->address_space.next;
|
|
|
|
acpi_os_printf("->%p(%s %2.2X)", next,
|
|
|
|
acpi_ut_get_object_type_name
|
|
|
|
(next),
|
2015-12-29 06:01:53 +00:00
|
|
|
next->address_space.
|
|
|
|
space_id);
|
2014-02-26 02:33:32 +00:00
|
|
|
|
|
|
|
if ((next == start) || (next == data)) {
|
|
|
|
acpi_os_printf
|
|
|
|
("\n**** Error: Handler list appears to be circular linked");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-30 04:20:53 +00:00
|
|
|
acpi_os_printf("\n");
|
2014-02-26 02:33:32 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_EXD_RGN_LIST:
|
|
|
|
|
|
|
|
start = *ACPI_CAST_PTR(void *, target);
|
|
|
|
next = start;
|
|
|
|
|
|
|
|
acpi_os_printf("%20s : %p", name, next);
|
|
|
|
if (next) {
|
|
|
|
acpi_os_printf("(%s %2.2X)",
|
|
|
|
acpi_ut_get_object_type_name
|
|
|
|
(next), next->common.type);
|
|
|
|
|
|
|
|
while (next->region.next) {
|
|
|
|
if ((next->common.type ==
|
|
|
|
ACPI_TYPE_LOCAL_DATA) && !data) {
|
|
|
|
data = next;
|
|
|
|
}
|
|
|
|
|
|
|
|
next = next->region.next;
|
|
|
|
acpi_os_printf("->%p(%s %2.2X)", next,
|
|
|
|
acpi_ut_get_object_type_name
|
|
|
|
(next),
|
|
|
|
next->common.type);
|
|
|
|
|
|
|
|
if ((next == start) || (next == data)) {
|
|
|
|
acpi_os_printf
|
|
|
|
("\n**** Error: Region list appears to be circular linked");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-30 04:20:53 +00:00
|
|
|
acpi_os_printf("\n");
|
2014-02-26 02:33:32 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_EXD_NODE:
|
|
|
|
|
|
|
|
node =
|
|
|
|
*ACPI_CAST_PTR(struct acpi_namespace_node *,
|
|
|
|
target);
|
|
|
|
|
|
|
|
acpi_os_printf("%20s : %p", name, node);
|
|
|
|
if (node) {
|
|
|
|
acpi_os_printf(" [%4.4s]", node->name.ascii);
|
|
|
|
}
|
|
|
|
acpi_os_printf("\n");
|
|
|
|
break;
|
|
|
|
|
2005-11-02 05:00:00 +00:00
|
|
|
default:
|
2009-03-19 01:52:34 +00:00
|
|
|
|
2005-11-02 05:00:00 +00:00
|
|
|
acpi_os_printf("**** Invalid table opcode [%X] ****\n",
|
|
|
|
info->opcode);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
info++;
|
|
|
|
count--;
|
|
|
|
}
|
|
|
|
}
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2005-04-19 02:49:35 +00:00
|
|
|
/*******************************************************************************
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
|
|
|
* FUNCTION: acpi_ex_dump_operand
|
|
|
|
*
|
2005-04-19 02:49:35 +00:00
|
|
|
* PARAMETERS: *obj_desc - Pointer to entry to be dumped
|
2012-07-12 01:40:10 +00:00
|
|
|
* depth - Current nesting depth
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
|
|
|
* RETURN: None
|
|
|
|
*
|
|
|
|
* DESCRIPTION: Dump an operand object
|
|
|
|
*
|
2005-04-19 02:49:35 +00:00
|
|
|
******************************************************************************/
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
void acpi_ex_dump_operand(union acpi_operand_object *obj_desc, u32 depth)
|
2005-04-16 22:20:36 +00:00
|
|
|
{
|
2005-08-05 04:44:28 +00:00
|
|
|
u32 length;
|
|
|
|
u32 index;
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2018-01-03 23:06:30 +00:00
|
|
|
ACPI_FUNCTION_NAME(ex_dump_operand);
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2018-01-03 23:06:30 +00:00
|
|
|
/* Check if debug output enabled */
|
|
|
|
|
|
|
|
if (!ACPI_IS_DEBUG_ENABLED(ACPI_LV_EXEC, _COMPONENT)) {
|
2005-04-16 22:20:36 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!obj_desc) {
|
2006-10-02 04:00:00 +00:00
|
|
|
|
2005-04-19 02:49:35 +00:00
|
|
|
/* This could be a null element of a package */
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "Null Object Descriptor\n"));
|
2005-04-16 22:20:36 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
if (ACPI_GET_DESCRIPTOR_TYPE(obj_desc) == ACPI_DESC_TYPE_NAMED) {
|
|
|
|
ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "%p Namespace Node: ",
|
|
|
|
obj_desc));
|
|
|
|
ACPI_DUMP_ENTRY(obj_desc, ACPI_LV_EXEC);
|
2005-04-16 22:20:36 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
if (ACPI_GET_DESCRIPTOR_TYPE(obj_desc) != ACPI_DESC_TYPE_OPERAND) {
|
|
|
|
ACPI_DEBUG_PRINT((ACPI_DB_EXEC,
|
|
|
|
"%p is not a node or operand object: [%s]\n",
|
|
|
|
obj_desc,
|
|
|
|
acpi_ut_get_descriptor_name(obj_desc)));
|
|
|
|
ACPI_DUMP_BUFFER(obj_desc, sizeof(union acpi_operand_object));
|
2005-04-16 22:20:36 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* obj_desc is a valid object */
|
|
|
|
|
|
|
|
if (depth > 0) {
|
2017-06-05 08:42:02 +00:00
|
|
|
ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "%*s[%u] %p Refs=%u ",
|
|
|
|
depth, " ", depth, obj_desc,
|
|
|
|
obj_desc->common.reference_count));
|
2005-08-05 04:44:28 +00:00
|
|
|
} else {
|
2017-06-05 08:42:02 +00:00
|
|
|
ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "%p Refs=%u ",
|
|
|
|
obj_desc, obj_desc->common.reference_count));
|
2005-04-16 22:20:36 +00:00
|
|
|
}
|
|
|
|
|
2005-04-19 02:49:35 +00:00
|
|
|
/* Decode object type */
|
|
|
|
|
2009-02-18 06:44:03 +00:00
|
|
|
switch (obj_desc->common.type) {
|
2005-04-16 22:20:36 +00:00
|
|
|
case ACPI_TYPE_LOCAL_REFERENCE:
|
|
|
|
|
2008-09-27 03:08:41 +00:00
|
|
|
acpi_os_printf("Reference: [%s] ",
|
|
|
|
acpi_ut_get_reference_name(obj_desc));
|
|
|
|
|
|
|
|
switch (obj_desc->reference.class) {
|
|
|
|
case ACPI_REFCLASS_DEBUG:
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2008-09-27 03:08:41 +00:00
|
|
|
acpi_os_printf("\n");
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
|
2008-09-27 03:08:41 +00:00
|
|
|
case ACPI_REFCLASS_INDEX:
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2008-09-27 03:08:41 +00:00
|
|
|
acpi_os_printf("%p\n", obj_desc->reference.object);
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
|
2008-09-27 03:08:41 +00:00
|
|
|
case ACPI_REFCLASS_TABLE:
|
2008-04-10 15:06:40 +00:00
|
|
|
|
2008-09-27 03:08:41 +00:00
|
|
|
acpi_os_printf("Table Index %X\n",
|
2008-09-27 02:40:39 +00:00
|
|
|
obj_desc->reference.value);
|
2008-04-10 15:06:40 +00:00
|
|
|
break;
|
|
|
|
|
2008-09-27 03:08:41 +00:00
|
|
|
case ACPI_REFCLASS_REFOF:
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2008-09-27 03:08:41 +00:00
|
|
|
acpi_os_printf("%p [%s]\n", obj_desc->reference.object,
|
2008-04-10 15:06:40 +00:00
|
|
|
acpi_ut_get_type_name(((union
|
|
|
|
acpi_operand_object
|
2008-09-27 03:08:41 +00:00
|
|
|
*)
|
|
|
|
obj_desc->
|
2008-04-10 15:06:40 +00:00
|
|
|
reference.
|
|
|
|
object)->common.
|
|
|
|
type));
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
|
2009-03-19 01:52:34 +00:00
|
|
|
case ACPI_REFCLASS_NAME:
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2017-06-05 08:42:02 +00:00
|
|
|
acpi_ut_repair_name(obj_desc->reference.node->name.
|
|
|
|
ascii);
|
|
|
|
acpi_os_printf("- [%4.4s] (Node %p)\n",
|
|
|
|
obj_desc->reference.node->name.ascii,
|
|
|
|
obj_desc->reference.node);
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
|
2009-03-19 01:52:34 +00:00
|
|
|
case ACPI_REFCLASS_ARG:
|
2008-09-27 03:08:41 +00:00
|
|
|
case ACPI_REFCLASS_LOCAL:
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2009-03-19 01:52:34 +00:00
|
|
|
acpi_os_printf("%X\n", obj_desc->reference.value);
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
|
2008-09-27 03:08:41 +00:00
|
|
|
default: /* Unknown reference class */
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2008-09-27 03:08:41 +00:00
|
|
|
acpi_os_printf("%2.2X\n", obj_desc->reference.class);
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_BUFFER:
|
|
|
|
|
2008-06-10 06:25:05 +00:00
|
|
|
acpi_os_printf("Buffer length %.2X @ %p\n",
|
2005-08-05 04:44:28 +00:00
|
|
|
obj_desc->buffer.length,
|
|
|
|
obj_desc->buffer.pointer);
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
/* Debug only -- dump the buffer contents */
|
|
|
|
|
|
|
|
if (obj_desc->buffer.pointer) {
|
2008-06-10 06:25:05 +00:00
|
|
|
length = obj_desc->buffer.length;
|
|
|
|
if (length > 128) {
|
|
|
|
length = 128;
|
2005-04-16 22:20:36 +00:00
|
|
|
}
|
2008-06-10 06:25:05 +00:00
|
|
|
|
|
|
|
acpi_os_printf
|
|
|
|
("Buffer Contents: (displaying length 0x%.2X)\n",
|
|
|
|
length);
|
|
|
|
ACPI_DUMP_BUFFER(obj_desc->buffer.pointer, length);
|
2005-04-16 22:20:36 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_INTEGER:
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("Integer %8.8X%8.8X\n",
|
|
|
|
ACPI_FORMAT_UINT64(obj_desc->integer.value));
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_PACKAGE:
|
|
|
|
|
ACPI: ACPICA 20060421
Removed a device initialization optimization introduced in
20051216 where the _STA method was not run unless an _INI
was also present for the same device. This optimization
could cause problems because it could allow _INI methods
to be run within a not-present device subtree (If a
not-present device had no _INI, _STA would not be run,
the not-present status would not be discovered, and the
children of the device would be incorrectly traversed.)
Implemented a new _STA optimization where namespace
subtrees that do not contain _INI are identified and
ignored during device initialization. Selectively running
_STA can significantly improve boot time on large machines
(with assistance from Len Brown.)
Implemented support for the device initialization case
where the returned _STA flags indicate a device not-present
but functioning. In this case, _INI is not run, but the
device children are examined for presence, as per the
ACPI specification.
Implemented an additional change to the IndexField support
in order to conform to MS behavior. The value written to
the Index Register is not simply a byte offset, it is a
byte offset in units of the access width of the parent
Index Field. (Fiodor Suietov)
Defined and deployed a new OSL interface,
acpi_os_validate_address(). This interface is called during
the creation of all AML operation regions, and allows
the host OS to exert control over what addresses it will
allow the AML code to access. Operation Regions whose
addresses are disallowed will cause a runtime exception
when they are actually accessed (will not affect or abort
table loading.)
Defined and deployed a new OSL interface,
acpi_os_validate_interface(). This interface allows the host OS
to match the various "optional" interface/behavior strings
for the _OSI predefined control method as appropriate
(with assistance from Bjorn Helgaas.)
Restructured and corrected various problems in the
exception handling code paths within DsCallControlMethod
and DsTerminateControlMethod in dsmethod (with assistance
from Takayoshi Kochi.)
Modified the Linux source converter to ignore quoted string
literals while converting identifiers from mixed to lower
case. This will correct problems with the disassembler
and other areas where such strings must not be modified.
The ACPI_FUNCTION_* macros no longer require quotes around
the function name. This allows the Linux source converter
to convert the names, now that the converter ignores
quoted strings.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2006-04-21 21:15:00 +00:00
|
|
|
acpi_os_printf("Package [Len %X] ElementArray %p\n",
|
2005-08-05 04:44:28 +00:00
|
|
|
obj_desc->package.count,
|
|
|
|
obj_desc->package.elements);
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* If elements exist, package element pointer is valid,
|
|
|
|
* and debug_level exceeds 1, dump package's elements.
|
|
|
|
*/
|
|
|
|
if (obj_desc->package.count &&
|
2005-08-05 04:44:28 +00:00
|
|
|
obj_desc->package.elements && acpi_dbg_level > 1) {
|
|
|
|
for (index = 0; index < obj_desc->package.count;
|
|
|
|
index++) {
|
|
|
|
acpi_ex_dump_operand(obj_desc->package.
|
|
|
|
elements[index],
|
|
|
|
depth + 1);
|
2005-04-16 22:20:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_REGION:
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("Region %s (%X)",
|
|
|
|
acpi_ut_get_region_name(obj_desc->region.
|
|
|
|
space_id),
|
|
|
|
obj_desc->region.space_id);
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* If the address and length have not been evaluated,
|
|
|
|
* don't print them.
|
|
|
|
*/
|
|
|
|
if (!(obj_desc->region.flags & AOPOBJ_DATA_VALID)) {
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("\n");
|
|
|
|
} else {
|
|
|
|
acpi_os_printf(" base %8.8X%8.8X Length %X\n",
|
2015-04-13 03:48:52 +00:00
|
|
|
ACPI_FORMAT_UINT64(obj_desc->region.
|
|
|
|
address),
|
2005-08-05 04:44:28 +00:00
|
|
|
obj_desc->region.length);
|
2005-04-16 22:20:36 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_STRING:
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("String length %X @ %p ",
|
|
|
|
obj_desc->string.length,
|
|
|
|
obj_desc->string.pointer);
|
2005-04-19 02:49:35 +00:00
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_ut_print_string(obj_desc->string.pointer, ACPI_UINT8_MAX);
|
|
|
|
acpi_os_printf("\n");
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_LOCAL_BANK_FIELD:
|
|
|
|
|
ACPI: ACPICA 20060421
Removed a device initialization optimization introduced in
20051216 where the _STA method was not run unless an _INI
was also present for the same device. This optimization
could cause problems because it could allow _INI methods
to be run within a not-present device subtree (If a
not-present device had no _INI, _STA would not be run,
the not-present status would not be discovered, and the
children of the device would be incorrectly traversed.)
Implemented a new _STA optimization where namespace
subtrees that do not contain _INI are identified and
ignored during device initialization. Selectively running
_STA can significantly improve boot time on large machines
(with assistance from Len Brown.)
Implemented support for the device initialization case
where the returned _STA flags indicate a device not-present
but functioning. In this case, _INI is not run, but the
device children are examined for presence, as per the
ACPI specification.
Implemented an additional change to the IndexField support
in order to conform to MS behavior. The value written to
the Index Register is not simply a byte offset, it is a
byte offset in units of the access width of the parent
Index Field. (Fiodor Suietov)
Defined and deployed a new OSL interface,
acpi_os_validate_address(). This interface is called during
the creation of all AML operation regions, and allows
the host OS to exert control over what addresses it will
allow the AML code to access. Operation Regions whose
addresses are disallowed will cause a runtime exception
when they are actually accessed (will not affect or abort
table loading.)
Defined and deployed a new OSL interface,
acpi_os_validate_interface(). This interface allows the host OS
to match the various "optional" interface/behavior strings
for the _OSI predefined control method as appropriate
(with assistance from Bjorn Helgaas.)
Restructured and corrected various problems in the
exception handling code paths within DsCallControlMethod
and DsTerminateControlMethod in dsmethod (with assistance
from Takayoshi Kochi.)
Modified the Linux source converter to ignore quoted string
literals while converting identifiers from mixed to lower
case. This will correct problems with the disassembler
and other areas where such strings must not be modified.
The ACPI_FUNCTION_* macros no longer require quotes around
the function name. This allows the Linux source converter
to convert the names, now that the converter ignores
quoted strings.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2006-04-21 21:15:00 +00:00
|
|
|
acpi_os_printf("BankField\n");
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_LOCAL_REGION_FIELD:
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf
|
2009-03-19 01:52:34 +00:00
|
|
|
("RegionField: Bits=%X AccWidth=%X Lock=%X Update=%X at "
|
|
|
|
"byte=%X bit=%X of below:\n", obj_desc->field.bit_length,
|
2005-08-05 04:44:28 +00:00
|
|
|
obj_desc->field.access_byte_width,
|
|
|
|
obj_desc->field.field_flags & AML_FIELD_LOCK_RULE_MASK,
|
|
|
|
obj_desc->field.field_flags & AML_FIELD_UPDATE_RULE_MASK,
|
|
|
|
obj_desc->field.base_byte_offset,
|
|
|
|
obj_desc->field.start_field_bit_offset);
|
2005-04-19 02:49:35 +00:00
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_ex_dump_operand(obj_desc->field.region_obj, depth + 1);
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_LOCAL_INDEX_FIELD:
|
|
|
|
|
ACPI: ACPICA 20060421
Removed a device initialization optimization introduced in
20051216 where the _STA method was not run unless an _INI
was also present for the same device. This optimization
could cause problems because it could allow _INI methods
to be run within a not-present device subtree (If a
not-present device had no _INI, _STA would not be run,
the not-present status would not be discovered, and the
children of the device would be incorrectly traversed.)
Implemented a new _STA optimization where namespace
subtrees that do not contain _INI are identified and
ignored during device initialization. Selectively running
_STA can significantly improve boot time on large machines
(with assistance from Len Brown.)
Implemented support for the device initialization case
where the returned _STA flags indicate a device not-present
but functioning. In this case, _INI is not run, but the
device children are examined for presence, as per the
ACPI specification.
Implemented an additional change to the IndexField support
in order to conform to MS behavior. The value written to
the Index Register is not simply a byte offset, it is a
byte offset in units of the access width of the parent
Index Field. (Fiodor Suietov)
Defined and deployed a new OSL interface,
acpi_os_validate_address(). This interface is called during
the creation of all AML operation regions, and allows
the host OS to exert control over what addresses it will
allow the AML code to access. Operation Regions whose
addresses are disallowed will cause a runtime exception
when they are actually accessed (will not affect or abort
table loading.)
Defined and deployed a new OSL interface,
acpi_os_validate_interface(). This interface allows the host OS
to match the various "optional" interface/behavior strings
for the _OSI predefined control method as appropriate
(with assistance from Bjorn Helgaas.)
Restructured and corrected various problems in the
exception handling code paths within DsCallControlMethod
and DsTerminateControlMethod in dsmethod (with assistance
from Takayoshi Kochi.)
Modified the Linux source converter to ignore quoted string
literals while converting identifiers from mixed to lower
case. This will correct problems with the disassembler
and other areas where such strings must not be modified.
The ACPI_FUNCTION_* macros no longer require quotes around
the function name. This allows the Linux source converter
to convert the names, now that the converter ignores
quoted strings.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2006-04-21 21:15:00 +00:00
|
|
|
acpi_os_printf("IndexField\n");
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_BUFFER_FIELD:
|
|
|
|
|
ACPI: ACPICA 20060421
Removed a device initialization optimization introduced in
20051216 where the _STA method was not run unless an _INI
was also present for the same device. This optimization
could cause problems because it could allow _INI methods
to be run within a not-present device subtree (If a
not-present device had no _INI, _STA would not be run,
the not-present status would not be discovered, and the
children of the device would be incorrectly traversed.)
Implemented a new _STA optimization where namespace
subtrees that do not contain _INI are identified and
ignored during device initialization. Selectively running
_STA can significantly improve boot time on large machines
(with assistance from Len Brown.)
Implemented support for the device initialization case
where the returned _STA flags indicate a device not-present
but functioning. In this case, _INI is not run, but the
device children are examined for presence, as per the
ACPI specification.
Implemented an additional change to the IndexField support
in order to conform to MS behavior. The value written to
the Index Register is not simply a byte offset, it is a
byte offset in units of the access width of the parent
Index Field. (Fiodor Suietov)
Defined and deployed a new OSL interface,
acpi_os_validate_address(). This interface is called during
the creation of all AML operation regions, and allows
the host OS to exert control over what addresses it will
allow the AML code to access. Operation Regions whose
addresses are disallowed will cause a runtime exception
when they are actually accessed (will not affect or abort
table loading.)
Defined and deployed a new OSL interface,
acpi_os_validate_interface(). This interface allows the host OS
to match the various "optional" interface/behavior strings
for the _OSI predefined control method as appropriate
(with assistance from Bjorn Helgaas.)
Restructured and corrected various problems in the
exception handling code paths within DsCallControlMethod
and DsTerminateControlMethod in dsmethod (with assistance
from Takayoshi Kochi.)
Modified the Linux source converter to ignore quoted string
literals while converting identifiers from mixed to lower
case. This will correct problems with the disassembler
and other areas where such strings must not be modified.
The ACPI_FUNCTION_* macros no longer require quotes around
the function name. This allows the Linux source converter
to convert the names, now that the converter ignores
quoted strings.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2006-04-21 21:15:00 +00:00
|
|
|
acpi_os_printf("BufferField: %X bits at byte %X bit %X of\n",
|
2005-08-05 04:44:28 +00:00
|
|
|
obj_desc->buffer_field.bit_length,
|
|
|
|
obj_desc->buffer_field.base_byte_offset,
|
|
|
|
obj_desc->buffer_field.start_field_bit_offset);
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
if (!obj_desc->buffer_field.buffer_obj) {
|
[ACPI] ACPICA 20050930
Completed a major overhaul of the Resource Manager code -
specifically, optimizations in the area of the AML/internal
resource conversion code. The code has been optimized to
simplify and eliminate duplicated code, CPU stack use has
been decreased by optimizing function parameters and local
variables, and naming conventions across the manager have
been standardized for clarity and ease of maintenance (this
includes function, parameter, variable, and struct/typedef
names.)
All Resource Manager dispatch and information tables have
been moved to a single location for clarity and ease of
maintenance. One new file was created, named "rsinfo.c".
The ACPI return macros (return_ACPI_STATUS, etc.) have
been modified to guarantee that the argument is
not evaluated twice, making them less prone to macro
side-effects. However, since there exists the possibility
of additional stack use if a particular compiler cannot
optimize them (such as in the debug generation case),
the original macros are optionally available. Note that
some invocations of the return_VALUE macro may now cause
size mismatch warnings; the return_UINT8 and return_UINT32
macros are provided to eliminate these. (From Randy Dunlap)
Implemented a new mechanism to enable debug tracing for
individual control methods. A new external interface,
acpi_debug_trace(), is provided to enable this mechanism. The
intent is to allow the host OS to easily enable and disable
tracing for problematic control methods. This interface
can be easily exposed to a user or debugger interface if
desired. See the file psxface.c for details.
acpi_ut_callocate() will now return a valid pointer if a
length of zero is specified - a length of one is used
and a warning is issued. This matches the behavior of
acpi_ut_allocate().
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2005-09-30 23:03:00 +00:00
|
|
|
ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "*NULL*\n"));
|
2009-02-18 06:44:03 +00:00
|
|
|
} else if ((obj_desc->buffer_field.buffer_obj)->common.type !=
|
|
|
|
ACPI_TYPE_BUFFER) {
|
[ACPI] ACPICA 20050930
Completed a major overhaul of the Resource Manager code -
specifically, optimizations in the area of the AML/internal
resource conversion code. The code has been optimized to
simplify and eliminate duplicated code, CPU stack use has
been decreased by optimizing function parameters and local
variables, and naming conventions across the manager have
been standardized for clarity and ease of maintenance (this
includes function, parameter, variable, and struct/typedef
names.)
All Resource Manager dispatch and information tables have
been moved to a single location for clarity and ease of
maintenance. One new file was created, named "rsinfo.c".
The ACPI return macros (return_ACPI_STATUS, etc.) have
been modified to guarantee that the argument is
not evaluated twice, making them less prone to macro
side-effects. However, since there exists the possibility
of additional stack use if a particular compiler cannot
optimize them (such as in the debug generation case),
the original macros are optionally available. Note that
some invocations of the return_VALUE macro may now cause
size mismatch warnings; the return_UINT8 and return_UINT32
macros are provided to eliminate these. (From Randy Dunlap)
Implemented a new mechanism to enable debug tracing for
individual control methods. A new external interface,
acpi_debug_trace(), is provided to enable this mechanism. The
intent is to allow the host OS to easily enable and disable
tracing for problematic control methods. This interface
can be easily exposed to a user or debugger interface if
desired. See the file psxface.c for details.
acpi_ut_callocate() will now return a valid pointer if a
length of zero is specified - a length of one is used
and a warning is issued. This matches the behavior of
acpi_ut_allocate().
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2005-09-30 23:03:00 +00:00
|
|
|
acpi_os_printf("*not a Buffer*\n");
|
2005-08-05 04:44:28 +00:00
|
|
|
} else {
|
|
|
|
acpi_ex_dump_operand(obj_desc->buffer_field.buffer_obj,
|
|
|
|
depth + 1);
|
2005-04-16 22:20:36 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_EVENT:
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("Event\n");
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_METHOD:
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("Method(%X) @ %p:%X\n",
|
|
|
|
obj_desc->method.param_count,
|
|
|
|
obj_desc->method.aml_start,
|
|
|
|
obj_desc->method.aml_length);
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_MUTEX:
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("Mutex\n");
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_DEVICE:
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("Device\n");
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_POWER:
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("Power\n");
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_PROCESSOR:
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("Processor\n");
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_THERMAL:
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("Thermal\n");
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2013-06-08 00:58:14 +00:00
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
/* Unknown Type */
|
|
|
|
|
2009-02-18 06:44:03 +00:00
|
|
|
acpi_os_printf("Unknown Type %X\n", obj_desc->common.type);
|
2005-04-16 22:20:36 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2005-04-19 02:49:35 +00:00
|
|
|
/*******************************************************************************
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
|
|
|
* FUNCTION: acpi_ex_dump_operands
|
|
|
|
*
|
2012-07-12 01:40:10 +00:00
|
|
|
* PARAMETERS: operands - A list of Operand objects
|
2008-06-10 06:25:05 +00:00
|
|
|
* opcode_name - AML opcode name
|
|
|
|
* num_operands - Operand count for this opcode
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
2008-06-10 06:25:05 +00:00
|
|
|
* DESCRIPTION: Dump the operands associated with the opcode
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
2005-04-19 02:49:35 +00:00
|
|
|
******************************************************************************/
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
void
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_ex_dump_operands(union acpi_operand_object **operands,
|
2008-06-10 06:25:05 +00:00
|
|
|
const char *opcode_name, u32 num_operands)
|
2005-04-16 22:20:36 +00:00
|
|
|
{
|
2018-01-03 23:06:21 +00:00
|
|
|
ACPI_FUNCTION_TRACE(ex_dump_operands);
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2008-06-10 06:25:05 +00:00
|
|
|
if (!opcode_name) {
|
|
|
|
opcode_name = "UNKNOWN";
|
2005-04-16 22:20:36 +00:00
|
|
|
}
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
ACPI_DEBUG_PRINT((ACPI_DB_EXEC,
|
2010-05-26 03:47:13 +00:00
|
|
|
"**** Start operand dump for opcode [%s], %u operands\n",
|
2008-06-10 06:25:05 +00:00
|
|
|
opcode_name, num_operands));
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2008-06-10 06:25:05 +00:00
|
|
|
if (num_operands == 0) {
|
|
|
|
num_operands = 1;
|
2005-04-16 22:20:36 +00:00
|
|
|
}
|
|
|
|
|
2008-06-10 06:25:05 +00:00
|
|
|
/* Dump the individual operands */
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2008-06-10 06:25:05 +00:00
|
|
|
while (num_operands) {
|
|
|
|
acpi_ex_dump_operand(*operands, 0);
|
|
|
|
operands++;
|
|
|
|
num_operands--;
|
2005-04-16 22:20:36 +00:00
|
|
|
}
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
ACPI_DEBUG_PRINT((ACPI_DB_EXEC,
|
2008-06-10 06:25:05 +00:00
|
|
|
"**** End operand dump for [%s]\n", opcode_name));
|
2018-01-03 23:06:21 +00:00
|
|
|
return_VOID;
|
2005-04-16 22:20:36 +00:00
|
|
|
}
|
|
|
|
|
2005-04-19 02:49:35 +00:00
|
|
|
/*******************************************************************************
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
2005-04-19 02:49:35 +00:00
|
|
|
* FUNCTION: acpi_ex_out* functions
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
2012-07-12 01:40:10 +00:00
|
|
|
* PARAMETERS: title - Descriptive text
|
|
|
|
* value - Value to be displayed
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
2012-10-31 02:26:55 +00:00
|
|
|
* DESCRIPTION: Object dump output formatting functions. These functions
|
2005-04-16 22:20:36 +00:00
|
|
|
* reduce the number of format strings required and keeps them
|
|
|
|
* all in one place for easy modification.
|
|
|
|
*
|
2005-04-19 02:49:35 +00:00
|
|
|
******************************************************************************/
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2016-03-24 01:40:40 +00:00
|
|
|
static void acpi_ex_out_string(const char *title, const char *value)
|
2005-04-16 22:20:36 +00:00
|
|
|
{
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("%20s : %s\n", title, value);
|
2005-04-16 22:20:36 +00:00
|
|
|
}
|
|
|
|
|
2016-03-24 01:40:40 +00:00
|
|
|
static void acpi_ex_out_pointer(const char *title, const void *value)
|
2005-04-16 22:20:36 +00:00
|
|
|
{
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("%20s : %p\n", title, value);
|
2005-04-16 22:20:36 +00:00
|
|
|
}
|
|
|
|
|
2005-04-19 02:49:35 +00:00
|
|
|
/*******************************************************************************
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
2005-11-02 05:00:00 +00:00
|
|
|
* FUNCTION: acpi_ex_dump_namespace_node
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
2012-07-12 01:40:10 +00:00
|
|
|
* PARAMETERS: node - Descriptor to dump
|
|
|
|
* flags - Force display if TRUE
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
|
|
|
* DESCRIPTION: Dumps the members of the given.Node
|
|
|
|
*
|
2005-04-19 02:49:35 +00:00
|
|
|
******************************************************************************/
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2005-11-02 05:00:00 +00:00
|
|
|
void acpi_ex_dump_namespace_node(struct acpi_namespace_node *node, u32 flags)
|
2005-04-16 22:20:36 +00:00
|
|
|
{
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
ACPI_FUNCTION_ENTRY();
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
if (!flags) {
|
2012-12-31 00:06:27 +00:00
|
|
|
|
|
|
|
/* Check if debug output enabled */
|
|
|
|
|
|
|
|
if (!ACPI_IS_DEBUG_ENABLED(ACPI_LV_OBJECTS, _COMPONENT)) {
|
2005-04-16 22:20:36 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("%20s : %4.4s\n", "Name", acpi_ut_get_node_name(node));
|
2014-02-26 02:33:32 +00:00
|
|
|
acpi_os_printf("%20s : %2.2X [%s]\n", "Type",
|
|
|
|
node->type, acpi_ut_get_type_name(node->type));
|
2005-11-02 05:00:00 +00:00
|
|
|
|
|
|
|
acpi_ex_dump_object(ACPI_CAST_PTR(union acpi_operand_object, node),
|
|
|
|
acpi_ex_dump_node);
|
2005-04-16 22:20:36 +00: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 04:00:00 +00:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
2005-11-02 05:00:00 +00:00
|
|
|
* FUNCTION: acpi_ex_dump_reference_obj
|
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 04:00:00 +00:00
|
|
|
*
|
2012-07-12 01:40:10 +00:00
|
|
|
* PARAMETERS: object - Descriptor to dump
|
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 04:00:00 +00:00
|
|
|
*
|
|
|
|
* DESCRIPTION: Dumps a reference object
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
2005-11-02 05:00:00 +00:00
|
|
|
static void acpi_ex_dump_reference_obj(union acpi_operand_object *obj_desc)
|
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 04:00:00 +00:00
|
|
|
{
|
2005-08-05 04:44:28 +00:00
|
|
|
struct acpi_buffer ret_buf;
|
|
|
|
acpi_status status;
|
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 04:00:00 +00:00
|
|
|
|
2005-11-02 05:00:00 +00:00
|
|
|
ret_buf.length = ACPI_ALLOCATE_LOCAL_BUFFER;
|
|
|
|
|
2008-09-27 03:08:41 +00:00
|
|
|
if (obj_desc->reference.class == ACPI_REFCLASS_NAME) {
|
|
|
|
acpi_os_printf(" %p ", obj_desc->reference.node);
|
2005-11-02 05:00:00 +00:00
|
|
|
|
2015-07-23 04:52:39 +00:00
|
|
|
status = acpi_ns_handle_to_pathname(obj_desc->reference.node,
|
2015-08-25 02:30:41 +00:00
|
|
|
&ret_buf, TRUE);
|
2005-08-05 04:44:28 +00:00
|
|
|
if (ACPI_FAILURE(status)) {
|
2017-06-05 08:42:02 +00:00
|
|
|
acpi_os_printf
|
|
|
|
(" Could not convert name to pathname: %s\n",
|
|
|
|
acpi_format_exception(status));
|
2005-08-05 04:44:28 +00:00
|
|
|
} else {
|
2017-06-05 08:42:02 +00:00
|
|
|
acpi_os_printf("%s: %s\n",
|
|
|
|
acpi_ut_get_type_name(obj_desc->
|
|
|
|
reference.node->
|
|
|
|
type),
|
|
|
|
(char *)ret_buf.pointer);
|
2006-10-03 04:00:00 +00:00
|
|
|
ACPI_FREE(ret_buf.pointer);
|
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 04:00:00 +00:00
|
|
|
}
|
2005-08-05 04:44:28 +00:00
|
|
|
} else if (obj_desc->reference.object) {
|
2008-04-10 15:06:40 +00:00
|
|
|
if (ACPI_GET_DESCRIPTOR_TYPE(obj_desc) ==
|
|
|
|
ACPI_DESC_TYPE_OPERAND) {
|
2015-07-01 06:44:44 +00:00
|
|
|
acpi_os_printf("%22s %p", "Target :",
|
2008-04-10 15:06:42 +00:00
|
|
|
obj_desc->reference.object);
|
2008-09-27 03:08:41 +00:00
|
|
|
if (obj_desc->reference.class == ACPI_REFCLASS_TABLE) {
|
|
|
|
acpi_os_printf(" Table Index: %X\n",
|
2008-09-27 02:40:39 +00:00
|
|
|
obj_desc->reference.value);
|
2008-04-10 15:06:42 +00:00
|
|
|
} else {
|
2015-07-01 06:44:44 +00:00
|
|
|
acpi_os_printf(" [%s]\n",
|
2008-04-10 15:06:42 +00:00
|
|
|
acpi_ut_get_type_name(((union
|
|
|
|
acpi_operand_object
|
|
|
|
*)
|
|
|
|
obj_desc->
|
|
|
|
reference.
|
|
|
|
object)->
|
|
|
|
common.
|
|
|
|
type));
|
|
|
|
}
|
2008-04-10 15:06:40 +00:00
|
|
|
} else {
|
|
|
|
acpi_os_printf(" Target: %p\n",
|
|
|
|
obj_desc->reference.object);
|
|
|
|
}
|
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 04:00:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
2005-11-02 05:00:00 +00:00
|
|
|
* FUNCTION: acpi_ex_dump_package_obj
|
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 04:00:00 +00:00
|
|
|
*
|
2005-11-02 05:00:00 +00:00
|
|
|
* PARAMETERS: obj_desc - Descriptor to dump
|
2012-07-12 01:40:10 +00:00
|
|
|
* level - Indentation Level
|
|
|
|
* index - Package index for this object
|
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 04:00:00 +00:00
|
|
|
*
|
|
|
|
* DESCRIPTION: Dumps the elements of the package
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
static void
|
2005-11-02 05:00:00 +00:00
|
|
|
acpi_ex_dump_package_obj(union acpi_operand_object *obj_desc,
|
|
|
|
u32 level, u32 index)
|
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 04:00:00 +00:00
|
|
|
{
|
2005-08-05 04:44:28 +00:00
|
|
|
u32 i;
|
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 04:00:00 +00:00
|
|
|
|
|
|
|
/* Indentation and index output */
|
|
|
|
|
|
|
|
if (level > 0) {
|
|
|
|
for (i = 0; i < level; i++) {
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf(" ");
|
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 04:00:00 +00:00
|
|
|
}
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("[%.2d] ", index);
|
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 04:00:00 +00:00
|
|
|
}
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("%p ", obj_desc);
|
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 04:00:00 +00:00
|
|
|
|
|
|
|
/* Null package elements are allowed */
|
|
|
|
|
|
|
|
if (!obj_desc) {
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("[Null Object]\n");
|
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 04:00:00 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Packages may only contain a few object types */
|
|
|
|
|
2009-02-18 06:44:03 +00:00
|
|
|
switch (obj_desc->common.type) {
|
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 04:00:00 +00:00
|
|
|
case ACPI_TYPE_INTEGER:
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("[Integer] = %8.8X%8.8X\n",
|
|
|
|
ACPI_FORMAT_UINT64(obj_desc->integer.value));
|
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 04:00:00 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_STRING:
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("[String] Value: ");
|
2012-05-03 01:41:41 +00:00
|
|
|
acpi_ut_print_string(obj_desc->string.pointer, ACPI_UINT8_MAX);
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("\n");
|
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 04:00:00 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_BUFFER:
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_os_printf("[Buffer] Length %.2X = ",
|
|
|
|
obj_desc->buffer.length);
|
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 04:00:00 +00:00
|
|
|
if (obj_desc->buffer.length) {
|
2012-10-31 02:28:11 +00:00
|
|
|
acpi_ut_debug_dump_buffer(ACPI_CAST_PTR
|
|
|
|
(u8,
|
|
|
|
obj_desc->buffer.pointer),
|
|
|
|
obj_desc->buffer.length,
|
|
|
|
DB_DWORD_DISPLAY, _COMPONENT);
|
2005-08-05 04:44:28 +00:00
|
|
|
} else {
|
|
|
|
acpi_os_printf("\n");
|
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 04:00:00 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_PACKAGE:
|
|
|
|
|
2010-05-26 03:47:13 +00:00
|
|
|
acpi_os_printf("[Package] Contains %u Elements:\n",
|
2005-08-05 04:44:28 +00:00
|
|
|
obj_desc->package.count);
|
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 04:00:00 +00:00
|
|
|
|
|
|
|
for (i = 0; i < obj_desc->package.count; i++) {
|
2005-11-02 05:00:00 +00:00
|
|
|
acpi_ex_dump_package_obj(obj_desc->package.elements[i],
|
|
|
|
level + 1, i);
|
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 04:00:00 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_TYPE_LOCAL_REFERENCE:
|
|
|
|
|
2017-06-05 08:42:02 +00:00
|
|
|
acpi_os_printf("[Object Reference] Class [%s]",
|
|
|
|
acpi_ut_get_reference_name(obj_desc));
|
2005-11-02 05:00:00 +00:00
|
|
|
acpi_ex_dump_reference_obj(obj_desc);
|
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 04:00:00 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
2017-08-03 06:27:15 +00:00
|
|
|
acpi_os_printf("[%s] Type: %2.2X\n",
|
|
|
|
acpi_ut_get_type_name(obj_desc->common.type),
|
|
|
|
obj_desc->common.type);
|
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 04:00:00 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2005-04-19 02:49:35 +00:00
|
|
|
/*******************************************************************************
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
|
|
|
* FUNCTION: acpi_ex_dump_object_descriptor
|
|
|
|
*
|
2005-11-02 05:00:00 +00:00
|
|
|
* PARAMETERS: obj_desc - Descriptor to dump
|
2012-07-12 01:40:10 +00:00
|
|
|
* flags - Force display if TRUE
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
|
|
|
* DESCRIPTION: Dumps the members of the object descriptor given.
|
|
|
|
*
|
2005-04-19 02:49:35 +00:00
|
|
|
******************************************************************************/
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
void
|
2005-08-05 04:44:28 +00:00
|
|
|
acpi_ex_dump_object_descriptor(union acpi_operand_object *obj_desc, u32 flags)
|
2005-04-16 22:20:36 +00:00
|
|
|
{
|
ACPI: ACPICA 20060421
Removed a device initialization optimization introduced in
20051216 where the _STA method was not run unless an _INI
was also present for the same device. This optimization
could cause problems because it could allow _INI methods
to be run within a not-present device subtree (If a
not-present device had no _INI, _STA would not be run,
the not-present status would not be discovered, and the
children of the device would be incorrectly traversed.)
Implemented a new _STA optimization where namespace
subtrees that do not contain _INI are identified and
ignored during device initialization. Selectively running
_STA can significantly improve boot time on large machines
(with assistance from Len Brown.)
Implemented support for the device initialization case
where the returned _STA flags indicate a device not-present
but functioning. In this case, _INI is not run, but the
device children are examined for presence, as per the
ACPI specification.
Implemented an additional change to the IndexField support
in order to conform to MS behavior. The value written to
the Index Register is not simply a byte offset, it is a
byte offset in units of the access width of the parent
Index Field. (Fiodor Suietov)
Defined and deployed a new OSL interface,
acpi_os_validate_address(). This interface is called during
the creation of all AML operation regions, and allows
the host OS to exert control over what addresses it will
allow the AML code to access. Operation Regions whose
addresses are disallowed will cause a runtime exception
when they are actually accessed (will not affect or abort
table loading.)
Defined and deployed a new OSL interface,
acpi_os_validate_interface(). This interface allows the host OS
to match the various "optional" interface/behavior strings
for the _OSI predefined control method as appropriate
(with assistance from Bjorn Helgaas.)
Restructured and corrected various problems in the
exception handling code paths within DsCallControlMethod
and DsTerminateControlMethod in dsmethod (with assistance
from Takayoshi Kochi.)
Modified the Linux source converter to ignore quoted string
literals while converting identifiers from mixed to lower
case. This will correct problems with the disassembler
and other areas where such strings must not be modified.
The ACPI_FUNCTION_* macros no longer require quotes around
the function name. This allows the Linux source converter
to convert the names, now that the converter ignores
quoted strings.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2006-04-21 21:15:00 +00:00
|
|
|
ACPI_FUNCTION_TRACE(ex_dump_object_descriptor);
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2005-04-19 02:49:35 +00:00
|
|
|
if (!obj_desc) {
|
|
|
|
return_VOID;
|
|
|
|
}
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
if (!flags) {
|
2012-12-31 00:06:27 +00:00
|
|
|
|
|
|
|
/* Check if debug output enabled */
|
|
|
|
|
|
|
|
if (!ACPI_IS_DEBUG_ENABLED(ACPI_LV_OBJECTS, _COMPONENT)) {
|
2005-04-16 22:20:36 +00:00
|
|
|
return_VOID;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
if (ACPI_GET_DESCRIPTOR_TYPE(obj_desc) == ACPI_DESC_TYPE_NAMED) {
|
2005-11-02 05:00:00 +00:00
|
|
|
acpi_ex_dump_namespace_node((struct acpi_namespace_node *)
|
|
|
|
obj_desc, flags);
|
|
|
|
|
2014-02-26 02:33:32 +00:00
|
|
|
obj_desc = ((struct acpi_namespace_node *)obj_desc)->object;
|
2017-08-03 06:27:15 +00:00
|
|
|
if (!obj_desc) {
|
|
|
|
return_VOID;
|
|
|
|
}
|
|
|
|
|
|
|
|
acpi_os_printf("\nAttached Object %p", obj_desc);
|
|
|
|
if (ACPI_GET_DESCRIPTOR_TYPE(obj_desc) == ACPI_DESC_TYPE_NAMED) {
|
|
|
|
acpi_os_printf(" - Namespace Node");
|
|
|
|
}
|
|
|
|
|
|
|
|
acpi_os_printf(":\n");
|
2014-02-26 02:33:32 +00:00
|
|
|
goto dump_object;
|
2005-04-16 22:20:36 +00:00
|
|
|
}
|
|
|
|
|
2005-08-05 04:44:28 +00:00
|
|
|
if (ACPI_GET_DESCRIPTOR_TYPE(obj_desc) != ACPI_DESC_TYPE_OPERAND) {
|
2014-02-26 02:33:32 +00:00
|
|
|
acpi_os_printf("%p is not an ACPI operand object: [%s]\n",
|
|
|
|
obj_desc, acpi_ut_get_descriptor_name(obj_desc));
|
2005-04-16 22:20:36 +00:00
|
|
|
return_VOID;
|
|
|
|
}
|
|
|
|
|
2014-02-26 02:33:32 +00:00
|
|
|
/* Validate the object type */
|
|
|
|
|
|
|
|
if (obj_desc->common.type > ACPI_TYPE_LOCAL_MAX) {
|
|
|
|
acpi_os_printf("Not a known object type: %2.2X\n",
|
|
|
|
obj_desc->common.type);
|
2005-11-02 05:00:00 +00:00
|
|
|
return_VOID;
|
|
|
|
}
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2014-02-26 02:33:32 +00:00
|
|
|
dump_object:
|
|
|
|
|
2017-08-03 06:27:15 +00:00
|
|
|
if (!obj_desc) {
|
|
|
|
return_VOID;
|
|
|
|
}
|
|
|
|
|
2005-11-02 05:00:00 +00:00
|
|
|
/* Common Fields */
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2005-11-02 05:00:00 +00:00
|
|
|
acpi_ex_dump_object(obj_desc, acpi_ex_dump_common);
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2005-11-02 05:00:00 +00:00
|
|
|
/* Object-specific fields */
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2005-11-02 05:00:00 +00:00
|
|
|
acpi_ex_dump_object(obj_desc, acpi_ex_dump_info[obj_desc->common.type]);
|
2014-02-26 02:33:32 +00:00
|
|
|
|
|
|
|
if (obj_desc->common.type == ACPI_TYPE_REGION) {
|
|
|
|
obj_desc = obj_desc->common.next_object;
|
|
|
|
if (obj_desc->common.type > ACPI_TYPE_LOCAL_MAX) {
|
|
|
|
acpi_os_printf
|
|
|
|
("Secondary object is not a known object type: %2.2X\n",
|
|
|
|
obj_desc->common.type);
|
|
|
|
|
|
|
|
return_VOID;
|
|
|
|
}
|
|
|
|
|
|
|
|
acpi_os_printf("\nExtra attached Object (%p):\n", obj_desc);
|
|
|
|
acpi_ex_dump_object(obj_desc,
|
|
|
|
acpi_ex_dump_info[obj_desc->common.type]);
|
|
|
|
}
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
return_VOID;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|