xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/interrupt-controller/irq.h (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0 OR MIT */
2*c66ec88fSEmmanuel Vadot /*
3*c66ec88fSEmmanuel Vadot  * This header provides constants for most IRQ bindings.
4*c66ec88fSEmmanuel Vadot  *
5*c66ec88fSEmmanuel Vadot  * Most IRQ bindings include a flags cell as part of the IRQ specifier.
6*c66ec88fSEmmanuel Vadot  * In most cases, the format of the flags cell uses the standard values
7*c66ec88fSEmmanuel Vadot  * defined in this header.
8*c66ec88fSEmmanuel Vadot  */
9*c66ec88fSEmmanuel Vadot 
10*c66ec88fSEmmanuel Vadot #ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H
11*c66ec88fSEmmanuel Vadot #define _DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H
12*c66ec88fSEmmanuel Vadot 
13*c66ec88fSEmmanuel Vadot #define IRQ_TYPE_NONE		0
14*c66ec88fSEmmanuel Vadot #define IRQ_TYPE_EDGE_RISING	1
15*c66ec88fSEmmanuel Vadot #define IRQ_TYPE_EDGE_FALLING	2
16*c66ec88fSEmmanuel Vadot #define IRQ_TYPE_EDGE_BOTH	(IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)
17*c66ec88fSEmmanuel Vadot #define IRQ_TYPE_LEVEL_HIGH	4
18*c66ec88fSEmmanuel Vadot #define IRQ_TYPE_LEVEL_LOW	8
19*c66ec88fSEmmanuel Vadot 
20*c66ec88fSEmmanuel Vadot #endif
21