1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __ASM_GENERIC_IRQ_DT_H__
4 #define __ASM_GENERIC_IRQ_DT_H__
5 
6 /*
7  * These defines correspond to the Xen internal representation of the
8  * IRQ types. We choose to make them the same as the existing device
9  * tree definitions for convenience.
10  */
11 #define IRQ_TYPE_NONE           DT_IRQ_TYPE_NONE
12 #define IRQ_TYPE_EDGE_RISING    DT_IRQ_TYPE_EDGE_RISING
13 #define IRQ_TYPE_EDGE_FALLING   DT_IRQ_TYPE_EDGE_FALLING
14 #define IRQ_TYPE_EDGE_BOTH      DT_IRQ_TYPE_EDGE_BOTH
15 #define IRQ_TYPE_LEVEL_HIGH     DT_IRQ_TYPE_LEVEL_HIGH
16 #define IRQ_TYPE_LEVEL_LOW      DT_IRQ_TYPE_LEVEL_LOW
17 #define IRQ_TYPE_LEVEL_MASK     DT_IRQ_TYPE_LEVEL_MASK
18 #define IRQ_TYPE_SENSE_MASK     DT_IRQ_TYPE_SENSE_MASK
19 #define IRQ_TYPE_INVALID        DT_IRQ_TYPE_INVALID
20 
21 #endif /* __ASM_GENERIC_IRQ_DT_H__ */
22