irq.h 960 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_IA64_IRQ_H
  3. #define _ASM_IA64_IRQ_H
  4. /*
  5. * Copyright (C) 1999-2000, 2002 Hewlett-Packard Co
  6. * David Mosberger-Tang <[email protected]>
  7. * Stephane Eranian <[email protected]>
  8. *
  9. * 11/24/98 S.Eranian updated TIMER_IRQ and irq_canonicalize
  10. * 01/20/99 S.Eranian added keyboard interrupt
  11. * 02/29/00 D.Mosberger moved most things into hw_irq.h
  12. */
  13. #include <linux/types.h>
  14. #include <linux/cpumask.h>
  15. #include <asm/native/irq.h>
  16. #define NR_IRQS IA64_NATIVE_NR_IRQS
  17. static __inline__ int
  18. irq_canonicalize (int irq)
  19. {
  20. /*
  21. * We do the legacy thing here of pretending that irqs < 16
  22. * are 8259 irqs. This really shouldn't be necessary at all,
  23. * but we keep it here as serial.c still uses it...
  24. */
  25. return ((irq == 2) ? 9 : irq);
  26. }
  27. extern void set_irq_affinity_info (unsigned int irq, int dest, int redir);
  28. int create_irq(void);
  29. void destroy_irq(unsigned int irq);
  30. #endif /* _ASM_IA64_IRQ_H */