aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_drv.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-06-29 16:40:09 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-09-06 01:53:16 -0400
commitef9c3aee60442d1eaf81fbd7b63f256410cc0aa9 (patch)
treeee3c942b4cae46e7e643b7f3490d50f6c34fba4c /drivers/gpu/drm/i915/intel_drv.h
parenteae307a5304f8c0956b8eab75596abba7ad58a5c (diff)
drm/i915: add direct encoder disable/enable infrastructure
Just prep work, not yet put to some use. Note that because we're still using the crtc helper to switch modes (and their complicated way to do partial modesets), we need to call the encoder's disable function unconditionally. But once this is cleaned up we shouldn't call the encoder's disable function unconditionally any more, because then we know that we'll only call it if the encoder is actually enabled. Also note that we then need to be careful about which crtc we're filtering the encoder list on: We want to filter on the crtc of the _current_ mode, not the one we're about to set up. For the enabling side we need to do the same trick. And again, we should be able to simplify this quite a bit when things have settled into place. Also note that this simply does not take cloning into account, so dpms needs to be handled specially for the few outputs where we even bother with it. Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r--drivers/gpu/drm/i915/intel_drv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index 95f635b70b5b..9a5adcc35bde 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -141,6 +141,8 @@ struct intel_encoder {
141 */ 141 */
142 bool cloneable; 142 bool cloneable;
143 void (*hot_plug)(struct intel_encoder *); 143 void (*hot_plug)(struct intel_encoder *);
144 void (*enable)(struct intel_encoder *);
145 void (*disable)(struct intel_encoder *);
144 int crtc_mask; 146 int crtc_mask;
145}; 147};
146 148