IN AML_NODE_HANDLE Node\r
);\r
\r
+/** Attach a node in an AML tree.\r
+\r
+ The node will be added as the last statement of the ParentNode.\r
+ E.g.:\r
+ ASL code corresponding to NewNode:\r
+ Name (_UID, 0)\r
+\r
+ ASL code corresponding to ParentNode:\r
+ Device (PCI0) {\r
+ Name(_HID, EISAID("PNP0A08"))\r
+ }\r
+\r
+ "AmlAttachNode (ParentNode, NewNode)" will result in:\r
+ ASL code:\r
+ Device (PCI0) {\r
+ Name(_HID, EISAID("PNP0A08"))\r
+ Name (_UID, 0)\r
+ }\r
+\r
+ @param [in] ParentNode Pointer to the parent node.\r
+ Must be a root or an object node.\r
+ @param [in] NewNode Pointer to the node to add.\r
+\r
+ @retval EFI_SUCCESS The function completed successfully.\r
+ @retval EFI_INVALID_PARAMETER Invalid parameter.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+AmlAttachNode (\r
+ IN AML_NODE_HANDLE ParentNode,\r
+ IN AML_NODE_HANDLE NewNode\r
+ );\r
+\r
/** Find a node in the AML namespace, given an ASL path and a reference Node.\r
\r
- The AslPath can be an absolute path, or a relative path from the\r
return EFI_SUCCESS;\r
}\r
\r
+/** Attach a node in an AML tree.\r
+\r
+ The node will be added as the last statement of the ParentNode.\r
+ E.g.:\r
+ ASL code corresponding to NewNode:\r
+ Name (_UID, 0)\r
+\r
+ ASL code corresponding to ParentNode:\r
+ Device (PCI0) {\r
+ Name(_HID, EISAID("PNP0A08"))\r
+ }\r
+\r
+ "AmlAttachNode (ParentNode, NewNode)" will result in:\r
+ ASL code:\r
+ Device (PCI0) {\r
+ Name(_HID, EISAID("PNP0A08"))\r
+ Name (_UID, 0)\r
+ }\r
+\r
+ @param [in] ParentNode Pointer to the parent node.\r
+ Must be a root or an object node.\r
+ @param [in] NewNode Pointer to the node to add.\r
+\r
+ @retval EFI_SUCCESS The function completed successfully.\r
+ @retval EFI_INVALID_PARAMETER Invalid parameter.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+AmlAttachNode (\r
+ IN AML_NODE_HANDLE ParentNode,\r
+ IN AML_NODE_HANDLE NewNode\r
+ )\r
+{\r
+ return AmlVarListAddTail (ParentNode, NewNode);\r
+}\r
+\r
// DEPRECATED APIS\r
#ifndef DISABLE_NEW_DEPRECATED_INTERFACES\r
\r