irq_32.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 <linux/sched.h>
  12. /* include comes from machine specific directory */
  13. #include "irq_vectors.h"
  14. #include <asm/thread_info.h>
  15. static __inline__ int irq_canonicalize(int irq)
  16. {
  17. return ((irq == 2) ? 9 : irq);
  18. }
  19. #ifdef CONFIG_X86_LOCAL_APIC
  20. # define ARCH_HAS_NMI_WATCHDOG /* See include/linux/nmi.h */
  21. #endif
  22. #ifdef CONFIG_4KSTACKS
  23. extern void irq_ctx_init(int cpu);
  24. extern void irq_ctx_exit(int cpu);
  25. # define __ARCH_HAS_DO_SOFTIRQ
  26. #else
  27. # define irq_ctx_init(cpu) do { } while (0)
  28. # define irq_ctx_exit(cpu) do { } while (0)
  29. #endif
  30. #ifdef CONFIG_IRQBALANCE
  31. extern int irqbalance_disable(char *str);
  32. #endif
  33. #ifdef CONFIG_HOTPLUG_CPU
  34. extern void fixup_irqs(cpumask_t map);
  35. #endif
  36. unsigned int do_IRQ(struct pt_regs *regs);
  37. void init_IRQ(void);
  38. void __init native_init_IRQ(void);
  39. #endif /* _ASM_IRQ_H */