18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 OR MIT */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * This header provides constants for the ARM GIC. 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H 78c2ecf20Sopenharmony_ci#define _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#include <dt-bindings/interrupt-controller/irq.h> 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci/* interrupt specifier cell 0 */ 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#define GIC_SPI 0 148c2ecf20Sopenharmony_ci#define GIC_PPI 1 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci/* 178c2ecf20Sopenharmony_ci * Interrupt specifier cell 2. 188c2ecf20Sopenharmony_ci * The flags in irq.h are valid, plus those below. 198c2ecf20Sopenharmony_ci */ 208c2ecf20Sopenharmony_ci#define GIC_CPU_MASK_RAW(x) ((x) << 8) 218c2ecf20Sopenharmony_ci#define GIC_CPU_MASK_SIMPLE(num) GIC_CPU_MASK_RAW((1 << (num)) - 1) 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#endif 24