summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2008-11-20 18:49:43 +0300
committerJoerg Roedel <joerg.roedel@amd.com>2009-01-03 13:57:34 +0300
commitf27be03b271851fd54529f292c0f25b4c1f1a553 (patch)
tree606d8accb8dd33c3200853614cc261826e0194f8 /drivers/pci
parent519a05491586dad04e687660e54c57882315b22b (diff)
downloadlinux-f27be03b271851fd54529f292c0f25b4c1f1a553.tar.xz
intel-iommu: move DMA_32/64BIT_PFN into intel-iommu.c
Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/intel-iommu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c
index 95ae3a9aea8a..6fadbb9bc180 100644
--- a/drivers/pci/intel-iommu.c
+++ b/drivers/pci/intel-iommu.c
@@ -53,6 +53,9 @@
#define DOMAIN_MAX_ADDR(gaw) ((((u64)1) << gaw) - 1)
+#define IOVA_PFN(addr) ((addr) >> PAGE_SHIFT)
+#define DMA_32BIT_PFN IOVA_PFN(DMA_32BIT_MASK)
+#define DMA_64BIT_PFN IOVA_PFN(DMA_64BIT_MASK)
static void flush_unmaps_timeout(unsigned long data);