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: qdf_irq.h
22  * This file abstracts interrupt related API's.
23  */
24 
25 #ifndef __QDF_IRQ_H
26 #define __QDF_IRQ_H
27 
28 #include "i_qdf_irq.h"
29 
30 #define QDF_IRQ_TYPE_NONE		__QDF_IRQ_TYPE_NONE
31 #define QDF_IRQ_TYPE_EDGE_RISING	__QDF_IRQ_TYPE_EDGE_RISING
32 #define QDF_IRQ_TYPE_EDGE_FALLING	__QDF_IRQ_TYPE_EDGE_FALLING
33 #define QDF_IRQ_TYPE_EDGE_BOTH		__QDF_IRQ_TYPE_EDGE_BOTH
34 #define QDF_IRQ_TYPE_LEVEL_HIGH		__QDF_IRQ_TYPE_LEVEL_HIGH
35 #define QDF_IRQ_TYPE_LEVEL_LOW		__QDF_IRQ_TYPE_LEVEL_LOW
36 #define QDF_IRQ_TYPE_LEVEL_MASK		__QDF_IRQ_TYPE_LEVEL_MASK
37 #define QDF_IRQ_TYPE_SENSE_MASK		__QDF_IRQ_TYPE_SENSE_MASK
38 #define QDF_IRQ_TYPE_DEFAULT		__QDF_IRQ_TYPE_DEFAULT
39 #define QDF_IRQ_TYPE_PROBE		__QDF_IRQ_TYPE_PROBE
40 #define QDF_IRQ_LEVEL			__QDF_IRQ_LEVEL
41 #define QDF_IRQ_PER_CPU			__QDF_IRQ_PER_CPU
42 #define QDF_IRQ_NOPROBE			__QDF_IRQ_NOPROBE
43 #define QDF_IRQ_NOREQUEST		__QDF_IRQ_NOREQUEST
44 #define QDF_IRQ_NOAUTOEN		__QDF_IRQ_NOAUTOEN
45 #define QDF_IRQ_NO_BALANCING		__QDF_IRQ_NO_BALANCING
46 #define QDF_IRQ_MOVE_PCNTXT		__QDF_IRQ_MOVE_PCNTXT
47 #define QDF_IRQ_NESTED_THREAD		__QDF_IRQ_NESTED_THREAD
48 #define QDF_IRQ_NOTHREAD		__QDF_IRQ_NOTHREAD
49 #define QDF_IRQ_PER_CPU_DEVID		__QDF_IRQ_PER_CPU_DEVID
50 #define QDF_IRQ_IS_POLLED		__QDF_IRQ_IS_POLLED
51 #define QDF_IRQ_DISABLE_UNLAZY		__QDF_IRQ_DISABLE_UNLAZY
52 
53 #define QDF_IRQF_SHARED			__QDF_IRQF_SHARED
54 #define QDF_IRQF_TRIGGER_RISING		__QDF_IRQF_TRIGGER_RISING
55 #define QDF_IRQ_NONE			__QDF_IRQ_NONE
56 #define QDF_IRQ_HANDLED			__QDF_IRQ_HANDLED
57 
58 #endif /* __QDF_IRQ_H */
59