diff options
author | Weidong Han <weidong.han@intel.com> | 2008-12-08 10:09:29 -0500 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2009-01-03 08:02:18 -0500 |
commit | faa3d6f5ffe7bf60ebfd0d36513fbcda0eb0ea1a (patch) | |
tree | 4992e52cff96da38bedfb7805c18ac97c9ae9c01 /include/linux/intel-iommu.h | |
parent | ea6606b02fc3192f2edab2db669fa0b9756b4e67 (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.h | 20 |
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 | ||
331 | extern void qi_submit_sync(struct qi_desc *desc, struct intel_iommu *iommu); | 331 | extern void qi_submit_sync(struct qi_desc *desc, struct intel_iommu *iommu); |
332 | 332 | ||
333 | void intel_iommu_domain_exit(struct dmar_domain *domain); | 333 | struct dmar_domain *intel_iommu_alloc_domain(void); |
334 | struct dmar_domain *intel_iommu_domain_alloc(struct pci_dev *pdev); | 334 | void intel_iommu_free_domain(struct dmar_domain *domain); |
335 | int intel_iommu_context_mapping(struct dmar_domain *domain, | 335 | int intel_iommu_attach_device(struct dmar_domain *domain, |
336 | struct pci_dev *pdev); | 336 | struct pci_dev *pdev); |
337 | int intel_iommu_page_mapping(struct dmar_domain *domain, dma_addr_t iova, | 337 | void intel_iommu_detach_device(struct dmar_domain *domain, |
338 | u64 hpa, size_t size, int prot); | 338 | struct pci_dev *pdev); |
339 | void intel_iommu_detach_dev(struct dmar_domain *domain, u8 bus, u8 devfn); | 339 | int intel_iommu_map_address(struct dmar_domain *domain, dma_addr_t iova, |
340 | struct dmar_domain *intel_iommu_find_domain(struct pci_dev *pdev); | 340 | u64 hpa, size_t size, int prot); |
341 | u64 intel_iommu_iova_to_pfn(struct dmar_domain *domain, u64 iova); | 341 | void intel_iommu_unmap_address(struct dmar_domain *domain, |
342 | dma_addr_t iova, size_t size); | ||
343 | u64 intel_iommu_iova_to_phys(struct dmar_domain *domain, u64 iova); | ||
342 | 344 | ||
343 | #ifdef CONFIG_DMAR | 345 | #ifdef CONFIG_DMAR |
344 | int intel_iommu_found(void); | 346 | int intel_iommu_found(void); |