2999 Commits

Author SHA1 Message Date
Robert Moore
c012c44989 Debugger: Enhance "Tables" and "Unload" commands.
Tables - emit additional information about the ACPI tables, including
the owner ID and flags decode.

Unload - reimplemented to use the new AcpiUnloadParentTable external
interface.
2012-06-29 13:10:58 -07:00
Robert Moore
a0284aaffa Add new ACPI table load/unload external interfaces.
Add AcpiLoadTable and AcpiUnloadParentTable to support host-directed
dynamic table load/unload. Intended to support hotplug addition
and removal of SSDTs.
2012-06-29 13:07:33 -07:00
Robert Moore
09da667565 Fix some comment fields. No functional change.
Fixes some typos and linux divergences.
2012-06-28 09:15:20 -07:00
Robert Moore
2b8106e4c2 Add new interfaces for BIOS(firmware) errors and warnings.
These new interfaces will be deployed across ACPICA in order to
point a finger directly at any detected BIOS issues -- such as
issues with ACPI tables, etc. ACPICA BZ 843.
2012-06-27 12:22:56 -07:00
Robert Moore
e5fc16a6e2 AcpiHelp: Add support to decode ACPICA exception codes.
Adds -e option to decode hex status codes to name strings.
2012-06-22 15:00:55 -07:00
Robert Moore
750bb22a43 Remove exception table externals, no longer needed.
Creation of utexcep.c rendered these externals obsolete.
2012-06-22 14:42:54 -07:00
Robert Moore
8072f9750c Split exception code utilities to a new file, utexcep.c
Simplifies sharing of these functions.
2012-06-21 13:19:12 -07:00
Robert Moore
5ae005099a Update to version 20120620.
Version 20120620.
2012-06-20 08:55:34 -07:00
Robert Moore
9924396a05 Add support for multiple implicit notify devices.
Adds basic support to allow multiple devices to be implicitly
notified. Bob Moore, Rafael Wysocki.
2012-06-19 13:13:09 -07:00
Robert Moore
a231a84063 Update comments to simplify source translation, no functional changes.
Change some comments that cause problems for the AcpiSrc conversion
utility.
2012-06-15 12:46:02 -07:00
Robert Moore
d1dc9adb61 Debugger: Rename function to simplify source code conversion.
Rename to improve the linux conversion.
2012-06-13 14:23:06 -07:00
Robert Moore
5ee27590d9 Update comments; no functional change.
Cleanup a couple of comments.
2012-06-13 13:48:28 -07:00
Robert Moore
d4fcca77cc Disassembler: Emit descriptions for resource tags (_MIN, etc.)
Add support to emit short commented descriptions for the various
resource tags, when they are referenced by a Create* operator.
2012-05-31 15:21:56 -07:00
Robert Moore
97a2049af8 Disassembler: Emit descriptions for ACPI predefined names.
For each predefined name, emit a short description within a comment.
ACPICA BZ 959.
2012-05-25 10:19:05 -07:00
Robert Moore
43da7400f2 Update to version 20120518.
Version string 20120518.
2012-05-18 13:48:19 -07:00
Robert Moore
5ff986a2a9 Introduce AcpiOsWaitEventsComplete interface.
This interface will block until asynchronous events like notifies
and GPEs are complete. Within ACPICA, it is called before a notify or GPE
handler is removed. ACPICA BZ 868.
2012-05-16 13:36:07 -07:00
Robert Moore
59d78f2a9e iASL: Improved pathname support.
For include files, merge the prefix pathname with the file pathname.
Convert backslashes in all pathnames to forward slashes, for
readability.
Include file pathname changes affect both #include and Include()
type operators.
2012-05-11 13:47:17 -07:00
Robert Moore
a6f74878ea Fix comment typos, no functional change.
Fix a few typos in comment fields.
2012-05-03 12:15:59 -07:00
Robert Moore
70e176edb5 ACPI 5.0/iASL: Add support for PCC keyword.
Adds support for the PCC keyword for the Register() resource descriptor
macro.
2012-05-03 10:31:24 -07:00
Robert Moore
e802f64c73 Update to version 20120420.
Version 20120420.
2012-04-20 13:13:44 -07:00
Robert Moore
7adabc5479 Add support for multiple notify handlers.
This change adds support to allow multiple notify handlers on
Device, ThermalZone, and Processor objects. Also re-worked and
restructured the entire notify support code for handler installation,
handler removal, notify event queuing, and notify dispatch to handler.
Lin Ming, Bob Moore, Rafael Wysocki.
2012-04-20 09:00:41 -07:00
Robert Moore
ea679c0f8b Update to version 20120320.
Version 20120320.
2012-03-20 09:14:22 -07:00
Robert Moore
83fff44870 Sleep/Wake interfaces: optionally execute _GTS and _BFS.
Enhanced the sleep/wake interfaces to optionally execute the _GTS
method (Going To Sleep), and the _BFS method (Back From Sleep).
Windows apparently does not execute these methods, and therefore
these methods are often untested. It has been seen on some systems
where the execution of these methods causes errors and also prevents
the machine from entering S5. It is therefore suggested that host
operating systems do not execute these methods by default. In the
future, perhaps these methods can be optionally executed based on
the age of the system and/or what is the newest version of Windows
that the BIOS asks for via _OSI.
2012-03-16 13:34:53 -07:00
Robert Moore
c995fed15a Object repair code: Support to add Package wrappers.
Repair a common problem with objects that are defined to
return a variable-length Package of sub-objects. If there is
only one sub-object, some BIOS code mistakenly simply declares
the single object instead of a Package with one sub-object.
This function attempts to repair this error by wrapping a
Package object around the original object, creating the
correct and expected Package with one sub-object.
2012-03-16 09:37:52 -07:00
Robert Moore
7fd09d9935 iASL: Add preprocessor infrastructure and initial implementation.
Adds a standard c-like preprocessor to iASL. Most standard directives
are supported. #define() macros not supported yet.
2012-03-15 13:45:55 -07:00
Robert Moore
fbf40bbd3c Clarify METHOD_NAME* defines for full-pathname cases.
Changed the METHOD_NAME* defines that define a full pathname to the
method to METHOD_PATHNAME* in order to make it clear that it is not a simple
4-character ACPI name. Used for the various sleep/wake methods.
2012-02-16 08:39:00 -08:00
Robert Moore
cefd94b547 Update to version 20120215.
Version 20120215.
2012-02-15 09:22:54 -08:00
Robert Moore
7d72faea3e Update ACPI_HW_DEPENDENT* macro invocations.
Backslash is not needed for the actual invocations. Cleanup.
2012-02-15 08:14:08 -08:00
Robert Moore
125b462a87 Debugger: update prototype for AcpiDbSleep function.
No longer needs to be removed for ACPI_REDUCED_HARDWARE case.
2012-02-15 07:59:26 -08:00
Robert Moore
9a3f444a3f Additional changes for new AcpiOsPhysicalTableOverride function.
Code cleanup; fix unmap bug for partially-mapped tables.
2012-02-15 07:51:58 -08:00
Robert Moore
c99436593b Add table-driven dispatch for sleep/wake functions.
Simplifies the code, especially the compile-time
ACPI_REDUCED_HARDWARE option.
2012-02-10 13:09:25 -08:00
Robert Moore
aa4b5c6cfa Split sleep/wake functions into two files.
The functions for the original/legacy sleep/wake registers are
in hwsleep.c, and the functions for the new extended FADT V5
sleep registers are in hwesleep.c
2012-02-10 09:51:30 -08:00
Robert Moore
b524692bc1 Distill multiple sleep method functions to a single function.
Adds AcpiHwExecuteSleepMethod to handle the various sleep
methods such as _GTS, _BFS, _WAK, and _SST. Removes the specialized
functions previously used for each of these methods.
2012-02-10 09:26:59 -08:00
Robert Moore
31b81721aa Move invocations of _GTS and _BFS during sleep/wake.
The execution of ACPI global control methods _GTS and _BFS is
currently tied to the preparation to enter a sleep state and to the
leaving of the sleep state, respectively.  However, these functions
are called before disabling the nonboot CPUs and after enabling
them, respectively (in fact, on ACPI 1.0x systems the first of them
ought to be called before suspending devices), while according to the
ACPI specification, _GTS is to be executed right prior to entering
the system sleep state and _BFS is to be executed right after the
platform firmware has returned control to the OS on wake up.

Move the execution of _GTS and _BFS to the right places.
Adds a new external function, AcpiEnterSleepStatePrep.
Rafael Wysocki.
2012-02-10 09:01:13 -08:00
Robert Moore
cca073748b Add AcpiOsPhysicalTableOverride interface.
This interface allows the host to override a table via a physical
address, instead of the logical address required by
AcpiOsTableOverride. This simplifies the host implementation.
Initial implementation by Thomas Renninger. ACPICA implementation
creates a single function for table overrides that attempts
both a logical and a physical override.
2012-02-09 12:29:19 -08:00
Robert Moore
5765628fd3 ACPI 5.0: Update debug output for new notify values.
Add new notify values, add support for "hardware specific" notifies.
2012-02-03 08:34:00 -08:00
Robert Moore
558ddb1021 Expand OSL memory read/write interfaces to 64 bits.
This change expands AcpiOsReadMemory and AcpiOsWriteMemory to
a full 64 bits. This allows 64 bit transfers via the AcpiRead
and AcpiWrite interfaces. Note: The internal AcpiHwRead and
AcpiHwWrite interfaces remain at 32 bits, because 64 bits is not
needed to access the standard ACPI registers.
2012-02-02 13:39:57 -08:00
Robert Moore
d58abe67a9 Set default for ACPI_REDUCED_HARDWARE to FALSE.
Removes ACPI hardware access code.
2012-02-01 13:28:18 -08:00
Robert Moore
3009583f88 Support for custom ACPICA build for ACPI 5.0 reduced hardware.
Add ACPI_REDUCED_HARDWARE flag that removes all hardware-related
code (about 10% code, 5% static data).
2012-02-01 13:18:17 -08:00
Robert Moore
4057b51341 Move ACPI timer prototypes to public acpixf.h file.
These prototypes were incorrectly declared in achware.h.
2012-02-01 08:48:53 -08:00
Robert Moore
fe9c654a34 ACPI 5.0: Support for new FADT SleepStatus, SleepControl registers.
Adds sleep and wake support for systems with these registers.
One new file, hwxfsleep.c
2012-01-26 14:01:20 -08:00
Robert Moore
7d9691b431 Update _REV return value to 5.
_REV returns the supported ACPI revision level, which is now 5.
2012-01-19 15:00:25 -08:00
Robert Moore
0755aba3b6 Update to version 20120111.
Version 20120111.
2012-01-11 09:05:01 -08:00
Robert Moore
21eb935e54 Update ACPICA utility signon copyrights to 2012.
All tools use a common signon, including iASL. Updated
this signon to 2012.
2012-01-03 14:11:16 -08:00
Robert Moore
7db43032db Update ACPICA copyrights to 2012.
Standard ACPICA source modules only.
2012-01-03 14:08:42 -08:00
Robert Moore
4bbeebf0a9 Add support for region address conflict checking.
Allows drivers to determine if any memory or I/O addresses will
conflict with addresses used by ACPI operation regions.
Introduces a new interface, AcpiCheckAddressRange.
2011-12-21 13:25:52 -08:00
Robert Moore
cf4709a255 iASL/TableCompiler: Add caseless compare for generic operators.
Makes the "generic" operators (UINT8, String, etc.) case insensitive,
improving ease-of-use.
2011-11-30 09:11:00 -08:00
Robert Moore
4e382b9930 Update fields in the V5 FADT.
Integrate some late changes in the V5 (ACPI 5.0) FADT within the
ACPI 5.0 specification. Includes
changes to 2 flags and adds the sleep control/status registers.
Increases the size of the FADT to 0x10C.
2011-11-30 08:28:22 -08:00
Robert Moore
e66283286c Update to version 20111123.
Version 20111123.
2011-11-23 08:08:14 -08:00
Robert Moore
653c82dea0 ACPI 5.0: Changes for Connection() object.
Add length field to the struct passed to handlers.
2011-11-16 10:15:28 +08:00