/* Return the child ACPI objects from Root Handle. */
EFI_STATUS AmlGetChildFromRoot(IN EFI_AML_HANDLE *AmlParentHandle, IN EFI_AML_HANDLE *AmlHandle, OUT VOID **Buffer)
/* Return the child ACPI objects from Root Handle. */
EFI_STATUS AmlGetChildFromRoot(IN EFI_AML_HANDLE *AmlParentHandle, IN EFI_AML_HANDLE *AmlHandle, OUT VOID **Buffer)
{
  UINT8  *CurrentBuffer;
  if (AmlHandle == NULL) {
    CurrentBuffer = (VOID *)AmlParentHandle->Buffer;
  } else {
    CurrentBuffer = (VOID *)(AmlHandle->Buffer + AmlHandle->Size);
  }
  return AmlGetChildFromObjectBuffer (AmlParentHandle, CurrentBuffer, Buffer);
}