File: ma1.h

package info (click to toggle)
linux-2.6 2.6.18.dfsg.1-12
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 287,316 kB
  • ctags: 831,064
  • sloc: ansic: 4,700,345; asm: 205,595; makefile: 13,019; perl: 3,208; python: 2,734; yacc: 2,632; sh: 2,301; cpp: 2,107; lex: 1,510; lisp: 218; awk: 99; pascal: 41
file content (50 lines) | stat: -rw-r--r-- 1,512 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
 * include/asm-v850/ma1.h -- V850E/MA1 cpu chip
 *
 *  Copyright (C) 2001,02,03  NEC Electronics Corporation
 *  Copyright (C) 2001,02,03  Miles Bader <miles@gnu.org>
 *
 * This file is subject to the terms and conditions of the GNU General
 * Public License.  See the file COPYING in the main directory of this
 * archive for more details.
 *
 * Written by Miles Bader <miles@gnu.org>
 */

#ifndef __V850_MA1_H__
#define __V850_MA1_H__

/* Inherit more generic details from MA series.  */
#include <asm/ma.h>


#define CPU_MODEL	"v850e/ma1"
#define CPU_MODEL_LONG	"NEC V850E/MA1"


/* Hardware-specific interrupt numbers (in the kernel IRQ namespace).  */
#define IRQ_INTOV(n)	(n)	/* 0-3 */
#define IRQ_INTOV_NUM	4
#define IRQ_INTP(n)	(0x4  + (n)) /* Pnnn (pin) interrupts */
#define IRQ_INTP_NUM	24
#define IRQ_INTCMD(n)	(0x1c + (n)) /* interval timer interrupts 0-3 */
#define IRQ_INTCMD_NUM	4
#define IRQ_INTDMA(n)	(0x20 + (n)) /* DMA interrupts 0-3 */
#define IRQ_INTDMA_NUM	4
#define IRQ_INTCSI(n)	(0x24 + (n)*4)/* CSI 0-2 transmit/receive completion */
#define IRQ_INTCSI_NUM	3
#define IRQ_INTSER(n)	(0x25 + (n)*4) /* UART 0-2 reception error */
#define IRQ_INTSER_NUM	3
#define IRQ_INTSR(n)	(0x26 + (n)*4) /* UART 0-2 reception completion */
#define IRQ_INTSR_NUM	3
#define IRQ_INTST(n)	(0x27 + (n)*4) /* UART 0-2 transmission completion */
#define IRQ_INTST_NUM	3

#define NUM_CPU_IRQS	0x30


/* The MA1 has a UART with 3 channels.  */
#define V850E_UART_NUM_CHANNELS	3


#endif /* __V850_MA1_H__ */