acrn-hypervisor/misc/config_tools/board_inspector/acpiparser
Junjie Mao a3aa0797b1 board_inspector: add builders of AML AST nodes
This patch adds the acpiparser.aml.builder module which provides methods to
construct AML trees from scratch in Python. Similar to how parsers and
binary generators are implemented, this module constructs most builder
methods from the AML grammar defined in the acpiparser.aml.grammar
module. AML objects whose grammar are not present in the grammar module
require special treatment and their builders are implemented
explicitly. The methods have the same name as the AML tree labels defined
in the grammar.

In addition, this module also provides the method `build_value` which
converts plain integers, strings or interpreter values (which are defined
in the datatypes module) to AML trees.

With the builders, the `interpret_method_call` method in the
ConcreteInterpreter is refined to build the (fake) MethodInvocation node
using the builders and handle the actual parameters as well.

Tracked-On: #6287
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
2021-08-09 09:05:01 +08:00
..
aml board_inspector: add builders of AML AST nodes 2021-08-09 09:05:01 +08:00
__init__.py board_inspector: add a parser of PCI routing tables 2021-08-09 09:05:01 +08:00
_utils.py board-inspector: reorganize the scripts 2021-05-16 19:02:00 +08:00
apic.py board-inspector: reorganize the scripts 2021-05-16 19:02:00 +08:00
asf.py board-inspector: reorganize the scripts 2021-05-16 19:02:00 +08:00
dmar.py board-inspector: reorganize the scripts 2021-05-16 19:02:00 +08:00
dsdt.py board_inspector: refactor tree visitors and transformers 2021-08-09 09:05:01 +08:00
facp.py board-inspector: reorganize the scripts 2021-05-16 19:02:00 +08:00
prt.py board_inspector: add a parser of PCI routing tables 2021-08-09 09:05:01 +08:00
rdt.py board_inspector: add a property to reflect the encoded IRQs in RDT 2021-08-09 09:05:01 +08:00
rtct.py board_inspector/acpiparser: enable parsing RTCT v2 2021-05-19 08:53:38 +08:00