0ddfc0b90adb5be882831a3a4fd4147507d58518
[pandora-kernel.git] / arch / x86 / include / asm / irq_remapping.h
1 #ifndef _ASM_X86_IRQ_REMAPPING_H
2 #define _ASM_X86_IRQ_REMAPPING_H
3
4 #define IRTE_DEST(dest) ((x2apic_mode) ? dest : dest << 8)
5
6 #ifdef CONFIG_IRQ_REMAP
7 static void irq_remap_modify_chip_defaults(struct irq_chip *chip);
8 static inline bool irq_remapped(struct irq_cfg *cfg)
9 {
10         return cfg->irq_2_iommu.iommu != NULL;
11 }
12 #else
13 static inline bool irq_remapped(struct irq_cfg *cfg)
14 {
15         return false;
16 }
17 static inline void irq_remap_modify_chip_defaults(struct irq_chip *chip)
18 {
19 }
20 #endif
21
22 #endif  /* _ASM_X86_IRQ_REMAPPING_H */