irq.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 <linux/interrupt.h>
  12. extern unsigned int nr_irq;
  13. #define NO_IRQ (-1)
  14. static inline int irq_canonicalize(int irq)
  15. {
  16. return irq;
  17. }
  18. struct pt_regs;
  19. extern void do_IRQ(struct pt_regs *regs);
  20. /* irq_of_parse_and_map - Parse and Map an interrupt into linux virq space
  21. * @device: Device node of the device whose interrupt is to be mapped
  22. * @index: Index of the interrupt to map
  23. *
  24. * This function is a wrapper that chains of_irq_map_one() and
  25. * irq_create_of_mapping() to make things easier to callers
  26. */
  27. struct device_node;
  28. extern unsigned int irq_of_parse_and_map(struct device_node *dev, int index);
  29. /** FIXME - not implement
  30. * irq_dispose_mapping - Unmap an interrupt
  31. * @virq: linux virq number of the interrupt to unmap
  32. */
  33. static inline void irq_dispose_mapping(unsigned int virq)
  34. {
  35. return;
  36. }
  37. #endif /* _ASM_MICROBLAZE_IRQ_H */