/* Get the data type of the DataNode. The Node must be a data node. */
EFI_STATUS EFIAPI AmlGetNodeDataType(IN AML_DATA_NODE *DataNode, OUT EAML_NODE_DATA_TYPE *DataType)
/* Get the data type of the DataNode. The Node must be a data node. */
EFI_STATUS EFIAPI AmlGetNodeDataType(IN AML_DATA_NODE *DataNode, OUT EAML_NODE_DATA_TYPE *DataType)
{
  if (!IS_AML_DATA_NODE (DataNode)  ||
      (DataType == NULL))
  {
    ASSERT (0);
    return EFI_INVALID_PARAMETER;
  }
  *DataType = DataNode->DataType;
  return EFI_SUCCESS;
}