aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_drv.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-04-19 18:18:09 -0400
committerKeith Packard <keithp@keithp.com>2011-05-10 16:19:15 -0400
commit8261b19173b89d86cc3088483595e2879e4976d6 (patch)
tree8ae61604d984a43f73950c443992b1a636790e61 /drivers/gpu/drm/i915/intel_drv.h
parentbe925587570a745944d99042368f72496bc28a70 (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.h10
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 {
140struct intel_encoder { 140struct 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);
292extern void intel_wait_for_vblank(struct drm_device *dev, int pipe); 291extern void intel_wait_for_vblank(struct drm_device *dev, int pipe);
293extern void intel_wait_for_pipe_off(struct drm_device *dev, int pipe); 292extern void intel_wait_for_pipe_off(struct drm_device *dev, int pipe);
293
294struct intel_load_detect_pipe {
295 bool load_detect_temp;
296 int dpms_mode;
297};
294extern bool intel_get_load_detect_pipe(struct intel_encoder *intel_encoder, 298extern 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);
298extern void intel_release_load_detect_pipe(struct intel_encoder *intel_encoder, 302extern 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
302extern struct drm_connector* intel_sdvo_find(struct drm_device *dev, int sdvoB); 306extern struct drm_connector* intel_sdvo_find(struct drm_device *dev, int sdvoB);
303extern int intel_sdvo_supports_hotplug(struct drm_connector *connector); 307extern int intel_sdvo_supports_hotplug(struct drm_connector *connector);