]> git.proxmox.com Git - mirror_edk2.git/commit
DynamicTablesPkg: AML resource data helper
authorPierre Gondois <pierre.gondois@arm.com>
Tue, 4 Aug 2020 14:50:24 +0000 (15:50 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 13 Aug 2020 18:00:06 +0000 (18:00 +0000)
commit422e93e1de6f265ff48eaacc8cf7c44d6401062e
tree10c95bb2d416fb63964a78c9aad14d33ce87c6dd
parent9f2d50f145191733e502667327c2129034a93099
DynamicTablesPkg: AML resource data helper

Resource data are defined in the ACPI 6.3 specification,
s6.4 "Resource Data Types for ACPI". They can be created
using the ASL ResourceTemplate () statement, cf s19.3.3
"ASL Resource Templates".

Resource data can be of the small or large type and are
defined by their encoding. The resource data is stored
in the Bytelist of a BufferOp node. To simplify
operations on resource data, the resource data parser
examines the Bytelist to detect the presence of resource
data. If the data matches the encoding of resource
data type(s), the parser fragments the resource data
buffer into resource data elements (data nodes) and
stores them in the variable arguments list of the
BufferOp node.

The resource data helper provides functions and macros
to assist operations on resource data elements.

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/ResourceData/AmlResourceData.c [new file with mode: 0644]
DynamicTablesPkg/Library/Common/AmlLib/ResourceData/AmlResourceData.h [new file with mode: 0644]