1 /*
2  * Copyright (c) 2021 The Linux Foundation. All rights reserved.
3  * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for
6  * any purpose with or without fee is hereby granted, provided that the
7  * above copyright notice and this permission notice appear in all
8  * copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /**
21  * DOC: i_qdf_irq.h
22  * This file provides OS dependent interrupt API's.
23  */
24 
25 #ifndef _I_QDF_IRQ_H
26 #define _I_QDF_IRQ_H
27 
28 #include <linux/irq.h>
29 #include <linux/irqreturn.h>
30 
31 #define __QDF_IRQ_TYPE_NONE		IRQ_TYPE_NONE
32 #define __QDF_IRQ_TYPE_EDGE_RISING	IRQ_TYPE_EDGE_RISING
33 #define __QDF_IRQ_TYPE_EDGE_FALLING	IRQ_TYPE_EDGE_FALLING
34 #define __QDF_IRQ_TYPE_EDGE_BOTH	IRQ_TYPE_EDGE_BOTH
35 #define __QDF_IRQ_TYPE_LEVEL_HIGH	IRQ_TYPE_LEVEL_HIGH
36 #define __QDF_IRQ_TYPE_LEVEL_LOW	IRQ_TYPE_LEVEL_LOW
37 #define __QDF_IRQ_TYPE_LEVEL_MASK	IRQ_TYPE_LEVEL_MASK
38 #define __QDF_IRQ_TYPE_SENSE_MASK	IRQ_TYPE_SENSE_MASK
39 #define __QDF_IRQ_TYPE_DEFAULT		IRQ_TYPE_DEFAULT
40 #define __QDF_IRQ_TYPE_PROBE		IRQ_TYPE_PROBE
41 #define __QDF_IRQ_LEVEL			IRQ_LEVEL
42 #define __QDF_IRQ_PER_CPU		IRQ_PER_CPU
43 #define __QDF_IRQ_NOPROBE		IRQ_NOPROBE
44 #define __QDF_IRQ_NOREQUEST		IRQ_NOREQUEST
45 #define __QDF_IRQ_NOAUTOEN		IRQ_NOAUTOEN
46 #define __QDF_IRQ_NO_BALANCING		IRQ_NO_BALANCING
47 #define __QDF_IRQ_MOVE_PCNTXT		IRQ_MOVE_PCNTXT
48 #define __QDF_IRQ_NESTED_THREAD		IRQ_NESTED_THREAD
49 #define __QDF_IRQ_NOTHREAD		IRQ_NOTHREAD
50 #define __QDF_IRQ_PER_CPU_DEVID		IRQ_PER_CPU_DEVID
51 #define __QDF_IRQ_IS_POLLED		IRQ_IS_POLLED
52 #define __QDF_IRQ_DISABLE_UNLAZY	IRQ_DISABLE_UNLAZY
53 #define __QDF_IRQF_SHARED		IRQF_SHARED
54 #define __QDF_IRQF_TRIGGER_RISING	IRQF_TRIGGER_RISING
55 #define __QDF_IRQ_NONE			IRQ_NONE
56 #define __QDF_IRQ_HANDLED		IRQ_HANDLED
57 
58 #endif /* _I_QDF_IRQ_H */
59