hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h
....@@ -1,13 +1,5 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
2
- *
3
- * This program is free software; you can redistribute it and/or modify
4
- * it under the terms of the GNU General Public License version 2 and
5
- * only version 2 as published by the Free Software Foundation.
6
- *
7
- * This program is distributed in the hope that it will be useful,
8
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- * GNU General Public License for more details.
113 */
124
135 #ifndef _DPU_HW_INTERRUPTS_H
....@@ -19,13 +11,6 @@
1911 #include "dpu_hw_catalog.h"
2012 #include "dpu_hw_util.h"
2113 #include "dpu_hw_mdss.h"
22
-
23
-#define IRQ_SOURCE_MDP BIT(0)
24
-#define IRQ_SOURCE_DSI0 BIT(4)
25
-#define IRQ_SOURCE_DSI1 BIT(5)
26
-#define IRQ_SOURCE_HDMI BIT(8)
27
-#define IRQ_SOURCE_EDP BIT(12)
28
-#define IRQ_SOURCE_MHL BIT(16)
2914
3015 /**
3116 * dpu_intr_type - HW Interrupt Type
....@@ -96,18 +81,6 @@
9681 */
9782 struct dpu_hw_intr_ops {
9883 /**
99
- * set_mask - Programs the given interrupt register with the
100
- * given interrupt mask. Register value will get overwritten.
101
- * @intr: HW interrupt handle
102
- * @reg_off: MDSS HW register offset
103
- * @irqmask: IRQ mask value
104
- */
105
- void (*set_mask)(
106
- struct dpu_hw_intr *intr,
107
- uint32_t reg,
108
- uint32_t irqmask);
109
-
110
- /**
11184 * irq_idx_lookup - Lookup IRQ index on the HW interrupt type
11285 * Used for all irq related ops
11386 * @intr_type: Interrupt type defined in dpu_intr_type
....@@ -177,16 +150,6 @@
177150 struct dpu_hw_intr *intr);
178151
179152 /**
180
- * clear_interrupt_status - Clears HW interrupt status based on given
181
- * lookup IRQ index.
182
- * @intr: HW interrupt handle
183
- * @irq_idx: Lookup irq index return from irq_idx_lookup
184
- */
185
- void (*clear_interrupt_status)(
186
- struct dpu_hw_intr *intr,
187
- int irq_idx);
188
-
189
- /**
190153 * clear_intr_status_nolock() - clears the HW interrupts without lock
191154 * @intr: HW interrupt handle
192155 * @irq_idx: Lookup irq index return from irq_idx_lookup
....@@ -206,21 +169,6 @@
206169 struct dpu_hw_intr *intr,
207170 int irq_idx,
208171 bool clear);
209
-
210
- /**
211
- * get_valid_interrupts - Gets a mask of all valid interrupt sources
212
- * within DPU. These are actually status bits
213
- * within interrupt registers that specify the
214
- * source of the interrupt in IRQs. For example,
215
- * valid interrupt sources can be MDP, DSI,
216
- * HDMI etc.
217
- * @intr: HW interrupt handle
218
- * @mask: Returning the interrupt source MASK
219
- * @return: 0 for success, otherwise failure
220
- */
221
- int (*get_valid_interrupts)(
222
- struct dpu_hw_intr *intr,
223
- uint32_t *mask);
224172 };
225173
226174 /**
....@@ -239,6 +187,7 @@
239187 u32 *save_irq_status;
240188 u32 irq_idx_tbl_size;
241189 spinlock_t irq_lock;
190
+ unsigned long irq_mask;
242191 };
243192
244193 /**