mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-29 22:56:47 +07:00
20f3097bfe
Generic support for remapping HPET MSI's by parsing the HPET timer block device scope in the ACPI DRHD tables. This is needed for platforms supporting interrupt-remapping and MSI capable HPET timer block. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Jesse Barnes <jbarnes@virtuousgeek.org> Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Cc: Jay Fenlason <fenlason@redhat.com> LKML-Reference: <20090804190729.477649000@intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
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)
|