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