Skip to content

Commit 818b758

Browse files
ssuthiku-amdjoergroedel
authored andcommitted
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 <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Joerg Roedel <[email protected]> Signed-off-by: Suravee Suthikulpanit <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent 3c12014 commit 818b758

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

arch/x86/include/asm/irq_remapping.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ enum irq_remap_cap {
3333
IRQ_POSTING_CAP = 0,
3434
};
3535

36+
enum {
37+
IRQ_REMAP_XAPIC_MODE,
38+
IRQ_REMAP_X2APIC_MODE,
39+
};
40+
3641
struct vcpu_data {
3742
u64 pi_desc_addr; /* Physical address of PI Descriptor */
3843
u32 vector; /* Guest vector of the interrupt */

include/linux/dmar.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,6 @@ static inline void dmar_copy_shared_irte(struct irte *dst, struct irte *src)
265265
#define PDA_LOW_BIT 26
266266
#define PDA_HIGH_BIT 32
267267

268-
enum {
269-
IRQ_REMAP_XAPIC_MODE,
270-
IRQ_REMAP_X2APIC_MODE,
271-
};
272-
273268
/* Can't use the common MSI interrupt functions
274269
* since DMAR is not a pci device
275270
*/

0 commit comments

Comments
 (0)