提交 a647dacb 编写于 作者: M Mark McLoughlin 提交者: Joerg Roedel

intel-iommu: move struct device_domain_info out of dma_remapping.h

Signed-off-by: NMark McLoughlin <markmc@redhat.com>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 99126f7c
...@@ -168,6 +168,16 @@ struct dmar_domain { ...@@ -168,6 +168,16 @@ struct dmar_domain {
int flags; int flags;
}; };
/* PCI domain-device relationship */
struct device_domain_info {
struct list_head link; /* link to domain siblings */
struct list_head global; /* link to global list */
u8 bus; /* PCI bus numer */
u8 devfn; /* PCI devfn number */
struct pci_dev *dev; /* it's NULL for PCIE-to-PCI bridge */
struct dmar_domain *domain; /* pointer to domain */
};
static void flush_unmaps_timeout(unsigned long data); static void flush_unmaps_timeout(unsigned long data);
DEFINE_TIMER(unmap_timer, flush_unmaps_timeout, 0, 0); DEFINE_TIMER(unmap_timer, flush_unmaps_timeout, 0, 0);
......
...@@ -16,16 +16,6 @@ struct intel_iommu; ...@@ -16,16 +16,6 @@ struct intel_iommu;
struct dmar_domain; struct dmar_domain;
struct root_entry; struct root_entry;
/* PCI domain-device relationship */
struct device_domain_info {
struct list_head link; /* link to domain siblings */
struct list_head global; /* link to global list */
u8 bus; /* PCI bus numer */
u8 devfn; /* PCI devfn number */
struct pci_dev *dev; /* it's NULL for PCIE-to-PCI bridge */
struct dmar_domain *domain; /* pointer to domain */
};
extern void free_dmar_iommu(struct intel_iommu *iommu); extern void free_dmar_iommu(struct intel_iommu *iommu);
extern int dmar_disabled; extern int dmar_disabled;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册