irq.h 936 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef _H8300_IRQ_H_
  2. #define _H8300_IRQ_H_
  3. #include <asm/ptrace.h>
  4. #if defined(CONFIG_CPU_H8300H)
  5. #define NR_IRQS 64
  6. #define EXT_IRQ0 12
  7. #define EXT_IRQ1 13
  8. #define EXT_IRQ2 14
  9. #define EXT_IRQ3 15
  10. #define EXT_IRQ4 16
  11. #define EXT_IRQ5 17
  12. #define EXT_IRQ6 18
  13. #define EXT_IRQ7 19
  14. #define EXT_IRQS 5
  15. #define IER_REGS *(volatile unsigned char *)IER
  16. #endif
  17. #if defined(CONFIG_CPU_H8S)
  18. #define NR_IRQS 128
  19. #define EXT_IRQ0 16
  20. #define EXT_IRQ1 17
  21. #define EXT_IRQ2 18
  22. #define EXT_IRQ3 19
  23. #define EXT_IRQ4 20
  24. #define EXT_IRQ5 21
  25. #define EXT_IRQ6 22
  26. #define EXT_IRQ7 23
  27. #define EXT_IRQ8 24
  28. #define EXT_IRQ9 25
  29. #define EXT_IRQ10 26
  30. #define EXT_IRQ11 27
  31. #define EXT_IRQ12 28
  32. #define EXT_IRQ13 29
  33. #define EXT_IRQ14 30
  34. #define EXT_IRQ15 31
  35. #define EXT_IRQS 15
  36. #define IER_REGS *(volatile unsigned short *)IER
  37. #endif
  38. static __inline__ int irq_canonicalize(int irq)
  39. {
  40. return irq;
  41. }
  42. typedef void (*h8300_vector)(void);
  43. #endif /* _H8300_IRQ_H_ */