source: rtems/c/src/lib/libcpu/arm/s3c24xx/irq/irq.h @ c193baad

4.104.115
Last change on this file since c193baad was c193baad, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on 04/09/10 at 20:24:57

unify irq data types and code, merge s3c2400/s3c2410 support

  • Property mode set to 100644
File size: 3.1 KB
Line 
1/* irq.h
2 *
3 *  Common file, merged from s3c2400/irq/irq.h and s3c2410/irq/irq.h
4 */
5
6#ifndef _IRQ_H_
7#define _IRQ_H_
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12/*
13 * Include some preprocessor value also used by assember code
14 */
15
16#include <rtems/irq.h>
17#include <rtems.h>
18#include <s3c24xx.h>
19
20extern void default_int_handler(rtems_irq_hdl_param unused);
21/*-------------------------------------------------------------------------+
22| Constants
23+--------------------------------------------------------------------------*/
24
25#ifdef CPU_S3C2400
26  /* possible interrupt sources */
27#define BSP_EINT0             0
28#define BSP_EINT1             1
29#define BSP_EINT2             2
30#define BSP_EINT3             3
31#define BSP_EINT4             4
32#define BSP_EINT5             5
33#define BSP_EINT6             6
34#define BSP_EINT7             7
35#define BSP_INT_TICK          8
36#define BSP_INT_WDT           9
37#define BSP_INT_TIMER0       10
38#define BSP_INT_TIMER1       11
39#define BSP_INT_TIMER2       12
40#define BSP_INT_TIMER3       13
41#define BSP_INT_TIMER4       14
42#define BSP_INT_UERR01       15
43#define _res0                16
44#define BSP_INT_DMA0         17
45#define BSP_INT_DMA1         18
46#define BSP_INT_DMA2         19
47#define BSP_INT_DMA3         20
48#define BSP_INT_MMC          21
49#define BSP_INT_SPI          22
50#define BSP_INT_URXD0        23
51#define BSP_INT_URXD1        24
52#define BSP_INT_USBD         25
53#define BSP_INT_USBH         26
54#define BSP_INT_IIC          27
55#define BSP_INT_UTXD0        28
56#define BSP_INT_UTXD1        29
57#define BSP_INT_RTC          30
58#define BSP_INT_ADC          31
59#define BSP_MAX_INT          32
60
61#elif defined CPU_S3C2410
62  /* possible interrupt sources */
63#define BSP_EINT0             0
64#define BSP_EINT1             1
65#define BSP_EINT2             2
66#define BSP_EINT3             3
67#define BSP_EINT4_7           4
68#define BSP_EINT8_23          5
69#define BSP_nBATT_FLT         7
70#define BSP_INT_TICK          8
71#define BSP_INT_WDT           9
72#define BSP_INT_TIMER0       10
73#define BSP_INT_TIMER1       11
74#define BSP_INT_TIMER2       12
75#define BSP_INT_TIMER3       13
76#define BSP_INT_TIMER4       14
77#define BSP_INT_UART2        15
78#define BSP_INT_LCD          16
79#define BSP_INT_DMA0         17
80#define BSP_INT_DMA1         18
81#define BSP_INT_DMA2         19
82#define BSP_INT_DMA3         20
83#define BSP_INT_SDI          21
84#define BSP_INT_SPI0         22
85#define BSP_INT_UART1        23
86#define BSP_INT_USBD         25
87#define BSP_INT_USBH         26
88#define BSP_INT_IIC          27
89#define BSP_INT_UART0        28
90#define BSP_INT_SPI1         29
91#define BSP_INT_RTC          30
92#define BSP_INT_ADC          31
93#define BSP_MAX_INT          32
94#endif
95
96extern void *bsp_vector_table;
97#define VECTOR_TABLE &bsp_vector_table
98
99/*-------------------------------------------------------------------------+
100| Function Prototypes.
101+--------------------------------------------------------------------------*/
102/*
103 * ------------------ RTEMS Single Irq Handler Mngt Routines ----------------
104 */
105
106/*
107 * function to initialize the interrupt for a specific BSP
108 */
109void BSP_rtems_irq_mngt_init();
110
111
112#ifdef __cplusplus
113}
114#endif
115
116#endif /* _IRQ_H_ */
117/* end of include file */
Note: See TracBrowser for help on using the repository browser.