/* Return the child ACPI objects from Non-Root Handle. */
EFI_STATUS AmlGetChildFromNonRoot(IN EFI_AML_HANDLE *AmlParentHandle, IN EFI_AML_HANDLE *AmlHandle, OUT VOID **Buffer)
/* Return the child ACPI objects from Non-Root Handle. */
EFI_STATUS AmlGetChildFromNonRoot(IN EFI_AML_HANDLE *AmlParentHandle, IN EFI_AML_HANDLE *AmlHandle, OUT VOID **Buffer)
{
  EFI_STATUS  Status;
  if (AmlHandle == NULL) {
    AmlHandle = AmlParentHandle;
  }
  Status = AmlGetChildFromOptionList (AmlParentHandle, AmlHandle, Buffer);
  if (EFI_ERROR (Status)) {
    return EFI_INVALID_PARAMETER;
  }
  if (*Buffer != NULL) {
    return EFI_SUCCESS;
  }
  return AmlGetChildFromObjectChildList (AmlParentHandle, AmlHandle, Buffer);
}