summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2008-11-20 18:49:47 +0300
committerJoerg Roedel <joerg.roedel@amd.com>2009-01-03 13:57:35 +0300
commit99126f7ce14aff5f9371b2fa81fddb82be815794 (patch)
tree6876780b9b0cb94cbe2fd968e8ac44c4eeef5287 /include
parent622ba12a4c2148999bda9b891bfd0c6ddcb6c57e (diff)
downloadlinux-99126f7ce14aff5f9371b2fa81fddb82be815794.tar.xz
intel-iommu: move struct dmar_domain def out dma_remapping.h
Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/dma_remapping.h22
1 files changed, 2 insertions, 20 deletions
diff --git a/include/linux/dma_remapping.h b/include/linux/dma_remapping.h
index 9d5874e3bec9..333014468f17 100644
--- a/include/linux/dma_remapping.h
+++ b/include/linux/dma_remapping.h
@@ -9,30 +9,12 @@
#define VTD_PAGE_MASK (((u64)-1) << VTD_PAGE_SHIFT)
#define VTD_PAGE_ALIGN(addr) (((addr) + VTD_PAGE_SIZE - 1) & VTD_PAGE_MASK)
-struct root_entry;
-
#define DMA_PTE_READ (1)
#define DMA_PTE_WRITE (2)
struct intel_iommu;
-
-struct dmar_domain {
- int id; /* domain id */
- struct intel_iommu *iommu; /* back pointer to owning iommu */
-
- struct list_head devices; /* all devices' list */
- struct iova_domain iovad; /* iova's that belong to this domain */
-
- struct dma_pte *pgd; /* virtual address */
- spinlock_t mapping_lock; /* page table lock */
- int gaw; /* max guest address width */
-
- /* adjusted guest address width, 0 is level 2 30-bit */
- int agaw;
-
-#define DOMAIN_FLAG_MULTIPLE_DEVICES 1
- int flags;
-};
+struct dmar_domain;
+struct root_entry;
/* PCI domain-device relationship */
struct device_domain_info {