]> git.proxmox.com Git - mirror_edk2.git/commit
DynamicTablesPkg: AML grammar definition
authorPierre Gondois <pierre.gondois@arm.com>
Wed, 29 Jul 2020 10:42:50 +0000 (11:42 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 13 Aug 2020 18:00:06 +0000 (18:00 +0000)
commit98f2808115d0635c6bfd6019ccacbe7c1dd5a5f7
tree366b2df5df20db29581123fedbc792f6dac1eb90
parent292e5408547767553e838b3e825a49c338224c16
DynamicTablesPkg: AML grammar definition

ASL is a source language for defining ACPI objects including
writing ACPI control methods. An ASL file is compiled using
an ASL compiler tool to generate ACPI Machine Language (AML).
This AML bytecode is processed by the ACPI AML interpreter
that runs as part of an Operating System (OS).

Both ASL and AML are declarative languages. Although they
are closely related they are different languages.

ASL statements declare objects. Each object has three parts,
two of which can be NULL:
  Object := ObjectType FixedList VariableList

The AML grammar defines corresponding encodings that makes
up the AML byte stream.

This patch introduces the AML grammar definitions used by
AmlLib for encoding/decoding AML byte streams.

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
DynamicTablesPkg/Library/Common/AmlLib/AmlEncoding/Aml.c [new file with mode: 0644]
DynamicTablesPkg/Library/Common/AmlLib/AmlEncoding/Aml.h [new file with mode: 0644]