/* Returns the appropriate IOMMU data for the given parisc PCI controller. This is cached and used later for PCI DMA Mapping.  */
void* sba_get_iommu(struct parisc_device *pci_hba)
/* Returns the appropriate IOMMU data for the given parisc PCI controller. This is cached and used later for PCI DMA Mapping.  */
void* sba_get_iommu(struct parisc_device *pci_hba)
{
	struct parisc_device *sba_dev = parisc_parent(pci_hba);
	struct sba_device *sba = dev_get_drvdata(&sba_dev->dev);
	char t = sba_dev->id.hw_type;
	int iocnum = (pci_hba->hw_path >> 3);
	WARN_ON((t != HPHW_IOA) && (t != HPHW_BCPORT));
	return &(sba->ioc[iocnum]);
}