forked from Minki/linux
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>
This commit is contained in:
parent
519a054915
commit
f27be03b27
@ -53,6 +53,9 @@
|
|||||||
|
|
||||||
#define DOMAIN_MAX_ADDR(gaw) ((((u64)1) << gaw) - 1)
|
#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);
|
static void flush_unmaps_timeout(unsigned long data);
|
||||||
|
|
||||||
|
@ -9,11 +9,6 @@
|
|||||||
#define VTD_PAGE_MASK (((u64)-1) << VTD_PAGE_SHIFT)
|
#define VTD_PAGE_MASK (((u64)-1) << VTD_PAGE_SHIFT)
|
||||||
#define VTD_PAGE_ALIGN(addr) (((addr) + VTD_PAGE_SIZE - 1) & VTD_PAGE_MASK)
|
#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
|
* 0: Present
|
||||||
* 1-11: Reserved
|
* 1-11: Reserved
|
||||||
|
Loading…
Reference in New Issue
Block a user