cmbvr4133.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * include/asm-mips/vr41xx/cmbvr4133.h
  3. *
  4. * Include file for NEC CMB-VR4133.
  5. *
  6. * Author: Yoichi Yuasa <yyuasa@mvista.com, or source@mvista.com> and
  7. * Jun Sun <jsun@mvista.com, or source@mvista.com> and
  8. * Alex Sapkov <asapkov@ru.mvista.com>
  9. *
  10. * 2002-2004 (c) MontaVista, Software, Inc. This file is licensed under
  11. * the terms of the GNU General Public License version 2. This program
  12. * is licensed "as is" without any warranty of any kind, whether express
  13. * or implied.
  14. */
  15. #ifndef __NEC_CMBVR4133_H
  16. #define __NEC_CMBVR4133_H
  17. #include <asm/vr41xx/irq.h>
  18. /*
  19. * General-Purpose I/O Pin Number
  20. */
  21. #define CMBVR41XX_INTA_PIN 1
  22. #define CMBVR41XX_INTB_PIN 1
  23. #define CMBVR41XX_INTC_PIN 3
  24. #define CMBVR41XX_INTD_PIN 1
  25. #define CMBVR41XX_INTE_PIN 1
  26. /*
  27. * Interrupt Number
  28. */
  29. #define CMBVR41XX_INTA_IRQ GIU_IRQ(CMBVR41XX_INTA_PIN)
  30. #define CMBVR41XX_INTB_IRQ GIU_IRQ(CMBVR41XX_INTB_PIN)
  31. #define CMBVR41XX_INTC_IRQ GIU_IRQ(CMBVR41XX_INTC_PIN)
  32. #define CMBVR41XX_INTD_IRQ GIU_IRQ(CMBVR41XX_INTD_PIN)
  33. #define CMBVR41XX_INTE_IRQ GIU_IRQ(CMBVR41XX_INTE_PIN)
  34. #define I8259_IRQ_BASE 72
  35. #define I8259_IRQ(x) (I8259_IRQ_BASE + (x))
  36. #define TIMER_IRQ I8259_IRQ(0)
  37. #define KEYBOARD_IRQ I8259_IRQ(1)
  38. #define I8259_SLAVE_IRQ I8259_IRQ(2)
  39. #define UART3_IRQ I8259_IRQ(3)
  40. #define UART1_IRQ I8259_IRQ(4)
  41. #define UART2_IRQ I8259_IRQ(5)
  42. #define FDC_IRQ I8259_IRQ(6)
  43. #define PARPORT_IRQ I8259_IRQ(7)
  44. #define RTC_IRQ I8259_IRQ(8)
  45. #define USB_IRQ I8259_IRQ(9)
  46. #define I8259_INTA_IRQ I8259_IRQ(10)
  47. #define AUDIO_IRQ I8259_IRQ(11)
  48. #define AUX_IRQ I8259_IRQ(12)
  49. #define IDE_PRIMARY_IRQ I8259_IRQ(14)
  50. #define IDE_SECONDARY_IRQ I8259_IRQ(15)
  51. #define I8259_IRQ_LAST IDE_SECONDARY_IRQ
  52. #endif /* __NEC_CMBVR4133_H */