cmbvr4133.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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/addrspace.h>
  18. #include <asm/vr41xx/vr41xx.h>
  19. /*
  20. * General-Purpose I/O Pin Number
  21. */
  22. #define CMBVR41XX_INTA_PIN 1
  23. #define CMBVR41XX_INTB_PIN 1
  24. #define CMBVR41XX_INTC_PIN 3
  25. #define CMBVR41XX_INTD_PIN 1
  26. #define CMBVR41XX_INTE_PIN 1
  27. /*
  28. * Interrupt Number
  29. */
  30. #define CMBVR41XX_INTA_IRQ GIU_IRQ(CMBVR41XX_INTA_PIN)
  31. #define CMBVR41XX_INTB_IRQ GIU_IRQ(CMBVR41XX_INTB_PIN)
  32. #define CMBVR41XX_INTC_IRQ GIU_IRQ(CMBVR41XX_INTC_PIN)
  33. #define CMBVR41XX_INTD_IRQ GIU_IRQ(CMBVR41XX_INTD_PIN)
  34. #define CMBVR41XX_INTE_IRQ GIU_IRQ(CMBVR41XX_INTE_PIN)
  35. #define I8259_IRQ_BASE 72
  36. #define I8259_IRQ(x) (I8259_IRQ_BASE + (x))
  37. #define TIMER_IRQ I8259_IRQ(0)
  38. #define KEYBOARD_IRQ I8259_IRQ(1)
  39. #define I8259_SLAVE_IRQ I8259_IRQ(2)
  40. #define UART3_IRQ I8259_IRQ(3)
  41. #define UART1_IRQ I8259_IRQ(4)
  42. #define UART2_IRQ I8259_IRQ(5)
  43. #define FDC_IRQ I8259_IRQ(6)
  44. #define PARPORT_IRQ I8259_IRQ(7)
  45. #define RTC_IRQ I8259_IRQ(8)
  46. #define USB_IRQ I8259_IRQ(9)
  47. #define I8259_INTA_IRQ I8259_IRQ(10)
  48. #define AUDIO_IRQ I8259_IRQ(11)
  49. #define AUX_IRQ I8259_IRQ(12)
  50. #define IDE_PRIMARY_IRQ I8259_IRQ(14)
  51. #define IDE_SECONDARY_IRQ I8259_IRQ(15)
  52. #define I8259_IRQ_LAST IDE_SECONDARY_IRQ
  53. #define RTC_PORT(x) (0xaf000100 + (x))
  54. #define RTC_IO_EXTENT 0x140
  55. #endif /* __NEC_CMBVR4133_H */