11098 Commits

Author SHA1 Message Date
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
Robert Moore
8a8843b3f3 ACPI 5.0/AcpiHelp: Update for DMA keyword changes.
Changes to width keywords. Also added SMB* synonyms for the
acces attribute keywords.
2011-11-10 10:10:24 +08:00
Robert Moore
d73f14eee8 ACPI 5.0/iASL: Update for DMA keyword changes.
Changes to width keyword for FixedDma descriptor.
2011-11-10 10:10:24 +08:00
Robert Moore
c75de9cb4b ACPI 5.0: Update resource types table.
Remove extraneous entries.
2011-11-10 10:10:24 +08:00
Robert Moore
759b6f5076 ACPI 5.0/iASL: Update to fix some default values in descriptors.
Some issues with the new descriptors, default values.
2011-11-10 10:10:24 +08:00
Robert Moore
a7a02e258f ACPI 5.0/iASL: Update debug output.
Cleanup descriptor debug output.
2011-11-10 10:10:24 +08:00
Robert Moore
07f2f9092b ACPI 5.0/iASL: Update expected shift/reduce conflicts.
Caused by change to ResourceUsage type.
2011-11-10 10:10:24 +08:00
Robert Moore
155fdee57b ACPI 5.0/iASL: Fix to add PullDefault/PullNone keywords.
Also fix an issue with the optional ResourceUsage descriptor arg.
2011-11-10 10:10:24 +08:00
Robert Moore
05473e052a Fix case issue with DMA resource typedef.
Small fix for incorrect upper case typedef.
Lin Ming.
2011-11-10 10:10:24 +08:00
Robert Moore
59836be063 Update linux patch creation scripts.
Minor updates. Lin Ming.
2011-11-10 10:10:24 +08:00
Robert Moore
aa551d40ba Disassembler: Update decode opcodes and simplify.
Use an enum to simplify the opcodes and restructure the table
for clarity and ease of maintenance.
2011-11-10 10:10:24 +08:00