source: rtems/c/src/lib/libcpu/arm/at91rm9200/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: 2.2 KB
Line 
1/*
2 * Interrupt handler Header file
3 *
4 * Copyright (c) 2004 by Jay Monkman <jtm@lopingdog.com>
5 *
6 *  The license and distribution terms for this file may be
7 *  found in the file LICENSE in this distribution or at
8 *
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *
12 *  $Id$
13 */
14
15#ifndef __IRQ_H__
16#define __IRQ_H__
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#ifndef __asm__
23
24/*
25 * Include some preprocessor value also used by assember code
26 */
27
28#include <rtems/irq.h>
29#include <rtems.h>
30#include <at91rm9200.h>
31
32extern void default_int_handler(rtems_irq_hdl_param unused);
33/***********************************************************************
34 * Constants
35 **********************************************************************/
36/* possible interrupt sources on the AT91RM9200 */
37#define AT91RM9200_INT_FIQ        0
38#define AT91RM9200_INT_SYSIRQ     1
39#define AT91RM9200_INT_PIOA       2
40#define AT91RM9200_INT_PIOB       3
41#define AT91RM9200_INT_PIOC       4
42#define AT91RM9200_INT_PIOD       5
43#define AT91RM9200_INT_US0        6
44#define AT91RM9200_INT_US1        7
45#define AT91RM9200_INT_US2        8
46#define AT91RM9200_INT_US3        9
47#define AT91RM9200_INT_MCI       10
48#define AT91RM9200_INT_UDP       11
49#define AT91RM9200_INT_TWI       12
50#define AT91RM9200_INT_SPI       13
51#define AT91RM9200_INT_SSC0      14
52#define AT91RM9200_INT_SSC1      15
53#define AT91RM9200_INT_SSC2      16
54#define AT91RM9200_INT_TC0       17
55#define AT91RM9200_INT_TC1       18
56#define AT91RM9200_INT_TC2       19
57#define AT91RM9200_INT_TC3       20
58#define AT91RM9200_INT_TC4       21
59#define AT91RM9200_INT_TC5       22
60#define AT91RM9200_INT_UHP       23
61#define AT91RM9200_INT_EMAC      24
62#define AT91RM9200_INT_IRQ0      25
63#define AT91RM9200_INT_IRQ1      26
64#define AT91RM9200_INT_IRQ2      27
65#define AT91RM9200_INT_IRQ3      28
66#define AT91RM9200_INT_IRQ4      28
67#define AT91RM9200_INT_IRQ5      30
68#define AT91RM9200_INT_IRQ6      31
69#define AT91RM9200_MAX_INT       32
70
71/* vector table used by shared/irq_init.c */
72/* we can treat the AT91RM9200 AIC_SVR_BASE as */
73/* a vector table */
74#define VECTOR_TABLE AIC_SVR_BASE
75
76/*
77 * function to initialize the interrupt for a specific BSP
78 */
79void BSP_rtems_irq_mngt_init();
80
81#endif /* __asm__ */
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif /* __IRQ_H__ */
Note: See TracBrowser for help on using the repository browser.