irq_vectors_limits.h 433 B

123456789101112131415161718192021
  1. #ifndef _ASM_IRQ_VECTORS_LIMITS_H
  2. #define _ASM_IRQ_VECTORS_LIMITS_H
  3. #ifdef CONFIG_PCI_MSI
  4. #define NR_IRQS FIRST_SYSTEM_VECTOR
  5. #define NR_IRQ_VECTORS NR_IRQS
  6. #else
  7. #ifdef CONFIG_X86_IO_APIC
  8. #define NR_IRQS 224
  9. # if (224 >= 32 * NR_CPUS)
  10. # define NR_IRQ_VECTORS NR_IRQS
  11. # else
  12. # define NR_IRQ_VECTORS (32 * NR_CPUS)
  13. # endif
  14. #else
  15. #define NR_IRQS 16
  16. #define NR_IRQ_VECTORS NR_IRQS
  17. #endif
  18. #endif
  19. #endif /* _ASM_IRQ_VECTORS_LIMITS_H */