Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 1 | /* |
Alexei Fedorov | 9fe73b2 | 2021-04-23 16:12:11 +0100 | [diff] [blame] | 2 | * Copyright (c) 2019-2021, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: MIT |
| 5 | * |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 6 | * This header provides constants for the ARM GIC. |
| 7 | */ |
| 8 | |
| 9 | #ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H |
| 10 | #define _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H |
| 11 | |
| 12 | /* interrupt specifier cell 0 */ |
| 13 | |
| 14 | #define GIC_SPI 0 |
| 15 | #define GIC_PPI 1 |
| 16 | |
| 17 | #define IRQ_TYPE_NONE 0 |
| 18 | #define IRQ_TYPE_EDGE_RISING 1 |
| 19 | #define IRQ_TYPE_EDGE_FALLING 2 |
| 20 | #define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING) |
| 21 | #define IRQ_TYPE_LEVEL_HIGH 4 |
| 22 | #define IRQ_TYPE_LEVEL_LOW 8 |
| 23 | |
Alexei Fedorov | cb8fef6 | 2021-04-12 12:49:54 +0100 | [diff] [blame] | 24 | /* |
| 25 | * Interrupt specifier cell 2. |
| 26 | */ |
| 27 | #define GIC_CPU_MASK_RAW(x) ((x) << 8) |
| 28 | |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 29 | #endif |