xref: /rk3399_ARM-atf/include/dt-bindings/interrupt-controller/arm-gic.h (revision dfa6c540713ba546da65fe179ec1ef0fc1b1f7f5)
1 /* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
2 /*
3  * This header provides constants for the ARM GIC.
4  */
5 
6 #ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H
7 #define _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H
8 
9 /* interrupt specifier cell 0 */
10 
11 #define GIC_SPI 0
12 #define GIC_PPI 1
13 
14 #define IRQ_TYPE_NONE		0
15 #define IRQ_TYPE_EDGE_RISING	1
16 #define IRQ_TYPE_EDGE_FALLING	2
17 #define IRQ_TYPE_EDGE_BOTH	(IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)
18 #define IRQ_TYPE_LEVEL_HIGH	4
19 #define IRQ_TYPE_LEVEL_LOW	8
20 
21 /*
22  * Interrupt specifier cell 2.
23  */
24 #define GIC_CPU_MASK_RAW(x) ((x) << 8)
25 
26 #endif
27