txx9irq.h 743 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * include/asm-mips/txx9irq.h
  3. * TX39/TX49 interrupt controller definitions.
  4. *
  5. * This file is subject to the terms and conditions of the GNU General Public
  6. * License. See the file "COPYING" in the main directory of this archive
  7. * for more details.
  8. */
  9. #ifndef __ASM_TXX9IRQ_H
  10. #define __ASM_TXX9IRQ_H
  11. #include <irq.h>
  12. #ifdef CONFIG_IRQ_MIPS_CPU
  13. #define TXX9_IRQ_BASE (MIPS_CPU_IRQ_BASE + 8)
  14. #else
  15. #ifdef CONFIG_I8259
  16. #define TXX9_IRQ_BASE (I8259A_IRQ_BASE + 16)
  17. #else
  18. #define TXX9_IRQ_BASE 0
  19. #endif
  20. #endif
  21. #ifdef CONFIG_CPU_TX39XX
  22. #define TXx9_MAX_IR 16
  23. #else
  24. #define TXx9_MAX_IR 32
  25. #endif
  26. void txx9_irq_init(unsigned long baseaddr);
  27. int txx9_irq(void);
  28. int txx9_irq_set_pri(int irc_irq, int new_pri);
  29. #endif /* __ASM_TXX9IRQ_H */