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