aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/intel-iommu.h
diff options
context:
space:
mode:
authorWeidong Han <weidong.han@intel.com>2008-12-08 10:09:29 -0500
committerJoerg Roedel <joerg.roedel@amd.com>2009-01-03 08:02:18 -0500
commitfaa3d6f5ffe7bf60ebfd0d36513fbcda0eb0ea1a (patch)
tree4992e52cff96da38bedfb7805c18ac97c9ae9c01 /include/linux/intel-iommu.h
parentea6606b02fc3192f2edab2db669fa0b9756b4e67 (diff)
Change intel iommu APIs of virtual machine domain
These APIs are used by KVM to use VT-d Signed-off-by: Weidong Han <weidong.han@intel.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'include/linux/intel-iommu.h')
-rw-r--r--include/linux/intel-iommu.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h
index 06349fd5871b..07973c4e4acc 100644
--- a/include/linux/intel-iommu.h
+++ b/include/linux/intel-iommu.h
@@ -330,15 +330,17 @@ extern int qi_flush_iotlb(struct intel_iommu *iommu, u16 did, u64 addr,
330 330
331extern void qi_submit_sync(struct qi_desc *desc, struct intel_iommu *iommu); 331extern void qi_submit_sync(struct qi_desc *desc, struct intel_iommu *iommu);
332 332
333void intel_iommu_domain_exit(struct dmar_domain *domain); 333struct dmar_domain *intel_iommu_alloc_domain(void);
334struct dmar_domain *intel_iommu_domain_alloc(struct pci_dev *pdev); 334void intel_iommu_free_domain(struct dmar_domain *domain);
335int intel_iommu_context_mapping(struct dmar_domain *domain, 335int intel_iommu_attach_device(struct dmar_domain *domain,
336 struct pci_dev *pdev); 336 struct pci_dev *pdev);
337int intel_iommu_page_mapping(struct dmar_domain *domain, dma_addr_t iova, 337void intel_iommu_detach_device(struct dmar_domain *domain,
338 u64 hpa, size_t size, int prot); 338 struct pci_dev *pdev);
339void intel_iommu_detach_dev(struct dmar_domain *domain, u8 bus, u8 devfn); 339int intel_iommu_map_address(struct dmar_domain *domain, dma_addr_t iova,
340struct dmar_domain *intel_iommu_find_domain(struct pci_dev *pdev); 340 u64 hpa, size_t size, int prot);
341u64 intel_iommu_iova_to_pfn(struct dmar_domain *domain, u64 iova); 341void intel_iommu_unmap_address(struct dmar_domain *domain,
342 dma_addr_t iova, size_t size);
343u64 intel_iommu_iova_to_phys(struct dmar_domain *domain, u64 iova);
342 344
343#ifdef CONFIG_DMAR 345#ifdef CONFIG_DMAR
344int intel_iommu_found(void); 346int intel_iommu_found(void);