irq.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_SH_IRQ_H
  3. #define __ASM_SH_IRQ_H
  4. #include <linux/cpumask.h>
  5. #include <asm/machvec.h>
  6. /*
  7. * This is a special IRQ number for indicating that no IRQ has been
  8. * triggered and to simply ignore the IRQ dispatch. This is a special
  9. * case that can happen with IRQ auto-distribution when multiple CPUs
  10. * are woken up and signalled in parallel.
  11. */
  12. #define NO_IRQ_IGNORE ((unsigned int)-1)
  13. /*
  14. * Simple Mask Register Support
  15. */
  16. extern void make_maskreg_irq(unsigned int irq);
  17. extern unsigned short *irq_mask_register;
  18. /*
  19. * PINT IRQs
  20. */
  21. void init_IRQ_pint(void);
  22. void make_imask_irq(unsigned int irq);
  23. static inline int generic_irq_demux(int irq)
  24. {
  25. return irq;
  26. }
  27. #define irq_demux(irq) sh_mv.mv_irq_demux(irq)
  28. void init_IRQ(void);
  29. void migrate_irqs(void);
  30. asmlinkage int do_IRQ(unsigned int irq, struct pt_regs *regs);
  31. #ifdef CONFIG_IRQSTACKS
  32. extern void irq_ctx_init(int cpu);
  33. extern void irq_ctx_exit(int cpu);
  34. #else
  35. # define irq_ctx_init(cpu) do { } while (0)
  36. # define irq_ctx_exit(cpu) do { } while (0)
  37. #endif
  38. #ifdef CONFIG_INTC_BALANCING
  39. extern unsigned int irq_lookup(unsigned int irq);
  40. extern void irq_finish(unsigned int irq);
  41. #else
  42. #define irq_lookup(irq) (irq)
  43. #define irq_finish(irq) do { } while (0)
  44. #endif
  45. #include <asm-generic/irq.h>
  46. #endif /* __ASM_SH_IRQ_H */