|
11 | 11 | #include "i915_reg.h"
|
12 | 12 |
|
13 | 13 | struct drm_i915_private;
|
| 14 | +struct i915_power_well; |
14 | 15 | struct intel_encoder;
|
15 | 16 |
|
16 | 17 | enum intel_display_power_domain {
|
@@ -155,100 +156,6 @@ enum i915_power_well_id {
|
155 | 156 | ((tran) == TRANSCODER_EDP ? POWER_DOMAIN_TRANSCODER_EDP : \
|
156 | 157 | (tran) + POWER_DOMAIN_TRANSCODER_A)
|
157 | 158 |
|
158 |
| -struct i915_power_well; |
159 |
| - |
160 |
| -struct i915_power_well_ops { |
161 |
| - /* |
162 |
| - * Synchronize the well's hw state to match the current sw state, for |
163 |
| - * example enable/disable it based on the current refcount. Called |
164 |
| - * during driver init and resume time, possibly after first calling |
165 |
| - * the enable/disable handlers. |
166 |
| - */ |
167 |
| - void (*sync_hw)(struct drm_i915_private *dev_priv, |
168 |
| - struct i915_power_well *power_well); |
169 |
| - /* |
170 |
| - * Enable the well and resources that depend on it (for example |
171 |
| - * interrupts located on the well). Called after the 0->1 refcount |
172 |
| - * transition. |
173 |
| - */ |
174 |
| - void (*enable)(struct drm_i915_private *dev_priv, |
175 |
| - struct i915_power_well *power_well); |
176 |
| - /* |
177 |
| - * Disable the well and resources that depend on it. Called after |
178 |
| - * the 1->0 refcount transition. |
179 |
| - */ |
180 |
| - void (*disable)(struct drm_i915_private *dev_priv, |
181 |
| - struct i915_power_well *power_well); |
182 |
| - /* Returns the hw enabled state. */ |
183 |
| - bool (*is_enabled)(struct drm_i915_private *dev_priv, |
184 |
| - struct i915_power_well *power_well); |
185 |
| -}; |
186 |
| - |
187 |
| -struct i915_power_well_regs { |
188 |
| - i915_reg_t bios; |
189 |
| - i915_reg_t driver; |
190 |
| - i915_reg_t kvmr; |
191 |
| - i915_reg_t debug; |
192 |
| -}; |
193 |
| - |
194 |
| -/* Power well structure for haswell */ |
195 |
| -struct i915_power_well_desc { |
196 |
| - const char *name; |
197 |
| - bool always_on; |
198 |
| - u64 domains; |
199 |
| - /* unique identifier for this power well */ |
200 |
| - enum i915_power_well_id id; |
201 |
| - /* |
202 |
| - * Arbitraty data associated with this power well. Platform and power |
203 |
| - * well specific. |
204 |
| - */ |
205 |
| - union { |
206 |
| - struct { |
207 |
| - /* |
208 |
| - * request/status flag index in the PUNIT power well |
209 |
| - * control/status registers. |
210 |
| - */ |
211 |
| - u8 idx; |
212 |
| - } vlv; |
213 |
| - struct { |
214 |
| - enum dpio_phy phy; |
215 |
| - } bxt; |
216 |
| - struct { |
217 |
| - const struct i915_power_well_regs *regs; |
218 |
| - /* |
219 |
| - * request/status flag index in the power well |
220 |
| - * constrol/status registers. |
221 |
| - */ |
222 |
| - u8 idx; |
223 |
| - /* Mask of pipes whose IRQ logic is backed by the pw */ |
224 |
| - u8 irq_pipe_mask; |
225 |
| - /* |
226 |
| - * Instead of waiting for the status bit to ack enables, |
227 |
| - * just wait a specific amount of time and then consider |
228 |
| - * the well enabled. |
229 |
| - */ |
230 |
| - u16 fixed_enable_delay; |
231 |
| - /* The pw is backing the VGA functionality */ |
232 |
| - bool has_vga:1; |
233 |
| - bool has_fuses:1; |
234 |
| - /* |
235 |
| - * The pw is for an ICL+ TypeC PHY port in |
236 |
| - * Thunderbolt mode. |
237 |
| - */ |
238 |
| - bool is_tc_tbt:1; |
239 |
| - } hsw; |
240 |
| - }; |
241 |
| - const struct i915_power_well_ops *ops; |
242 |
| -}; |
243 |
| - |
244 |
| -struct i915_power_well { |
245 |
| - const struct i915_power_well_desc *desc; |
246 |
| - /* power well enable/disable usage count */ |
247 |
| - int count; |
248 |
| - /* cached hw enabled state */ |
249 |
| - bool hw_enabled; |
250 |
| -}; |
251 |
| - |
252 | 159 | struct i915_power_domains {
|
253 | 160 | /*
|
254 | 161 | * Power wells needed for initialization at driver init and suspend
|
|
0 commit comments