/* This function searches through the registered IOMMU's and returns the appropriate IOMMU for the device based on its hardware path.  */
void* ccio_get_iommu(const struct parisc_device *dev)
/* This function searches through the registered IOMMU's and returns the appropriate IOMMU for the device based on its hardware path.  */
void* ccio_get_iommu(const struct parisc_device *dev)
{
	dev = find_pa_parent_type(dev, HPHW_IOA);
	if (!dev)
		return NULL;
	return ccio_find_ioc(dev->hw_path);
}