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