hw_irq_32.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #ifndef _ASM_HW_IRQ_H
  2. #define _ASM_HW_IRQ_H
  3. /*
  4. * linux/include/asm/hw_irq.h
  5. *
  6. * (C) 1992, 1993 Linus Torvalds, (C) 1997 Ingo Molnar
  7. *
  8. * moved some of the old arch/i386/kernel/irq.h to here. VY
  9. *
  10. * IRQ/IPI changes taken from work by Thomas Radke
  11. * <tomsoft@informatik.tu-chemnitz.de>
  12. */
  13. #include <linux/profile.h>
  14. #include <asm/atomic.h>
  15. #include <asm/irq.h>
  16. #include <asm/sections.h>
  17. #define NMI_VECTOR 0x02
  18. /*
  19. * Various low-level irq details needed by irq.c, process.c,
  20. * time.c, io_apic.c and smp.c
  21. *
  22. * Interrupt entry/exit code at both C and assembly level
  23. */
  24. extern void (*const interrupt[NR_IRQS])(void);
  25. #ifdef CONFIG_SMP
  26. void reschedule_interrupt(void);
  27. void invalidate_interrupt(void);
  28. void call_function_interrupt(void);
  29. void call_function_single_interrupt(void);
  30. #endif
  31. #ifdef CONFIG_X86_LOCAL_APIC
  32. void apic_timer_interrupt(void);
  33. void error_interrupt(void);
  34. void spurious_interrupt(void);
  35. void thermal_interrupt(void);
  36. #define platform_legacy_irq(irq) ((irq) < 16)
  37. #endif
  38. void disable_8259A_irq(unsigned int irq);
  39. void enable_8259A_irq(unsigned int irq);
  40. int i8259A_irq_pending(unsigned int irq);
  41. void make_8259A_irq(unsigned int irq);
  42. void init_8259A(int aeoi);
  43. void send_IPI_self(int vector);
  44. void init_VISWS_APIC_irqs(void);
  45. void setup_IO_APIC(void);
  46. void disable_IO_APIC(void);
  47. void print_IO_APIC(void);
  48. int IO_APIC_get_PCI_irq_vector(int bus, int slot, int fn);
  49. void send_IPI(int dest, int vector);
  50. void setup_ioapic_dest(void);
  51. extern unsigned long io_apic_irqs;
  52. extern atomic_t irq_err_count;
  53. extern atomic_t irq_mis_count;
  54. #define IO_APIC_IRQ(x) (((x) >= 16) || ((1<<(x)) & io_apic_irqs))
  55. #endif /* _ASM_HW_IRQ_H */