irq.h 1001 B

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