source: rtems/c/src/lib/libbsp/arm/edb7312/irq/irq.h @ c193baad

4.104.11
Last change on this file since c193baad was c193baad, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on Apr 9, 2010 at 8:24:57 PM

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

  • Property mode set to 100644
File size: 2.1 KB
Line 
1/*
2 * Cirrus EP7312 Intererrupt handler
3 *
4 * Copyright (c) 2002 by Jay Monkman <jtm@smoothsmoothie.com>
5 *
6 * Copyright (c) 2002 by Charlie Steader <charlies@poliac.com>
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *
11 *  http://www.rtems.com/license/LICENSE.
12 *
13 *
14 *  $Id$
15*/
16
17#ifndef __IRQ_H__
18#define __IRQ_H__
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24  /* define that can be useful (the values are just examples) */
25#define VECTOR_TABLE     0x40
26
27#ifndef __asm__
28
29/*
30 * Include some preprocessor value also used by assember code
31 */
32
33#include <rtems/irq.h>
34#include <rtems.h>
35
36extern void default_int_handler(rtems_irq_hdl_param unused);
37/*-------------------------------------------------------------------------+
38| Constants
39+--------------------------------------------------------------------------*/
40
41  /* enum of the possible interrupt sources */
42typedef unsigned int rtems_irq_number;
43  /* int interrupt status/mask register 1 */
44#define BSP_EXTFIQ     0
45#define BSP_BLINT      1
46#define BSP_WEINT      2
47#define BSP_MCINT      3
48#define BSP_CSINT      4
49#define BSP_EINT1      5
50#define BSP_EINT2      6
51#define BSP_EINT3      7
52#define BSP_TC1OI      8
53#define BSP_TC2OI      9
54#define BSP_RTCMI     10
55#define BSP_TINT      11
56#define BSP_UTXINT1   12
57#define BSP_URXINT1   13
58#define BSP_UMSINT    14
59#define BSP_SSEOTI    15
60 /* int interrupt status/mask register 2 */
61#define BSP_KBDINT    16
62#define BSP_SS2RX     17
63#define BSP_SS2TX     18
64#define BSP_UTXINT2   19
65#define BSP_URXINT2   20
66 /* int interrupt status/mask register 3 */
67#define BSP_DAIINT    21
68#define BSP_MAX_INT   22
69
70/*-------------------------------------------------------------------------+
71| Function Prototypes.
72+--------------------------------------------------------------------------*/
73/*
74 * ------------------- RTEMS Single Irq Handler Mngt Routines ----------------
75 */
76
77/*
78 * function to initialize the interrupt for a specific BSP
79 */
80void BSP_rtems_irq_mngt_init();
81
82
83#endif /* __asm__ */
84
85#ifdef __cplusplus
86}
87#endif
88
89#endif /* __IRQ_H__ */
Note: See TracBrowser for help on using the repository browser.