]> git.proxmox.com Git - mirror_edk2.git/commit
DynamicTablesPkg: Add AmlAttachNode()
authorPierre Gondois <Pierre.Gondois@arm.com>
Thu, 9 Dec 2021 09:25:02 +0000 (10:25 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 13 Dec 2021 12:48:42 +0000 (12:48 +0000)
commit69ddfee1c378650645fce5970ccb6577d43c4076
treed5abe32ed8626bdd3555fcdca36c093edb2b915e
parentb2b8def4e38a9b35ea0e466d7541f920c8d06678
DynamicTablesPkg: Add AmlAttachNode()

This function allows to add a node as the last node of a parent node
in an AML tree. For instance,
ASL code corresponding to NewNode:
  Name (_UID, 0)

ASL code corresponding to ParentNode:
  Device (PCI0) {
    Name(_HID, EISAID("PNP0A08"))
  }

"AmlAttachNode (ParentNode, NewNode)" will result in:
ASL code:
  Device (PCI0) {
    Name(_HID, EISAID("PNP0A08"))
    Name (_UID, 0)
  }

To: Sami Mujawar <sami.mujawar@arm.com>
To: Alexei Fedorov <Alexei.Fedorov@arm.com>
Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
DynamicTablesPkg/Include/Library/AmlLib/AmlLib.h
DynamicTablesPkg/Library/Common/AmlLib/Api/AmlApi.c