xref: /netbsd-src/sys/external/gpl2/dts/dist/include/dt-bindings/interrupt-controller/arm-gic.h (revision 796c32c94f6e154afc9de0f63da35c91bb739b45)
1 /*	$NetBSD: arm-gic.h,v 1.1.1.1 2017/06/15 20:14:23 jmcneill 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