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