···426426 iommu_queue_inv_iommu_pages(iommu, address, domid, 0, 1);427427}428428429429-#ifdef CONFIG_IOMMU_API430429/*431430 * This function is used to flush the IO/TLB for a given protection domain432431 * on every IOMMU in the system···449450 spin_unlock_irqrestore(&iommu->lock, flags);450451 }451452}452452-#endif453453454454/****************************************************************************455455 *···514516 return 0;515517}516518517517-#ifdef CONFIG_IOMMU_API518519static void iommu_unmap_page(struct protection_domain *dom,519520 unsigned long bus_addr)520521{···535538536539 *pte = 0;537540}538538-#endif539541540542/*541543 * This function checks if a specific unity mapping entry is needed for···719723 return id;720724}721725722722-#ifdef CONFIG_IOMMU_API723726static void domain_id_free(int id)724727{725728 unsigned long flags;···728733 __clear_bit(id, amd_iommu_pd_alloc_bitmap);729734 write_unlock_irqrestore(&amd_iommu_devtable_lock, flags);730735}731731-#endif732736733737/*734738 * Used to reserve address ranges in the aperture (e.g. for exclusion···16961702 /* Make the driver finally visible to the drivers */16971703 dma_ops = &amd_iommu_dma_ops;1698170416991699-#ifdef CONFIG_IOMMU_API17001705 register_iommu(&amd_iommu_ops);17011701-#endif1702170617031707 bus_register_notifier(&pci_bus_type, &device_nb);17041708···17231731 * which is not possible with the dma_ops interface.17241732 *17251733 *****************************************************************************/17261726-17271727-#ifdef CONFIG_IOMMU_API1728173417291735static void cleanup_domain(struct protection_domain *domain)17301736{···19341944 .iova_to_phys = amd_iommu_iova_to_phys,19351945};1936194619371937-#endif