/* Get the RootNode information. The Node must be a root node. */
EFI_STATUS EFIAPI AmlGetRootNodeInfo(IN AML_ROOT_NODE *RootNode, OUT EFI_ACPI_DESCRIPTION_HEADER *SdtHeaderBuffer)
/* Get the RootNode information. The Node must be a root node. */
EFI_STATUS EFIAPI AmlGetRootNodeInfo(IN AML_ROOT_NODE *RootNode, OUT EFI_ACPI_DESCRIPTION_HEADER *SdtHeaderBuffer)
{
  if (!IS_AML_ROOT_NODE (RootNode)  ||
      (SdtHeaderBuffer == NULL))
  {
    ASSERT (0);
    return EFI_INVALID_PARAMETER;
  }
  CopyMem (
    SdtHeaderBuffer,
    RootNode->SdtHeader,
    sizeof (EFI_ACPI_DESCRIPTION_HEADER)
    );
  return EFI_SUCCESS;
}