ma1.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * include/asm-v850/ma1.h -- V850E/MA1 cpu chip
  3. *
  4. * Copyright (C) 2001,02,03 NEC Electronics Corporation
  5. * Copyright (C) 2001,02,03 Miles Bader <miles@gnu.org>
  6. *
  7. * This file is subject to the terms and conditions of the GNU General
  8. * Public License. See the file COPYING in the main directory of this
  9. * archive for more details.
  10. *
  11. * Written by Miles Bader <miles@gnu.org>
  12. */
  13. #ifndef __V850_MA1_H__
  14. #define __V850_MA1_H__
  15. /* Inherit more generic details from MA series. */
  16. #include <asm/ma.h>
  17. #define CPU_MODEL "v850e/ma1"
  18. #define CPU_MODEL_LONG "NEC V850E/MA1"
  19. /* Hardware-specific interrupt numbers (in the kernel IRQ namespace). */
  20. #define IRQ_INTOV(n) (n) /* 0-3 */
  21. #define IRQ_INTOV_NUM 4
  22. #define IRQ_INTP(n) (0x4 + (n)) /* Pnnn (pin) interrupts */
  23. #define IRQ_INTP_NUM 24
  24. #define IRQ_INTCMD(n) (0x1c + (n)) /* interval timer interrupts 0-3 */
  25. #define IRQ_INTCMD_NUM 4
  26. #define IRQ_INTDMA(n) (0x20 + (n)) /* DMA interrupts 0-3 */
  27. #define IRQ_INTDMA_NUM 4
  28. #define IRQ_INTCSI(n) (0x24 + (n)*4)/* CSI 0-2 transmit/receive completion */
  29. #define IRQ_INTCSI_NUM 3
  30. #define IRQ_INTSER(n) (0x25 + (n)*4) /* UART 0-2 reception error */
  31. #define IRQ_INTSER_NUM 3
  32. #define IRQ_INTSR(n) (0x26 + (n)*4) /* UART 0-2 reception completion */
  33. #define IRQ_INTSR_NUM 3
  34. #define IRQ_INTST(n) (0x27 + (n)*4) /* UART 0-2 transmission completion */
  35. #define IRQ_INTST_NUM 3
  36. #define NUM_CPU_IRQS 0x30
  37. /* The MA1 has a UART with 3 channels. */
  38. #define V850E_UART_NUM_CHANNELS 3
  39. #endif /* __V850_MA1_H__ */