18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 OR MIT */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * This header provides constants for most IRQ bindings. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Most IRQ bindings include a flags cell as part of the IRQ specifier. 68c2ecf20Sopenharmony_ci * In most cases, the format of the flags cell uses the standard values 78c2ecf20Sopenharmony_ci * defined in this header. 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H 118c2ecf20Sopenharmony_ci#define _DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#define IRQ_TYPE_NONE 0 148c2ecf20Sopenharmony_ci#define IRQ_TYPE_EDGE_RISING 1 158c2ecf20Sopenharmony_ci#define IRQ_TYPE_EDGE_FALLING 2 168c2ecf20Sopenharmony_ci#define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING) 178c2ecf20Sopenharmony_ci#define IRQ_TYPE_LEVEL_HIGH 4 188c2ecf20Sopenharmony_ci#define IRQ_TYPE_LEVEL_LOW 8 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#endif 21