irq_handler.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * Copyright 2007-2009 Analog Devices Inc.
  3. *
  4. * Licensed under the GPL-2 or later.
  5. */
  6. #ifndef _IRQ_HANDLER_H
  7. #define _IRQ_HANDLER_H
  8. #include <linux/types.h>
  9. #include <linux/linkage.h>
  10. #include <mach/irq.h>
  11. /* init functions only */
  12. extern int init_arch_irq(void);
  13. extern void init_exception_vectors(void);
  14. extern void program_IAR(void);
  15. #ifdef init_mach_irq
  16. extern void init_mach_irq(void);
  17. #else
  18. # define init_mach_irq()
  19. #endif
  20. /* BASE LEVEL interrupt handler routines */
  21. asmlinkage void evt_exception(void);
  22. asmlinkage void trap(void);
  23. asmlinkage void evt_ivhw(void);
  24. asmlinkage void evt_timer(void);
  25. asmlinkage void evt_nmi(void);
  26. asmlinkage void evt_evt7(void);
  27. asmlinkage void evt_evt8(void);
  28. asmlinkage void evt_evt9(void);
  29. asmlinkage void evt_evt10(void);
  30. asmlinkage void evt_evt11(void);
  31. asmlinkage void evt_evt12(void);
  32. asmlinkage void evt_evt13(void);
  33. asmlinkage void evt_evt14(void);
  34. asmlinkage void evt_soft_int1(void);
  35. asmlinkage void evt_system_call(void);
  36. asmlinkage void init_exception_buff(void);
  37. asmlinkage void trap_c(struct pt_regs *fp);
  38. asmlinkage void ex_replaceable(void);
  39. asmlinkage void early_trap(void);
  40. extern void *ex_table[];
  41. extern void return_from_exception(void);
  42. extern int bfin_request_exception(unsigned int exception, void (*handler)(void));
  43. extern int bfin_free_exception(unsigned int exception, void (*handler)(void));
  44. extern asmlinkage void lower_to_irq14(void);
  45. extern asmlinkage void bfin_return_from_exception(void);
  46. extern asmlinkage void asm_do_IRQ(unsigned int irq, struct pt_regs *regs);
  47. extern int bfin_internal_set_wake(unsigned int irq, unsigned int state);
  48. struct irq_data;
  49. extern void bfin_handle_irq(unsigned irq);
  50. extern void bfin_ack_noop(struct irq_data *);
  51. extern void bfin_internal_mask_irq(unsigned int irq);
  52. extern void bfin_internal_unmask_irq(unsigned int irq);
  53. struct irq_desc;
  54. extern void bfin_demux_mac_status_irq(struct irq_desc *);
  55. extern void bfin_demux_gpio_irq(struct irq_desc *);
  56. #endif