source: rtems/c/src/lib/libbsp/arm/raspberrypi/include/irq.h @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup raspberrypi_interrupt
5 *
6 * @brief Interrupt definitions.
7 */
8
9/**
10 * Copyright (c) 2013 Alan Cudmore
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *
15 *  http://www.rtems.org/license/LICENSE
16 *
17 */
18
19#ifndef LIBBSP_ARM_RASBPERRYPI_IRQ_H
20#define LIBBSP_ARM_RASPBERRYPI_IRQ_H
21
22#ifndef ASM
23
24#include <rtems.h>
25#include <rtems/irq.h>
26#include <rtems/irq-extension.h>
27
28/**
29 * @defgroup raspberrypi_interrupt Interrrupt Support
30 *
31 * @ingroup arm_raspberrypi
32 *
33 * @brief Interrupt support.
34 */
35
36#define BCM2835_INTC_TOTAL_IRQ       64 + 8
37
38
39#define BCM2835_IRQ_ID_AUX           29
40#define BCM2835_IRQ_ID_SPI_SLAVE     43
41#define BCM2835_IRQ_ID_PWA0          45
42#define BCM2835_IRQ_ID_PWA1          46
43#define BCM2835_IRQ_ID_SMI           48
44#define BCM2835_IRQ_ID_GPIO_0        49
45#define BCM2835_IRQ_ID_GPIO_1        50
46#define BCM2835_IRQ_ID_GPIO_2        51
47#define BCM2835_IRQ_ID_GPIO_3        52
48#define BCM2835_IRQ_ID_I2C           53
49#define BCM2835_IRQ_ID_SPI           54
50#define BCM2835_IRQ_ID_PCM           55
51#define BCM2835_IRQ_ID_UART          57
52
53
54#define BCM2835_IRQ_ID_TIMER_0       64
55#define BCM2835_IRQ_ID_MAILBOX_0     65
56#define BCM2835_IRQ_ID_DOORBELL_0    66
57#define BCM2835_IRQ_ID_DOORBELL_1    67
58#define BCM2835_IRQ_ID_GPU0_HALTED   68
59
60#define BSP_INTERRUPT_VECTOR_MIN    (0)
61#define BSP_INTERRUPT_VECTOR_MAX    (BCM2835_INTC_TOTAL_IRQ - 1)
62
63#define BSP_IRQ_COUNT               (BCM2835_INTC_TOTAL_IRQ)
64
65
66void raspberrypi_set_exception_handler(Arm_symbolic_exception_name exception,
67                                         void (*handler)(void));
68
69#endif /* ASM */
70#endif /* LIBBSP_ARM_RASPBERRYPI_IRQ_H */
Note: See TracBrowser for help on using the repository browser.