/* Invoke the appropriate parsing functions based on the Node type. */
STATIC EFI_STATUS EFIAPI AmlParseStream(IN AML_NODE_HEADER *Node, IN AML_STREAM *FStream, IN LIST_ENTRY *NameSpaceRefList)
/* Invoke the appropriate parsing functions based on the Node type. */
STATIC EFI_STATUS EFIAPI AmlParseStream(IN AML_NODE_HEADER *Node, IN AML_STREAM *FStream, IN LIST_ENTRY *NameSpaceRefList)
{
  EFI_STATUS  Status;
  if (IS_AML_ROOT_NODE (Node)) {
    Status = AmlPopulateRootNode (
               (AML_ROOT_NODE *)Node,
               FStream,
               NameSpaceRefList
               );
    if (EFI_ERROR (Status)) {
      ASSERT (0);
    }
  } else if (IS_AML_OBJECT_NODE (Node)) {
    Status = AmlPopulateObjectNode (
               (AML_OBJECT_NODE *)Node,
               FStream,
               NameSpaceRefList
               );
    if (EFI_ERROR (Status)) {
      ASSERT (0);
    }
  } else {
    ASSERT (0);
    Status = EFI_INVALID_PARAMETER;
  }
  return Status;
}