]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
intel-iommu: move DMA_32/64BIT_PFN into intel-iommu.c
authorMark McLoughlin <markmc@redhat.com>
Thu, 20 Nov 2008 15:49:43 +0000 (15:49 +0000)
committerJoerg Roedel <joerg.roedel@amd.com>
Sat, 3 Jan 2009 10:57:34 +0000 (11:57 +0100)
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intel-iommu.c
include/linux/dma_remapping.h

index 95ae3a9aea8a42ec1554c473f0aee5ab0d9c9aec..6fadbb9bc180e54e6d047ff15981198a23ef462b 100644 (file)
@@ -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);
 
index cf92c4924b8ca25c37212c22dbac44718c956cbf..2e5a5c0b6acd99b8e40a342cd6ee1c3baf0783e0 100644 (file)
@@ -9,11 +9,6 @@
 #define VTD_PAGE_MASK          (((u64)-1) << VTD_PAGE_SHIFT)
 #define VTD_PAGE_ALIGN(addr)   (((addr) + VTD_PAGE_SIZE - 1) & VTD_PAGE_MASK)
 
-#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)
-
-
 /*
  * 0: Present
  * 1-11: Reserved