aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_drv.h
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni.dodonov@intel.com>2012-04-18 14:29:25 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-04-18 16:08:59 -0400
commit6f1d69b04fcd7ba16791165e8287d95e88bef848 (patch)
treefcfe2e587ec679441cde560d5a281fa61f412427 /drivers/gpu/drm/i915/intel_drv.h
parentdde18883def89af28bd0c01aff3c7962b82dda18 (diff)
drm/i915: move clock gating functionality into intel_pm module
This moves the clock gating-related functions into intel_pm module. Also, please note that we do change the function type from static to non-static in this patch for the move, to prevent breaking bisecting with non-working intermediate commit. Those are returned back to static form in the following patch which setups a generic PM initialization function, which was split into a different one to simplify review. v2: rebase on top of latest drm-intel-next-queued to incorporate all the changes that went there meanwhile. Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org> Acked-by: Ben Widawsky <benjamin.widawsky@intel.com> Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com> 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.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index c87f29a2aeba..771075cedefa 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -339,6 +339,8 @@ extern bool intel_dpd_is_edp(struct drm_device *dev);
339extern void intel_edp_link_config(struct intel_encoder *, int *, int *); 339extern void intel_edp_link_config(struct intel_encoder *, int *, int *);
340extern bool intel_encoder_is_pch_edp(struct drm_encoder *encoder); 340extern bool intel_encoder_is_pch_edp(struct drm_encoder *encoder);
341extern int intel_plane_init(struct drm_device *dev, enum pipe pipe); 341extern int intel_plane_init(struct drm_device *dev, enum pipe pipe);
342extern void intel_flush_display_plane(struct drm_i915_private *dev_priv,
343 enum plane plane);
342 344
343/* intel_panel.c */ 345/* intel_panel.c */
344extern void intel_fixed_panel_mode(struct drm_display_mode *fixed_mode, 346extern void intel_fixed_panel_mode(struct drm_display_mode *fixed_mode,
@@ -490,4 +492,18 @@ extern int i85x_get_fifo_size(struct drm_device *dev, int plane);
490extern int i845_get_fifo_size(struct drm_device *dev, int plane); 492extern int i845_get_fifo_size(struct drm_device *dev, int plane);
491extern int i830_get_fifo_size(struct drm_device *dev, int plane); 493extern int i830_get_fifo_size(struct drm_device *dev, int plane);
492 494
495/* Clock gating */
496extern void ironlake_init_clock_gating(struct drm_device *dev);
497extern void gen6_init_clock_gating(struct drm_device *dev);
498extern void ivybridge_init_clock_gating(struct drm_device *dev);
499extern void valleyview_init_clock_gating(struct drm_device *dev);
500extern void g4x_init_clock_gating(struct drm_device *dev);
501extern void crestline_init_clock_gating(struct drm_device *dev);
502extern void broadwater_init_clock_gating(struct drm_device *dev);
503extern void gen3_init_clock_gating(struct drm_device *dev);
504extern void i85x_init_clock_gating(struct drm_device *dev);
505extern void i830_init_clock_gating(struct drm_device *dev);
506extern void ibx_init_clock_gating(struct drm_device *dev);
507extern void cpt_init_clock_gating(struct drm_device *dev);
508
493#endif /* __INTEL_DRV_H__ */ 509#endif /* __INTEL_DRV_H__ */