source: rtems/bsps/arm/xilinx-zynq/include/bsp/irq.h @ f8ad5bb2

Last change on this file since f8ad5bb2 was f8ad5bb2, checked in by Kinsey Moore <kinsey.moore@…>, on 08/28/20 at 03:13:47

bsps: Break out AArch32 GICv3 support

This breaks out AArch32-specific code so that the shared GICv3 code can
be reused by other architectures.

  • Property mode set to 100644
File size: 3.6 KB
Line 
1/**
2 * @file
3 * @ingroup zynq_interrupt
4 * @brief Interrupt definitions.
5 */
6
7/*
8 * SPDX-License-Identifier: BSD-2-Clause
9 *
10 * Copyright (C) 2013 embedded brains GmbH
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright
16 *    notice, this list of conditions and the following disclaimer.
17 * 2. Redistributions in binary form must reproduce the above copyright
18 *    notice, this list of conditions and the following disclaimer in the
19 *    documentation and/or other materials provided with the distribution.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
25 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
32 */
33
34#ifndef LIBBSP_ARM_XILINX_ZYNQ_IRQ_H
35#define LIBBSP_ARM_XILINX_ZYNQ_IRQ_H
36
37#ifndef ASM
38
39#include <rtems/irq.h>
40#include <rtems/irq-extension.h>
41
42#include <bsp/arm-a9mpcore-irq.h>
43#include <dev/irq/arm-gic-irq.h>
44
45#ifdef __cplusplus
46extern "C" {
47#endif /* __cplusplus */
48
49/**
50 * @defgroup zynq_interrupt Interrupt Support
51 * @ingroup RTEMSBSPsARMZynq
52 * @brief Interrupt Support
53 * @{
54 */
55
56#define ZYNQ_IRQ_CPU_0 32
57#define ZYNQ_IRQ_CPU_1 33
58#define ZYNQ_IRQ_L2_CACHE 34
59#define ZYNQ_IRQ_OCM 35
60#define ZYNQ_IRQ_PMU_0 37
61#define ZYNQ_IRQ_PMU_1 38
62#define ZYNQ_IRQ_XADC 39
63#define ZYNQ_IRQ_DVI 40
64#define ZYNQ_IRQ_SWDT 41
65#define ZYNQ_IRQ_TTC_0_0 42
66#define ZYNQ_IRQ_TTC_1_0 43
67#define ZYNQ_IRQ_TTC_2_0 44
68#define ZYNQ_IRQ_DMAC_ABORT 45
69#define ZYNQ_IRQ_DMAC_0 46
70#define ZYNQ_IRQ_DMAC_1 47
71#define ZYNQ_IRQ_DMAC_2 48
72#define ZYNQ_IRQ_DMAC_3 49
73#define ZYNQ_IRQ_SMC 50
74#define ZYNQ_IRQ_QUAD_SPI 51
75#define ZYNQ_IRQ_GPIO 52
76#define ZYNQ_IRQ_USB_0 53
77#define ZYNQ_IRQ_ETHERNET_0 54
78#define ZYNQ_IRQ_ETHERNET_0_WAKEUP 55
79#define ZYNQ_IRQ_SDIO_0 56
80#define ZYNQ_IRQ_I2C_0 57
81#define ZYNQ_IRQ_SPI_0 58
82#define ZYNQ_IRQ_UART_0 59
83#define ZYNQ_IRQ_CAN_0 60
84#define ZYNQ_IRQ_FPGA_0 61
85#define ZYNQ_IRQ_FPGA_1 62
86#define ZYNQ_IRQ_FPGA_2 63
87#define ZYNQ_IRQ_FPGA_3 64
88#define ZYNQ_IRQ_FPGA_4 65
89#define ZYNQ_IRQ_FPGA_5 66
90#define ZYNQ_IRQ_FPGA_6 67
91#define ZYNQ_IRQ_FPGA_7 68
92#define ZYNQ_IRQ_TTC_0_1 69
93#define ZYNQ_IRQ_TTC_1_1 70
94#define ZYNQ_IRQ_TTC_2_1 71
95#define ZYNQ_IRQ_DMAC_4 72
96#define ZYNQ_IRQ_DMAC_5 73
97#define ZYNQ_IRQ_DMAC_6 74
98#define ZYNQ_IRQ_DMAC_7 75
99#define ZYNQ_IRQ_USB_1 76
100#define ZYNQ_IRQ_ETHERNET_1 77
101#define ZYNQ_IRQ_ETHERNET_1_WAKEUP 78
102#define ZYNQ_IRQ_SDIO_1 79
103#define ZYNQ_IRQ_I2C_1 80
104#define ZYNQ_IRQ_SPI_1 81
105#define ZYNQ_IRQ_UART_1 82
106#define ZYNQ_IRQ_CAN_1 83
107#define ZYNQ_IRQ_FPGA_8 84
108#define ZYNQ_IRQ_FPGA_9 85
109#define ZYNQ_IRQ_FPGA_10 86
110#define ZYNQ_IRQ_FPGA_11 87
111#define ZYNQ_IRQ_FPGA_12 88
112#define ZYNQ_IRQ_FPGA_13 89
113#define ZYNQ_IRQ_FPGA_14 90
114#define ZYNQ_IRQ_FPGA_15 91
115#define ZYNQ_IRQ_PARITY 92
116
117#define BSP_INTERRUPT_VECTOR_MIN 0
118#define BSP_INTERRUPT_VECTOR_MAX 92
119
120/** @} */
121
122#ifdef __cplusplus
123}
124#endif /* __cplusplus */
125
126#endif /* ASM */
127
128#endif /* LIBBSP_ARM_XILINX_ZYNQ_IRQ_H */
Note: See TracBrowser for help on using the repository browser.