1*8946034aSSimon Glass /*
2*8946034aSSimon Glass  * This header provides constants for the ARM GIC.
3*8946034aSSimon Glass  */
4*8946034aSSimon Glass 
5*8946034aSSimon Glass #ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H
6*8946034aSSimon Glass #define _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H
7*8946034aSSimon Glass 
8*8946034aSSimon Glass #include <dt-bindings/interrupt-controller/irq.h>
9*8946034aSSimon Glass 
10*8946034aSSimon Glass /* interrupt specific cell 0 */
11*8946034aSSimon Glass 
12*8946034aSSimon Glass #define GIC_SPI 0
13*8946034aSSimon Glass #define GIC_PPI 1
14*8946034aSSimon Glass 
15*8946034aSSimon Glass /*
16*8946034aSSimon Glass  * Interrupt specifier cell 2.
17*8946034aSSimon Glass  * The flaggs in irq.h are valid, plus those below.
18*8946034aSSimon Glass  */
19*8946034aSSimon Glass #define GIC_CPU_MASK_RAW(x) ((x) << 8)
20*8946034aSSimon Glass #define GIC_CPU_MASK_SIMPLE(num) GIC_CPU_MASK_RAW((1 << (num)) - 1)
21*8946034aSSimon Glass 
22*8946034aSSimon Glass #endif
23