11137 Commits

Author SHA1 Message Date
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
d418fc8ca9 For resume, always clear the WAK_STS bit.
Some BIOS code assumes that WAK_STS will be cleared on resume
and use it to determine whether the system is rebooting or
resuming. During resume, clear WAK_STS for compatibility.
Matthew Garrett.
2012-02-10 08:07:16 -08:00
Robert Moore
09471e5c88 For resume, enable all runtime GPEs before calling _WAK.
It seems it is required to enable GPEs before _WAK.  For example, the
X60 triggers a LID related GPE instead of doing a Notify in _WAK.
With this change, the GPE reaches the host kernel and the Notify
for LID status change happens as a result. Thomas Renninger.
2012-02-10 07:49:36 -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
f7502f84f2 AcpiExec: Update for dynamic table load testing.
Only signatures SSDT and OEMx are allowed for dynamic table
load, update AcpiExec.
2012-02-09 12:14:02 -08:00
Robert Moore
84f9d1a7c1 iASL: Fix some spelling and formatting issues within comments.
Standardize formatting in the serial resource descriptor
module.
2012-02-08 13:15:45 -08:00
Robert Moore
6f0236b88e Disassembler: Fix for serial resource descriptors, producer/consumer.
For the ACPI 5.0 serial descriptors (I2C,SPI,UART), the disassembler
was looking at the wrong bit for the producer/consumer field.
Reported by Stephen Ziemba.
2012-02-08 10:27:36 -08:00
Robert Moore
5539cc3644 AcpiHelp: Add display of ACPI/PNP device IDs.
New -i option displays the IDs that are defined in the ACPI spec.
2012-02-03 13:06:18 -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
5f42e911bd Tests: Update aapits for OSL memory read/write interface changes.
AcpiOsReadMemory and AcpiOsWriteMemory have been widened to
64 bits.
2012-02-02 13:42:45 -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
f44723d7e5 Linux makefiles: Update for new unix tarball directory structure.
Update the makefiles to match the updated tarball directory
structure -- which in turn was updated to match the ACPICA
git source tree.
2012-01-18 13:55:45 -08:00
Robert Moore
da6cdf79da Update unix tarball packages to match ACPICA source tree.
Changes the generation of the unix source code packages to match
the directory structure of the ACPICA git source tree. Thus,
makefiles will work on both the git tree and the tarball tree.
ACPICA BZ 867.
2012-01-18 13:54:00 -08:00
Robert Moore
0755aba3b6 Update to version 20120111.
Version 20120111.
R01_11_12
2012-01-11 09:05:01 -08:00
Robert Moore
adf1b7c91e Logfile: Changes for version 20120111.
Version 20120111.
2012-01-11 09:04:26 -08:00
Robert Moore
f131fc3072 Windows binaries: Update to version 20120111.
Version 20120111.
2012-01-11 09:03:30 -08:00
Robert Moore
bc9b6a88ee iASL: Emit a message when the -f (ForceOutput) flag is used.
Remind user that all errors will be ignored.
2012-01-06 13:51:27 -08:00
Robert Moore
37518f13ca Tests: Fix some ASL generation warnings for ASLTS.
Fix some warnings related to the use of Switch().
2012-01-06 13:50:06 -08:00
Robert Moore
3fc92044b2 Tests: Update all copyrights to 2012.
Test suites only.
2012-01-03 14:30:12 -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
9934721194 ACPICA reference: Update for new interface, AcpiCheckAddressRegion.
Allows host drivers to check for address conflicts with Operation
Regions in the ACPI namespace.
2011-12-29 13:26:34 -08:00
Robert Moore
9ed5b0f353 Disassembler: For debug case, emit final namespace.
Remove a #ifdef, and emit the final namespace if the compiler
debug switch is enabled.
2011-12-22 14:06:21 -08:00
Robert Moore
6a4059907d Disassembler: fix for resource tag support.
Fixes a problem where the resource tags are not constructed if the
table being disassembled contains external references to control
methods. Move actual construction of the tags to after the final
namespace is constructed (after 2nd parse is invoked due to
external control method references.) ACPICA BZ 941.
2011-12-22 13:51:01 -08:00
Robert Moore
ab5aabcbb5 Update Windows project files for new source file.
Add utaddress.c to the various project files.
2011-12-21 13:30:18 -08:00
Robert Moore
47f9c4c675 Update linux/unix makefiles for new source file.
Add utaddress.c to the various makefiles.
2011-12-21 13:29:28 -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
802c00cbee Update for larger ACPI 5.0 FADT size.
FADT is now larger than 256 bytes, so all FADT offsets must
be changed from 8 bits to 16 bits.
2011-12-09 10:31:30 -08:00
Robert Moore
952b405c74 Unix makefiles: Update master makefile to cleanup deletion.
1) don't run clean unless the objXX directory exists
2) don't attempt objXX deletion unless it exists
2011-12-07 14:23:14 -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.
R11_23_11
2011-11-23 08:08:14 -08:00
Robert Moore
98671d0a53 Logfile: Changes for version 20111123.
Version 20111123.
2011-11-23 08:07:33 -08:00
Robert Moore
335df6730d Windows binaries: Update to version 20111123.
Version 20111123.
2011-11-23 08:06:32 -08:00
Robert Moore
dbdf2969a5 ACPI 5.0/Documentation: Full update for ACPI 5.0 features.
Both ACPICA reference and iASL compiler.
2011-11-22 08:42:43 -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
Robert Moore
551dae6c43 Fix declaration of AcpiGbl_NoResourceDisassembly.
Was incorrectly declared in acglobal.h
2011-11-16 10:15:28 +08:00
Robert Moore
7fa01ce507 Add new interface: AcpiBufferToResource.
This interface converts an AML buffer to an internal
ACPI_RESOURCE.
2011-11-16 10:15:28 +08:00
Robert Moore
6af66d0b64 ACPI 5.0/AcpiExec: Update to add AcpiBufferToResource calls.
Used for Connection() buffer.
2011-11-16 10:15:28 +08:00
Robert Moore
b8916ef5ff ACPI 5.0/AcpiSrc: Update for new struct names
New ACPI 5 names.
2011-11-16 10:15:28 +08:00
Robert Moore
1b2097a4a1 ACPI 5.0/AcpiHelp: Add RawDataBuffer type to new descriptors.
Also split some very long lines.
2011-11-16 10:15:28 +08:00
Robert Moore
e202312d55 Update table signatures
And add version numbers to table struct headers
2011-11-10 10:10:26 +08:00
Robert Moore
212d9864b2 Add new flag types for data table disassembler 2011-11-10 10:10:26 +08:00