1 /* $NetBSD: arm-gic.h,v 1.1.1.1.6.2 2017/08/28 17:53:02 skrll Exp $ */ 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 #include <dt-bindings/interrupt-controller/irq.h> 11 12 /* interrupt specifier cell 0 */ 13 14 #define GIC_SPI 0 15 #define GIC_PPI 1 16 17 /* 18 * Interrupt specifier cell 2. 19 * The flags in irq.h are valid, plus those below. 20 */ 21 #define GIC_CPU_MASK_RAW(x) ((x) << 8) 22 #define GIC_CPU_MASK_SIMPLE(num) GIC_CPU_MASK_RAW((1 << (num)) - 1) 23 24 #endif 25