1018 Commits

Author SHA1 Message Date
Robert Moore
8c364f0847 ACPI 5.0/iASL: Update resource descriptor tags.
A few changes to sync with latest proposals.
2011-11-10 10:10:23 +08:00
Robert Moore
a85d8e8d8c ACPI 5.0/iasl-disassembler: Update resource descriptors.
Update to current proposals.
2011-11-10 10:10:23 +08:00
Robert Moore
cc2b01dc42 ACPI 5.0: Fix parse tree issue with Connection operator.
Child count to TrLinkChildren was incorrect.
2011-11-10 10:10:23 +08:00
Robert Moore
905e1f36bf ACPI 5.0: Finish Connection(), more AccessAs changes.
Add support for Buffer arguments for Connection.
AccessAs now has a separate opcode for the AccessLength case.
Both are per the latest ACPI 5 proposals.
2011-11-10 10:10:23 +08:00
Robert Moore
a9b254734b ACPI 5.0: Update AccessAs syntax/encoding.
Update to final ACPI 5.0 syntax and AML encoding.
2011-11-10 10:10:23 +08:00
Robert Moore
0bb5e623a4 ACPI 5.0/iASL/Disassembler: Support for Connection/AccessAs.
New operator, Connection(). Update to AccessAs() for new
optional argument.
2011-11-10 10:10:23 +08:00
Robert Moore
c660fcbd56 ACPI 5.0: Support for GenericSerialBus operation region handling.
New keywords for iASL, dispatch to region handler. Lin Ming.
2011-11-10 10:10:23 +08:00
Robert Moore
ddcc4d501d ACPI 5.0: Merge GpioInt/GpioIo descriptors to common struct.
Both resource descriptors use the same data structure.
2011-11-10 10:10:23 +08:00
Robert Moore
99a0294f18 ACPI 5.0/iasl: Update descriptor names. 2011-11-10 10:10:23 +08:00
Robert Moore
06c8f4ef51 ACPI 5.0/iASL: Add correct values for new share/wake interupt bits.
New bits had incorrect values.
2011-11-10 10:10:23 +08:00
Robert Moore
c17885f24a ACPI 5.0: Basic support for FADT version 5.
Includes: header, disassembler, table compiler support.
2011-11-10 10:10:23 +08:00
Robert Moore
3075e9a7c1 ACPI 5.0/iASL: Update to new RawDataBuffer object.
Changed from simple DataBuffer. Also migrate all VendorData generation
to a single function.
2011-11-10 10:10:23 +08:00
Robert Moore
62b4cf7030 ACPI 5.0/Disassembler: support for GpioInt descriptor.
Initial support, Lin Ming.
2011-11-10 10:10:23 +08:00
Robert Moore
c5865877dd ACPI 5.0/iASL: Initial support for "Connection" keyword.
Just parser support.
2011-11-10 10:10:22 +08:00
Robert Moore
5a5b2f1e17 ACPI 5.0/iASL: Add new AccessAttribute keywords.
For GenericSerialBus fields.
2011-11-10 10:10:22 +08:00
Robert Moore
fd2714dd02 ACPI 5.0: iasl: Update names for res descriptor fields.
New names according to latest proposals.
2011-11-10 10:10:22 +08:00
Robert Moore
f43f09946a ACPI 5.0: iasl: update to fix resource descriptor lengths and offsets. 2011-11-10 10:10:22 +08:00
Robert Moore
7bedf10eb5 ACPI 5.0: iASL grammar updates for new descriptors.
Better specification of required versus optional fields.
2011-11-10 10:10:22 +08:00
Robert Moore
1661a43a4c ACPI 5.0: Split new descriptors to new file, aslrestype2s.c
Original file became too large.
2011-11-10 10:10:22 +08:00
Robert Moore
05d518803c ACPI 5.0: Add FlowControl to UartSerialBus descriptor.
Was unclear in proposal if this field actually existed.
2011-11-10 10:10:22 +08:00
Robert Moore
dcb10f252e ACPI 5.0: Add GeneralPurposeIo keyword for regions.
Previously was GPIO, changed in latest proposal.
2011-11-10 10:10:22 +08:00
Robert Moore
d038fae6b2 ACPI 5.0: Add DataBuffer type for resource descriptors.
Handles the optional VendorData bytes cleanly.
2011-11-10 10:10:22 +08:00
Robert Moore
aab9b21395 ACPI 5.0: Support for 16-bit flags in resource descriptors.
No 16-bit flags before ACPI 5.0.
2011-11-10 10:10:22 +08:00
Robert Moore
e6efd40b18 ACPI 5.0: Implement field names for new resource descriptors.
Added proposed names for the various resource fields.
2011-11-10 10:10:22 +08:00
Robert Moore
96dc14b43b ACPI 5.0: Support for new FixedDMA descriptor.
Short FixedDMA resource descriptor.
2011-11-10 10:10:22 +08:00
Robert Moore
81b1f18cda ACPI 5.0: iASL: update resource descs for latest proposals.
Latest version of the resource descriptors. Compiler support
only.
2011-11-10 10:10:22 +08:00
Robert Moore
937b0779e9 Disassembler/Acpi5: Support for new resource descriptors.
New resource descriptors. Lin Ming.
2011-11-10 10:10:22 +08:00
Robert Moore
d503b1488e iASL/Acpi5: Fix a couple errors in the lex file.
GPIO_INT, GPIO_IO were incorrect.
2011-11-10 10:10:22 +08:00
Robert Moore
b80cbd76d9 iASL/ACPI5.0: Support for new region space IDs.
GPIO and GenericSerialBus keywords supported. Also includes
disassembler support. Does not include core ACPICA support
for these IDs.
2011-11-10 10:10:22 +08:00
Robert Moore
bc0dda82ef iASL/ACPI 5.0: Add new Resource Descriptors.
For compiler only, not disassembler. Code imported from
Intel BIOS - Jiewen Yao.
2011-11-10 10:10:22 +08:00
Robert Moore
7acf57cb95 Disassembler: Add option to disable Buffer->ResourceTemplate disassembly.
There may be cases where it is not desireable to fully disassemble a
buffer to a ResourceTemplate.
2011-10-11 13:36:12 -07:00
Robert Moore
cf5fef749b iASL: Add __PATH__ operator.
Returns the full path to the current file, if available.
__FILE__ now always returns the simple filename.
2011-10-07 09:14:05 -07:00
Robert Moore
6ac92ae253 iASL: Fix listing output for switch operator.
Switch caused the AML listing output to be suspended until much
later in the listing file. This change fixes the problem.
2011-10-04 15:09:43 -07:00
Robert Moore
e3f7713188 Update for GCC 4.6
Fixes several issues with GCC 4.6 related to the new checks
for unused variables.
2011-10-04 07:55:35 -07:00
Robert Moore
07f4b5eb16 iASL: Harden error printing code against null message strings.
Prevent possible fault if main message is null string or zero
length string.
2011-09-30 13:58:22 -07:00
Robert Moore
858f7beecf iASL: Fix some VarPackage issues.
1) properly handle constants like One,Ones,Zero. Do not make a
var_package when these are used as a package length.
2) Allow VAR_PACKAGE (in addition to PACKAGE) opcode when validating
object types for predifined names.
2011-09-16 13:11:24 -07:00
Robert Moore
72b04989b2 iASL/DTC: Add -G option to compile custom/generic tables.
Allows construction of custom ACPI tables that contain a standard
ACPI table header, and the rest of the table is defined using
the "generic" data terms (UINT32, etc.)
LinMing.
2011-09-09 12:48:01 -07:00
Robert Moore
7e826fbbfa iASL: Alphabetize error messages, no functional change.
Cleanup master list of error/warning messages.
2011-09-02 14:06:20 -07:00
Robert Moore
bd2e51cfa9 iASL: Check access length for ResourceTag references.
When compiling CreateXxxField operators that access resource descriptor tags,
check that the bit access width matches the actual width of the resource
descriptor field referenced by the tag. ACPICA BZ 930.
2011-09-02 13:53:35 -07:00
Robert Moore
2b8ab3c4fd iASL: Fix to seek to zero on AML file for listings.
Fixes a problem introduced in a previous commit to emit more
file statistics for the iASL summary. The getfilesize function no
longer leaves the file at offset 0, it preserves the current
offset. Therefore, this patch fixes code that depended on that
behavior.
2011-08-25 12:52:17 -07:00
Robert Moore
f8d85c9777 iASL: Emit statistics for all optional output files.
Listing, hex, etc. files. Display filename and filesize for
each selected optional file, in addition to the ASL input
and AML output files.
2011-08-23 15:12:26 -07:00
Robert Moore
b2b7ab725c iASL: Add error message for root parse node failure.
Error message if the parse tree root node does not get
found/created.
2011-08-19 08:01:42 -07:00
Robert Moore
373b57f06d Tools: Standardize usage help messages.
Add new common macros for usage messages.
2011-06-24 08:20:20 -07:00
Robert Moore
b12fcf75c0 Service Layers: Make multi-thread support configurable.
Conditionally compile the multi-thread support so that threading
libraries will not be linked if not necessary. The only tool
that requires multi-thread support is AcpiExec.
2011-06-08 09:42:47 -07:00
Robert Moore
c5fa8c024c iASL: Update yyerrror/AslCompilerError for "const" errors.
Newer versions of Bison appear to want the interface to yyerror
to be a const char *. ACPICA BZ 923 Pierre Lejeune.
2011-06-01 14:00:02 -07:00
Robert Moore
16c9bbd6a3 iASL: Changes to cleanup support for Berkeley yacc.
A general cleanup of code and various options to simplify the
support for two parser generators, Bison and yacc.
2011-04-15 10:03:35 -07:00
Robert Moore
cfbcf49663 Disassembler/DTC: Remove () and <> style comments in data tables.
Now that DTC has full expression support, we don't want to have comment
strings that start with a paren or a less-than symbol. Now, only the
standard /* and // comments are supported, as well as the bracket []
comments.
2011-04-08 13:59:07 -07:00
Robert Moore
369c0f165c iASL/DTC: Finish support for expression evaluation.
Added a new expression parser that implements c-style operator
precedence and parenthesization. ACPICA bugzilla 908.
2011-04-08 12:27:17 -07:00
Robert Moore
8985477af8 iASL/DTC: Update template for SLIT table.
Created a more realistic Locality matrix for the template
example.
2011-03-31 13:15:34 -07:00
Robert Moore
b54399b881 iASL/DTC: Update for new grammar features.
Allow generic data types in custom acpi tables.
Field names are now optional.
Any line can be split to multiple lines using continuation char (\).
Large buffers now use line-continuation char and no colon on the
continuation lines.

See grammar update in the iASL compiler reference.
ACPI BZ 910,911. Lin Ming, Bob Moore.
2011-03-31 10:08:52 -07:00