acrn-hypervisor/misc/config_tools/board_inspector/acpiparser
Junjie Mao 6ccd7660a4 board_inspector: add object_type codes in Decls
Object type codes are used to identify, as the name suggests, type of
objects. Typical object types in AML include integers, strings, methods,
devices, buffers, packages and operation regions. In DefExternal terms the
object type codes help specify the type of the external objects so that an
AML parser can parse the code without knowing the concrete definition of
these objects.

The per-device AML templates in board XMLs need DefExternal terms to
declare the objects in other devices, as these templates are meant to be
parsed and integrated separately. This patch adds a static method to object
declaration classes to make it easier to generate such DefExternal terms
for a given declaration.

A complete definition of object type codes can be found in section 19.6.96
of ACPI specification 6.4.

v1 -> v2:
  * Remove the object_type of FieldDecl and OperationFieldDecl as 0x5 is
    not a proper object type for buffer fields.

Tracked-On: #6287
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
2021-08-09 09:05:01 +08:00
..
aml board_inspector: add object_type codes in Decls 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: extend DSDT parser to allow parsing arbitrary trees 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 default value to address space descriptors 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