Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125593
b: refs/heads/master
c: d14d657
h: refs/heads/master
i:
  125591: 3ee69d0
v: v3
  • Loading branch information
Joerg Roedel committed Jan 3, 2009
1 parent a7a354b commit 247aeee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dde57a210dcdce85e2813bab8f88687761d9f6a6
refs/heads/master: d14d65777c2491dd5baf1e17f444b8f653f3cbb1
7 changes: 4 additions & 3 deletions trunk/drivers/pci/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3106,15 +3106,16 @@ int intel_iommu_found(void)
}
EXPORT_SYMBOL_GPL(intel_iommu_found);

u64 intel_iommu_iova_to_phys(struct dmar_domain *domain, u64 iova)
static phys_addr_t intel_iommu_iova_to_phys(struct iommu_domain *domain,
unsigned long iova)
{
struct dmar_domain *dmar_domain = domain->priv;
struct dma_pte *pte;
u64 phys = 0;

pte = addr_to_dma_pte(domain, iova);
pte = addr_to_dma_pte(dmar_domain, iova);
if (pte)
phys = dma_pte_addr(pte);

return phys;
}
EXPORT_SYMBOL_GPL(intel_iommu_iova_to_phys);
2 changes: 0 additions & 2 deletions trunk/include/linux/intel-iommu.h
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,6 @@ extern int qi_flush_iotlb(struct intel_iommu *iommu, u16 did, u64 addr,

extern void qi_submit_sync(struct qi_desc *desc, struct intel_iommu *iommu);

u64 intel_iommu_iova_to_phys(struct dmar_domain *domain, u64 iova);

#ifdef CONFIG_DMAR
int intel_iommu_found(void);
#else /* CONFIG_DMAR */
Expand Down

0 comments on commit 247aeee

Please sign in to comment.