diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-04-19 18:18:09 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-05-10 16:19:15 -0400 |
commit | 8261b19173b89d86cc3088483595e2879e4976d6 (patch) | |
tree | 8ae61604d984a43f73950c443992b1a636790e61 /drivers/gpu/drm/i915/intel_drv.h | |
parent | be925587570a745944d99042368f72496bc28a70 (diff) |
drm/i915: Don't store temporary load-detect variables in the generic encoder
Keep all the state required for undoing and restoring the previous pipe
configuration together in a single struct passed from
intel_get_load_detect_pipe() to intel_release_load_detect_pipe() rather
than stuffing them inside the common encoder structure.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_drv.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index fa46d329a8ea..3ceb3daeb61f 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h | |||
@@ -140,7 +140,6 @@ struct intel_fbdev { | |||
140 | struct intel_encoder { | 140 | struct intel_encoder { |
141 | struct drm_encoder base; | 141 | struct drm_encoder base; |
142 | int type; | 142 | int type; |
143 | bool load_detect_temp; | ||
144 | bool needs_tv_clock; | 143 | bool needs_tv_clock; |
145 | void (*hot_plug)(struct intel_encoder *); | 144 | void (*hot_plug)(struct intel_encoder *); |
146 | int crtc_mask; | 145 | int crtc_mask; |
@@ -291,13 +290,18 @@ int intel_get_pipe_from_crtc_id(struct drm_device *dev, void *data, | |||
291 | struct drm_file *file_priv); | 290 | struct drm_file *file_priv); |
292 | extern void intel_wait_for_vblank(struct drm_device *dev, int pipe); | 291 | extern void intel_wait_for_vblank(struct drm_device *dev, int pipe); |
293 | extern void intel_wait_for_pipe_off(struct drm_device *dev, int pipe); | 292 | extern void intel_wait_for_pipe_off(struct drm_device *dev, int pipe); |
293 | |||
294 | struct intel_load_detect_pipe { | ||
295 | bool load_detect_temp; | ||
296 | int dpms_mode; | ||
297 | }; | ||
294 | extern bool intel_get_load_detect_pipe(struct intel_encoder *intel_encoder, | 298 | extern bool intel_get_load_detect_pipe(struct intel_encoder *intel_encoder, |
295 | struct drm_connector *connector, | 299 | struct drm_connector *connector, |
296 | struct drm_display_mode *mode, | 300 | struct drm_display_mode *mode, |
297 | int *dpms_mode); | 301 | struct intel_load_detect_pipe *old); |
298 | extern void intel_release_load_detect_pipe(struct intel_encoder *intel_encoder, | 302 | extern void intel_release_load_detect_pipe(struct intel_encoder *intel_encoder, |
299 | struct drm_connector *connector, | 303 | struct drm_connector *connector, |
300 | int dpms_mode); | 304 | struct intel_load_detect_pipe *old); |
301 | 305 | ||
302 | extern struct drm_connector* intel_sdvo_find(struct drm_device *dev, int sdvoB); | 306 | extern struct drm_connector* intel_sdvo_find(struct drm_device *dev, int sdvoB); |
303 | extern int intel_sdvo_supports_hotplug(struct drm_connector *connector); | 307 | extern int intel_sdvo_supports_hotplug(struct drm_connector *connector); |