summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/arm/s3c24xx/irq/irq.h
blob: 5870f06377d9a3704d11a200b5692229f26c8205 (plain) (blame)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/* irq.h
 *
 *  Common file, merged from s3c2400/irq/irq.h and s3c2410/irq/irq.h
 */

#ifndef _IRQ_H_
#define _IRQ_H_
#ifdef __cplusplus
extern "C" {
#endif

/*
 * Include some preprocessor value also used by assember code
 */

#include <rtems/irq.h>
#include <rtems.h>
#include <s3c24xx.h>

extern void default_int_handler(rtems_irq_hdl_param unused);
/*-------------------------------------------------------------------------+
| Constants
+--------------------------------------------------------------------------*/

#ifdef CPU_S3C2400
  /* possible interrupt sources */
#define BSP_EINT0             0
#define BSP_EINT1             1
#define BSP_EINT2             2
#define BSP_EINT3             3
#define BSP_EINT4             4
#define BSP_EINT5             5
#define BSP_EINT6             6
#define BSP_EINT7             7
#define BSP_INT_TICK          8
#define BSP_INT_WDT           9
#define BSP_INT_TIMER0       10
#define BSP_INT_TIMER1       11
#define BSP_INT_TIMER2       12
#define BSP_INT_TIMER3       13
#define BSP_INT_TIMER4       14
#define BSP_INT_UERR01       15
#define _res0                16
#define BSP_INT_DMA0         17
#define BSP_INT_DMA1         18
#define BSP_INT_DMA2         19
#define BSP_INT_DMA3         20
#define BSP_INT_MMC          21
#define BSP_INT_SPI          22
#define BSP_INT_URXD0        23
#define BSP_INT_URXD1        24
#define BSP_INT_USBD         25
#define BSP_INT_USBH         26
#define BSP_INT_IIC          27
#define BSP_INT_UTXD0        28
#define BSP_INT_UTXD1        29
#define BSP_INT_RTC          30
#define BSP_INT_ADC          31
#define BSP_MAX_INT          32

#elif defined CPU_S3C2410
  /* possible interrupt sources */
#define BSP_EINT0             0
#define BSP_EINT1             1
#define BSP_EINT2             2
#define BSP_EINT3             3
#define BSP_EINT4_7           4
#define BSP_EINT8_23          5
#define BSP_nBATT_FLT         7
#define BSP_INT_TICK          8
#define BSP_INT_WDT           9
#define BSP_INT_TIMER0       10
#define BSP_INT_TIMER1       11
#define BSP_INT_TIMER2       12
#define BSP_INT_TIMER3       13
#define BSP_INT_TIMER4       14
#define BSP_INT_UART2        15
#define BSP_INT_LCD          16
#define BSP_INT_DMA0         17
#define BSP_INT_DMA1         18
#define BSP_INT_DMA2         19
#define BSP_INT_DMA3         20
#define BSP_INT_SDI          21
#define BSP_INT_SPI0         22
#define BSP_INT_UART1        23
#define BSP_INT_USBD         25
#define BSP_INT_USBH         26
#define BSP_INT_IIC          27
#define BSP_INT_UART0        28
#define BSP_INT_SPI1         29
#define BSP_INT_RTC          30
#define BSP_INT_ADC          31
#define BSP_MAX_INT          32
#endif

extern void *bsp_vector_table;
#define VECTOR_TABLE &bsp_vector_table

/*-------------------------------------------------------------------------+
| Function Prototypes.
+--------------------------------------------------------------------------*/
/*
 * ------------------ RTEMS Single Irq Handler Mngt Routines ----------------
 */

/*
 * function to initialize the interrupt for a specific BSP
 */
void BSP_rtems_irq_mngt_init();


#ifdef __cplusplus
}
#endif

#endif /* _IRQ_H_ */
/* end of include file */