blob: a3923f00d5bdf883bfdf8239ee16323631761fbc [file] [log] [blame]
Chris Kay3dbbbca2021-04-26 11:21:41 +01001/* SPDX-License-Identifier: MIT */
2
Yann Gautierc948f772019-01-17 19:16:03 +01003/*
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/* interrupt specifier cell 0 */
11
12#define GIC_SPI 0
13#define GIC_PPI 1
14
15#define IRQ_TYPE_NONE 0
16#define IRQ_TYPE_EDGE_RISING 1
17#define IRQ_TYPE_EDGE_FALLING 2
18#define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)
19#define IRQ_TYPE_LEVEL_HIGH 4
20#define IRQ_TYPE_LEVEL_LOW 8
21
Alexei Fedorovdfa6c542021-04-12 12:49:54 +010022/*
23 * Interrupt specifier cell 2.
24 */
25#define GIC_CPU_MASK_RAW(x) ((x) << 8)
26
Yann Gautierc948f772019-01-17 19:16:03 +010027#endif