mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 07:33:56 +00:00
166e9278a3
This should ease finding similarities with different platforms, with the intention of solving problems once in a generic framework which everyone can use. Note: to move intel-iommu.c, the declaration of pci_find_upstream_pcie_bridge() has to move from drivers/pci/pci.h to include/linux/pci.h. This is handled in this patch, too. As suggested, also drop DMAR's EXPERIMENTAL tag while we're at it. Compile-tested on x86_64. Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
18 lines
340 B
C
18 lines
340 B
C
#include <linux/intel-iommu.h>
|
|
|
|
struct ioapic_scope {
|
|
struct intel_iommu *iommu;
|
|
unsigned int id;
|
|
unsigned int bus; /* PCI bus number */
|
|
unsigned int devfn; /* PCI devfn number */
|
|
};
|
|
|
|
struct hpet_scope {
|
|
struct intel_iommu *iommu;
|
|
u8 id;
|
|
unsigned int bus;
|
|
unsigned int devfn;
|
|
};
|
|
|
|
#define IR_X2APIC_MODE(mode) (mode ? (1 << 11) : 0)
|