irq.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright (C) 2006 Atmark Techno, Inc.
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. */
  8. #ifndef _ASM_MICROBLAZE_IRQ_H
  9. #define _ASM_MICROBLAZE_IRQ_H
  10. #define NR_IRQS 32
  11. #include <asm-generic/irq.h>
  12. #include <linux/interrupt.h>
  13. extern unsigned int nr_irq;
  14. #define NO_IRQ (-1)
  15. struct pt_regs;
  16. extern void do_IRQ(struct pt_regs *regs);
  17. /* irq_of_parse_and_map - Parse and Map an interrupt into linux virq space
  18. * @device: Device node of the device whose interrupt is to be mapped
  19. * @index: Index of the interrupt to map
  20. *
  21. * This function is a wrapper that chains of_irq_map_one() and
  22. * irq_create_of_mapping() to make things easier to callers
  23. */
  24. struct device_node;
  25. extern unsigned int irq_of_parse_and_map(struct device_node *dev, int index);
  26. /** FIXME - not implement
  27. * irq_dispose_mapping - Unmap an interrupt
  28. * @virq: linux virq number of the interrupt to unmap
  29. */
  30. static inline void irq_dispose_mapping(unsigned int virq)
  31. {
  32. return;
  33. }
  34. #endif /* _ASM_MICROBLAZE_IRQ_H */