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