diff options
author | Mark McLoughlin <markmc@redhat.com> | 2008-11-20 10:49:47 -0500 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2009-01-03 05:57:35 -0500 |
commit | 99126f7ce14aff5f9371b2fa81fddb82be815794 (patch) | |
tree | 6876780b9b0cb94cbe2fd968e8ac44c4eeef5287 /include/linux/dma_remapping.h | |
parent | 622ba12a4c2148999bda9b891bfd0c6ddcb6c57e (diff) |
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/linux/dma_remapping.h')
-rw-r--r-- | include/linux/dma_remapping.h | 22 |
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 @@ | |||
9 | #define VTD_PAGE_MASK (((u64)-1) << VTD_PAGE_SHIFT) | 9 | #define VTD_PAGE_MASK (((u64)-1) << VTD_PAGE_SHIFT) |
10 | #define VTD_PAGE_ALIGN(addr) (((addr) + VTD_PAGE_SIZE - 1) & VTD_PAGE_MASK) | 10 | #define VTD_PAGE_ALIGN(addr) (((addr) + VTD_PAGE_SIZE - 1) & VTD_PAGE_MASK) |
11 | 11 | ||
12 | struct root_entry; | ||
13 | |||
14 | #define DMA_PTE_READ (1) | 12 | #define DMA_PTE_READ (1) |
15 | #define DMA_PTE_WRITE (2) | 13 | #define DMA_PTE_WRITE (2) |
16 | 14 | ||
17 | struct intel_iommu; | 15 | struct intel_iommu; |
18 | 16 | struct dmar_domain; | |
19 | struct dmar_domain { | 17 | struct root_entry; |
20 | int id; /* domain id */ | ||
21 | struct intel_iommu *iommu; /* back pointer to owning iommu */ | ||
22 | |||
23 | struct list_head devices; /* all devices' list */ | ||
24 | struct iova_domain iovad; /* iova's that belong to this domain */ | ||
25 | |||
26 | struct dma_pte *pgd; /* virtual address */ | ||
27 | spinlock_t mapping_lock; /* page table lock */ | ||
28 | int gaw; /* max guest address width */ | ||
29 | |||
30 | /* adjusted guest address width, 0 is level 2 30-bit */ | ||
31 | int agaw; | ||
32 | |||
33 | #define DOMAIN_FLAG_MULTIPLE_DEVICES 1 | ||
34 | int flags; | ||
35 | }; | ||
36 | 18 | ||
37 | /* PCI domain-device relationship */ | 19 | /* PCI domain-device relationship */ |
38 | struct device_domain_info { | 20 | struct device_domain_info { |