1 1.1 jmcneill /* $NetBSD: irq.h,v 1.1.1.3 2019/01/22 14:57:01 jmcneill Exp $ */ 2 1.1 jmcneill 3 1.1.1.3 jmcneill /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 4 1.1 jmcneill /* 5 1.1 jmcneill * This header provides constants for most IRQ bindings. 6 1.1 jmcneill * 7 1.1 jmcneill * Most IRQ bindings include a flags cell as part of the IRQ specifier. 8 1.1 jmcneill * In most cases, the format of the flags cell uses the standard values 9 1.1 jmcneill * defined in this header. 10 1.1 jmcneill */ 11 1.1 jmcneill 12 1.1 jmcneill #ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H 13 1.1 jmcneill #define _DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H 14 1.1 jmcneill 15 1.1 jmcneill #define IRQ_TYPE_NONE 0 16 1.1 jmcneill #define IRQ_TYPE_EDGE_RISING 1 17 1.1 jmcneill #define IRQ_TYPE_EDGE_FALLING 2 18 1.1 jmcneill #define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING) 19 1.1 jmcneill #define IRQ_TYPE_LEVEL_HIGH 4 20 1.1 jmcneill #define IRQ_TYPE_LEVEL_LOW 8 21 1.1 jmcneill 22 1.1 jmcneill #endif 23