/* The Node must be a data node. The Node must have the resource data type, i.e. have the EAmlNodeDataTypeResourceData data type. */
EFI_STATUS EFIAPI AmlGetResourceDataType(IN AML_DATA_NODE *DataNode, OUT AML_RD_HEADER *ResourceDataType)
/* The Node must be a data node. The Node must have the resource data type, i.e. have the EAmlNodeDataTypeResourceData data type. */
EFI_STATUS EFIAPI AmlGetResourceDataType(IN AML_DATA_NODE *DataNode, OUT AML_RD_HEADER *ResourceDataType)
{
  if (!IS_AML_DATA_NODE (DataNode)  ||
      (ResourceDataType == NULL)    ||
      (DataNode->DataType != EAmlNodeDataTypeResourceData))
  {
    ASSERT (0);
    return EFI_INVALID_PARAMETER;
  }
  *ResourceDataType = AmlRdGetDescId (DataNode->Buffer);
  return EFI_SUCCESS;
}