11058 Commits

Author SHA1 Message Date
Robert Moore
81e716dd46 Header/Disassembler support for PMTT and S3PT tables 2011-11-10 10:10:25 +08:00
Robert Moore
d480d2911e ACPI 5.0: Lint and cleanup for new utxfmutex module.
No functional change.
2011-11-10 10:10:25 +08:00
Robert Moore
fafe3e1b15 ACPI 5.0/iASL: Template support for PMTT table.
New table.
2011-11-10 10:10:25 +08:00
Robert Moore
a4d062c6d0 ACPI 5.0: New predefined names: _DSM,_EVT,_PRE,_PSE.
From last-minute proposals.
2011-11-10 10:10:25 +08:00
Robert Moore
d23d77966a ACPI 5.0: Make global "reduced hardware" flag global.
Add external in the acpixf.h public header, move global in
acglobal.h
2011-11-10 10:10:25 +08:00
Robert Moore
b44790a296 ACPI 5.0: Update for change to PMTT table.
Adds a new reserved field.
2011-11-10 10:10:25 +08:00
Robert Moore
9e7361a7ce Update windows project files for new acpica file.
Add utxfmutex.c
2011-11-10 10:10:25 +08:00
Robert Moore
a701de24ea ACPI 5.0/AcpiExec: Test new AML mutex access interfaces.
Acquire/release an AML mutex from acpiexec code using new
interfaces.
2011-11-10 10:10:25 +08:00
Robert Moore
a440cb215b ACPI 5.0: New interfaces to allow driver access to AML mutex objects.
Adds AcpiAcquireMutex, AcpiReleaseMutex external interfaces.
New file, utilities/utxfmutex.c.
Lin Ming, Bob Moore.
2011-11-10 10:10:25 +08:00
Robert Moore
55b9dec87f ACPI 5.0/TableCompiler: Support for new table info opcode.
Support the EXTRA_TEXT opcode.
2011-11-10 10:10:25 +08:00
Robert Moore
6e838131d0 ACPI 5.0/Debugger: Support for _AEI in Resources command.
Gets and displays list of resources returned by _AEI.
2011-11-10 10:10:25 +08:00
Robert Moore
73be451eee ACPI 5.0/ResourceMgr: New interface, AcpiGetEventResources.
Executes _AEI and formats the result, similar to AcpiGetCurrentResources,
etc.
2011-11-10 10:10:25 +08:00
Robert Moore
d1e378a75f ACPI 5.0/ResourceMgr: Add subtype constants for GPIO/Serial descriptors.
Subtypes for new descriptors for use by drivers.
2011-11-10 10:10:25 +08:00
Robert Moore
397ec63252 ACPI 5.0/ResourceMgr: Fix for GPIO descriptors with no Vendor Data.
Fixes a problem where the GPIO descriptor is not handled properly
if there is no vendor data associated with it.
2011-11-10 10:10:25 +08:00
Robert Moore
03c8c470cc ACPI 5.0/iASL: Update comments/headers for new descriptor file.
Finish the headers for this new file. Make local functions static.
2011-11-10 10:10:25 +08:00
Robert Moore
ac147fca7d ACPI 5.0/iASL: Change debug printfs to use debug output macros.
Moves debug output to the debug file.
2011-11-10 10:10:25 +08:00
Robert Moore
1393b5821b ACPI 5.0/iASL: Check access length for new ResourceTag references.
Extend this support to the new descriptors.
2011-11-10 10:10:25 +08:00
Robert Moore
f5bac5a6db ACPI 5.0/ResourceMgr: Allow _AEI method in walk resources.
_AEI contains a resource template, this change adds support for
the walk resources function. Zhang Rui.
2011-11-10 10:10:25 +08:00
Robert Moore
a59ec65bef ACPI 5.0/iASL: Template support for GTDT table.
New timer table.
2011-11-10 10:10:25 +08:00
Robert Moore
d0ccbcf3c6 Header/Disassembler support for GTDT and PMTT tables.
New ACPI tables.
2011-11-10 10:10:25 +08:00
Robert Moore
f0e727a998 ACPI 5.0/TableCompiler: Support for MPST table.
New ACPI 5.0 table. Lin Ming.
2011-11-10 10:10:25 +08:00
Robert Moore
d33607f143 ACPI 5.0/ResourceMgr: Remove unused dispatch table.
Table for "common serial bus" is no longer used.
Lin Ming.
2011-11-10 10:10:25 +08:00
Robert Moore
b95f057c9e ACPI 5.0/Disassembler: Support for new resource descriptor tags.
Allow the disassembly of code that accesses resource tags to the
original symbolic name (instead of simply a numeric offset.) This
change adds additional support for the new resource descriptors.
2011-11-10 10:10:25 +08:00
Robert Moore
8d1f539c1d Update some files to disable linux source conversion.
Found a couple files that needed some code areas disabled from
AcpiSrc linux conversion.
2011-11-10 10:10:25 +08:00
Robert Moore
645a16e3d3 ACPI 5.0/AcpiSrc: Update for new structure names.
Note: Includes new structure names, and some previously existing
names that were missing from AcpiSrc utility.
2011-11-10 10:10:25 +08:00
Robert Moore
554f0d60d6 ACPI 5.0: Harden support for serial bus descriptors.
Do not allow bustypes other than I2C, SPI, or UART.
2011-11-10 10:10:25 +08:00
Robert Moore
2cf7c4e658 ACPI 5.0/Disassembler: Support for MPST table, plus template
Added disassembler and template support for ACPI 5 MPST.
2011-11-10 10:10:25 +08:00
Robert Moore
8933d7ed5e ACPI 5.0/ResourceManager: New file for new descriptors.
Contains the conversion tables for the new descriptors.
2011-11-10 10:10:25 +08:00
Robert Moore
af4e58f0fb ACPI 5.0/Window project files: New resource mgr file.
New file for new resource descriptors.
2011-11-10 10:10:25 +08:00
Robert Moore
b3415fdb2d ACPI 5.0/Makefiles: update for new resource manager file.
New file for new descriptor support.
2011-11-10 10:10:25 +08:00
Robert Moore
7c0ea9332c ACPI 5.0/ResourceManager: Support for all new resource descriptors.
FixedDMA, GPIO descriptors, SerialBus descriptors.
Lin Ming.
2011-11-10 10:10:25 +08:00
Robert Moore
e153aa277c ACPI 5.0: Add full support for new FPDT and S3PT tables.
Disassembler, data table compiler, and template support.
Lin Ming.
2011-11-10 10:10:24 +08:00
Robert Moore
f5ec3e2bcb ACPI 5.0: Update windows project files for new disassembler file.
New file: dmresrcl2.c
2011-11-10 10:10:24 +08:00
Robert Moore
7f4d1050bf ACPI 5.0: Update makefiles for new disassembler file.
New file: dmresrcl.c
2011-11-10 10:10:24 +08:00
Robert Moore
1d8e007d36 ACPI 5.0/Disassembler: Split large dmresrcl.c file.
New file is dmresrcl2.c
2011-11-10 10:10:24 +08:00
Robert Moore
630d4ff7ea Debugger: Enhance resources command.
Add a wildcard "display resources for all devices in namespace"
option. Clean up output to not mention resource methods that
were not found.
2011-11-10 10:10:24 +08:00
Robert Moore
2757b1551d ACPI 5.0/iASL: Restrict GpioInt descriptor PinList to one value.
As per the spec, only one value is allowed in this list for
GpioInt (GpioIo allows a real PinList.)
2011-11-10 10:10:24 +08:00
Robert Moore
60e14e2d32 iASL: Improve support for semicolon statement terminators.
The ASL language was originally defined without semicolons. However, semicolons
were added to the grammar in ACPI 3.0 for convenience since many programmers
use them out of habit. Basically, semicolons can be ignored in the ASL source
file. The iASL compiler tosses semicolons in some cases, but in others, it
causes an "invalid character" exception.
This commit fixes the problem and allows semicolons after every <Term>
grammar element.
2011-11-10 10:10:24 +08:00
Robert Moore
bac3c9dc1d iASL: Cleanup/reorg of bison/flex grammar files.
Complete the integration of new operators and descriptors.
reorder and alphabetize sections.
2011-11-10 10:10:24 +08:00
Robert Moore
aee3313af7 Debugger: Support to display user-defined spaceID handlers.
For the handlers command. Display handlers for user-defined
spaceIDs.
2011-11-10 10:10:24 +08:00
Robert Moore
543f278f0a iASL: Do not abort table load on invalid space ID, FFixedHW support.
Ignore an invalid space ID during a table load. Instead, detect it
if a control method attempts access - then abort the method.
Also, fix support for FFixedHW address space.
2011-11-10 10:10:24 +08:00
Robert Moore
487361a06c iASL: Cleanup support for FFixedHW address space.
Group with the rest of the space IDs.
2011-11-10 10:10:24 +08:00
Robert Moore
531d46291a Update Windows project files.
new files, update pathnames
2011-11-10 10:10:24 +08:00
Robert Moore
b71333e912 Resources: Emit error messages if bad resource detected.
Change to UtValidateResource. Emit message if the type is
unknown, or the length appears invalid.
2011-11-10 10:10:24 +08:00
Robert Moore
df66ba9bc3 Debugger: fix to prevent possible fault while comparing resources.
Ensure that neither descriptor can be overrun.
2011-11-10 10:10:24 +08:00
Robert Moore
0044a4c4aa ACPI 5.0/iASL: Update for Uart/_SLV field
Needed to attach the _SLV name to one of the existing (unnamed) fields
of the UartSerialBus parse tree.
2011-11-10 10:10:24 +08:00
Robert Moore
5c281d515c ACPI 5.0/ResourceManager: Extend internal table for new descriptor.
Extend the internal dispatch table in preparation for dispatch code
for the new resource descriptors. Also, add a double check that
the resource indeed has a valid dispatch table in the resource
validation code.
2011-11-10 10:10:24 +08:00
Robert Moore
8539d18bb5 ACPI 5.0/iASL: Add _SLV field to UartSerialBus macro.
Slave mode is not an actual argument to this macro, but the bit is
defined in the common serial bus descriptor. There is some concern
that there may be a "slave mode" needed for some rare UARTs, so
we add this field so that the flag can be set dynamically by the
ASL, if it is required.
2011-11-10 10:10:24 +08:00
Robert Moore
c5f0b06303 Debugger: Add call to AcpiWalkNamespace.
In the "Resources" command, call this interface to exercise it.
2011-11-10 10:10:24 +08:00
Robert Moore
fb97cf5c3f Update resource descriptor comments for clarity.
Utresrc.c - add comments to resource type table.
2011-11-10 10:10:24 +08:00