irq_64.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef _ASM_IRQ_H
  2. #define _ASM_IRQ_H
  3. /*
  4. * linux/include/asm/irq.h
  5. *
  6. * (C) 1992, 1993 Linus Torvalds, (C) 1997 Ingo Molnar
  7. *
  8. * IRQ/IPI changes taken from work by Thomas Radke
  9. * <tomsoft@informatik.tu-chemnitz.de>
  10. */
  11. #include <asm/apicdef.h>
  12. #define TIMER_IRQ 0
  13. /*
  14. * 16 8259A IRQ's, 208 potential APIC interrupt sources.
  15. * Right now the APIC is mostly only used for SMP.
  16. * 256 vectors is an architectural limit. (we can have
  17. * more than 256 devices theoretically, but they will
  18. * have to use shared interrupts)
  19. * Since vectors 0x00-0x1f are used/reserved for the CPU,
  20. * the usable vector space is 0x20-0xff (224 vectors)
  21. */
  22. /*
  23. * The maximum number of vectors supported by x86_64 processors
  24. * is limited to 256. For processors other than x86_64, NR_VECTORS
  25. * should be changed accordingly.
  26. */
  27. #define NR_VECTORS 256
  28. #define FIRST_SYSTEM_VECTOR 0xef /* duplicated in hw_irq.h */
  29. #if NR_CPUS < MAX_IO_APICS
  30. #define NR_IRQS (NR_VECTORS + (32 * NR_CPUS))
  31. #else
  32. #define NR_IRQS (NR_VECTORS + (32 * MAX_IO_APICS))
  33. #endif
  34. #define NR_IRQ_VECTORS NR_IRQS
  35. static inline int irq_canonicalize(int irq)
  36. {
  37. return ((irq == 2) ? 9 : irq);
  38. }
  39. #define ARCH_HAS_NMI_WATCHDOG /* See include/linux/nmi.h */
  40. #ifdef CONFIG_HOTPLUG_CPU
  41. #include <linux/cpumask.h>
  42. extern void fixup_irqs(cpumask_t map);
  43. #endif
  44. #define __ARCH_HAS_DO_SOFTIRQ 1
  45. #endif /* _ASM_IRQ_H */