blob: 024a6c6026badd0462d1a5359c942ec4408f90d3 [file] [log] [blame]
Yann Gautier7b7e4bf2019-01-17 19:16:03 +01001/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
2/*
3 * This header provides constants for the ARM GIC.
4 */
5
6#ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H
7#define _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H
8
9/* interrupt specifier cell 0 */
10
11#define GIC_SPI 0
12#define GIC_PPI 1
13
14#define IRQ_TYPE_NONE 0
15#define IRQ_TYPE_EDGE_RISING 1
16#define IRQ_TYPE_EDGE_FALLING 2
17#define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)
18#define IRQ_TYPE_LEVEL_HIGH 4
19#define IRQ_TYPE_LEVEL_LOW 8
20
Alexei Fedorovcb8fef62021-04-12 12:49:54 +010021/*
22 * Interrupt specifier cell 2.
23 */
24#define GIC_CPU_MASK_RAW(x) ((x) << 8)
25
Yann Gautier7b7e4bf2019-01-17 19:16:03 +010026#endif