irq_vectors.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #ifndef _ASM_IRQ_VECTORS_H
  2. #define _ASM_IRQ_VECTORS_H
  3. /*
  4. * IDT vectors usable for external interrupt sources start
  5. * at 0x20:
  6. */
  7. #define FIRST_EXTERNAL_VECTOR 0x20
  8. #define SYSCALL_VECTOR 0x80
  9. /*
  10. * Vectors 0x20-0x2f are used for ISA interrupts.
  11. */
  12. /*
  13. * Special IRQ vectors used by the SMP architecture, 0xf0-0xff
  14. *
  15. * some of the following vectors are 'rare', they are merged
  16. * into a single vector (CALL_FUNCTION_VECTOR) to save vector space.
  17. * TLB, reschedule and local APIC vectors are performance-critical.
  18. *
  19. * Vectors 0xf0-0xfa are free (reserved for future Linux use).
  20. */
  21. #define SPURIOUS_APIC_VECTOR 0xff
  22. #define ERROR_APIC_VECTOR 0xfe
  23. #define INVALIDATE_TLB_VECTOR 0xfd
  24. #define RESCHEDULE_VECTOR 0xfc
  25. #define CALL_FUNCTION_VECTOR 0xfb
  26. #define THERMAL_APIC_VECTOR 0xf0
  27. /*
  28. * Local APIC timer IRQ vector is on a different priority level,
  29. * to work around the 'lost local interrupt if more than 2 IRQ
  30. * sources per level' errata.
  31. */
  32. #define LOCAL_TIMER_VECTOR 0xef
  33. /*
  34. * First APIC vector available to drivers: (vectors 0x30-0xee)
  35. * we start at 0x31 to spread out vectors evenly between priority
  36. * levels. (0x80 is the syscall vector)
  37. */
  38. #define FIRST_DEVICE_VECTOR 0x31
  39. #define FIRST_SYSTEM_VECTOR 0xef
  40. #define TIMER_IRQ 0
  41. /*
  42. * IRQ definitions
  43. */
  44. #define NR_VECTORS 256
  45. #define NR_IRQS 224
  46. #define NR_IRQ_VECTORS NR_IRQS
  47. #define FPU_IRQ 13
  48. #define FIRST_VM86_IRQ 3
  49. #define LAST_VM86_IRQ 15
  50. #define invalid_vm86_irq(irq) ((irq) < 3 || (irq) > 15)
  51. #endif /* _ASM_IRQ_VECTORS_H */