irq_remapping.h 516 B

12345678910111213141516171819202122
  1. #ifndef _ASM_X86_IRQ_REMAPPING_H
  2. #define _ASM_X86_IRQ_REMAPPING_H
  3. #define IRTE_DEST(dest) ((x2apic_mode) ? dest : dest << 8)
  4. #ifdef CONFIG_IRQ_REMAP
  5. static void irq_remap_modify_chip_defaults(struct irq_chip *chip);
  6. static inline bool irq_remapped(struct irq_cfg *cfg)
  7. {
  8. return cfg->irq_2_iommu.iommu != NULL;
  9. }
  10. #else
  11. static inline bool irq_remapped(struct irq_cfg *cfg)
  12. {
  13. return false;
  14. }
  15. static inline void irq_remap_modify_chip_defaults(struct irq_chip *chip)
  16. {
  17. }
  18. #endif
  19. #endif /* _ASM_X86_IRQ_REMAPPING_H */