Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86: irq_remapping: Move irq remapping mode enum

The enum is currently defined in Intel-specific DMAR header file,
but it is also used by APIC common code. Therefore, move it to
a more appropriate interrupt-remapping common header file.
This will also be used by subsequent patches.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>

authored by

Suravee Suthikulpanit and committed by
Joerg Roedel
818b7587 3c120143

+5 -5
+5
arch/x86/include/asm/irq_remapping.h
··· 33 33 IRQ_POSTING_CAP = 0, 34 34 }; 35 35 36 + enum { 37 + IRQ_REMAP_XAPIC_MODE, 38 + IRQ_REMAP_X2APIC_MODE, 39 + }; 40 + 36 41 struct vcpu_data { 37 42 u64 pi_desc_addr; /* Physical address of PI Descriptor */ 38 43 u32 vector; /* Guest vector of the interrupt */
-5
include/linux/dmar.h
··· 265 265 #define PDA_LOW_BIT 26 266 266 #define PDA_HIGH_BIT 32 267 267 268 - enum { 269 - IRQ_REMAP_XAPIC_MODE, 270 - IRQ_REMAP_X2APIC_MODE, 271 - }; 272 - 273 268 /* Can't use the common MSI interrupt functions 274 269 * since DMAR is not a pci device 275 270 */