VT-d: register functions for the IOMMU API

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>

+15
+15
drivers/pci/intel-iommu.c
··· 277 277 static DEFINE_SPINLOCK(device_domain_lock); 278 278 static LIST_HEAD(device_domain_list); 279 279 280 + static struct iommu_ops intel_iommu_ops; 281 + 280 282 static int __init intel_iommu_setup(char *str) 281 283 { 282 284 if (!str) ··· 2731 2729 init_timer(&unmap_timer); 2732 2730 force_iommu = 1; 2733 2731 dma_ops = &intel_dma_ops; 2732 + 2733 + register_iommu(&intel_iommu_ops); 2734 + 2734 2735 return 0; 2735 2736 } 2736 2737 ··· 3124 3119 3125 3120 return phys; 3126 3121 } 3122 + 3123 + static struct iommu_ops intel_iommu_ops = { 3124 + .domain_init = intel_iommu_domain_init, 3125 + .domain_destroy = intel_iommu_domain_destroy, 3126 + .attach_dev = intel_iommu_attach_device, 3127 + .detach_dev = intel_iommu_detach_device, 3128 + .map = intel_iommu_map_range, 3129 + .unmap = intel_iommu_unmap_range, 3130 + .iova_to_phys = intel_iommu_iova_to_phys, 3131 + };