2008-09-09 23:37:29 +08:00
|
|
|
#include <linux/intel-iommu.h>
|
2008-07-11 02:16:40 +08:00
|
|
|
|
|
|
|
struct ioapic_scope {
|
|
|
|
struct intel_iommu *iommu;
|
|
|
|
unsigned int id;
|
2009-05-23 00:41:15 +08:00
|
|
|
unsigned int bus; /* PCI bus number */
|
|
|
|
unsigned int devfn; /* PCI devfn number */
|
2008-07-11 02:16:40 +08:00
|
|
|
};
|
2008-07-11 02:16:43 +08:00
|
|
|
|
2009-08-05 03:07:08 +08:00
|
|
|
struct hpet_scope {
|
|
|
|
struct intel_iommu *iommu;
|
|
|
|
u8 id;
|
|
|
|
unsigned int bus;
|
|
|
|
unsigned int devfn;
|
|
|
|
};
|
|
|
|
|
2008-07-11 02:16:43 +08:00
|
|
|
#define IR_X2APIC_MODE(mode) (mode ? (1 << 11) : 0)
|