1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup bsp_interrupt |
---|
5 | * |
---|
6 | * @brief jmr3904 interrupt definitions. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * COPYRIGHT (c) 1989-2012. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.com/license/LICENSE. |
---|
16 | * |
---|
17 | * $Id$ |
---|
18 | */ |
---|
19 | |
---|
20 | #ifndef LIBBSP_MIPS_JMR3904_IRQ_H |
---|
21 | #define LIBBSP_MIPS_JMR3904_IRQ_H |
---|
22 | |
---|
23 | #ifndef ASM |
---|
24 | #include <rtems.h> |
---|
25 | #include <rtems/irq.h> |
---|
26 | #include <rtems/irq-extension.h> |
---|
27 | #include <rtems/score/mips.h> |
---|
28 | #endif |
---|
29 | |
---|
30 | /** |
---|
31 | * @addtogroup bsp_interrupt |
---|
32 | * |
---|
33 | * @{ |
---|
34 | */ |
---|
35 | |
---|
36 | #define BSP_INTERRUPT_VECTOR_MIN 0 |
---|
37 | |
---|
38 | /* |
---|
39 | * Interrupt Vector Numbers |
---|
40 | * |
---|
41 | * NOTE: Numbers 0-15 directly map to levels on the IRC. |
---|
42 | * Number 16 is "1xxxx" per p. 164 of the TX3904 manual. |
---|
43 | */ |
---|
44 | |
---|
45 | #define TX3904_IRQ_INT1 MIPS_INTERRUPT_BASE+0 |
---|
46 | #define TX3904_IRQ_INT2 MIPS_INTERRUPT_BASE+1 |
---|
47 | #define TX3904_IRQ_INT3 MIPS_INTERRUPT_BASE+2 |
---|
48 | #define TX3904_IRQ_INT4 MIPS_INTERRUPT_BASE+3 |
---|
49 | #define TX3904_IRQ_INT5 MIPS_INTERRUPT_BASE+4 |
---|
50 | #define TX3904_IRQ_INT6 MIPS_INTERRUPT_BASE+5 |
---|
51 | #define TX3904_IRQ_INT7 MIPS_INTERRUPT_BASE+6 |
---|
52 | #define TX3904_IRQ_DMAC3 MIPS_INTERRUPT_BASE+7 |
---|
53 | #define TX3904_IRQ_DMAC2 MIPS_INTERRUPT_BASE+8 |
---|
54 | #define TX3904_IRQ_DMAC1 MIPS_INTERRUPT_BASE+9 |
---|
55 | #define TX3904_IRQ_DMAC0 MIPS_INTERRUPT_BASE+10 |
---|
56 | #define TX3904_IRQ_SIO0 MIPS_INTERRUPT_BASE+11 |
---|
57 | #define TX3904_IRQ_SIO1 MIPS_INTERRUPT_BASE+12 |
---|
58 | #define TX3904_IRQ_TMR0 MIPS_INTERRUPT_BASE+13 |
---|
59 | #define TX3904_IRQ_TMR1 MIPS_INTERRUPT_BASE+14 |
---|
60 | #define TX3904_IRQ_TMR2 MIPS_INTERRUPT_BASE+15 |
---|
61 | #define TX3904_IRQ_INT0 MIPS_INTERRUPT_BASE+16 |
---|
62 | #define TX3904_IRQ_SOFTWARE_1 MIPS_INTERRUPT_BASE+17 |
---|
63 | #define TX3904_IRQ_SOFTWARE_2 MIPS_INTERRUPT_BASE+18 |
---|
64 | #define TX3904_MAXIMUM_VECTORS MIPS_INTERRUPT_BASE+19 |
---|
65 | |
---|
66 | #define BSP_INTERRUPT_VECTOR_MAX TX3904_MAXIMUM_VECTORS |
---|
67 | |
---|
68 | /** @} */ |
---|
69 | |
---|
70 | #endif /* LIBBSP_MIPS_JMR3904_IRQ_H */ |
---|