summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_drv.h
diff options
context:
space:
mode:
authorJesse Barnes2013-04-25 21:55:02 +0200
committerDaniel Vetter2013-04-25 22:17:59 +0200
commitb074cec8c652f2d273907a4b35239b4766c894ac (patch)
tree84060aae37f855df66e7422ef8aeeccf64e8fff1 /drivers/gpu/drm/i915/intel_drv.h
parentdrm/i915: factor out GMCH panel fitting code and use for eDP v3 (diff)
downloadkernel-qcow2-linux-b074cec8c652f2d273907a4b35239b4766c894ac.tar.gz
kernel-qcow2-linux-b074cec8c652f2d273907a4b35239b4766c894ac.tar.xz
kernel-qcow2-linux-b074cec8c652f2d273907a4b35239b4766c894ac.zip
drm/i915: move PCH pfit controls into pipe_config
And put the pfit stuff into substructs while we're at it. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Reviewed-by: Mika Kuoppala <mika.kuoppala@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.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index 9f3f71bc2f22..a8c696014967 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -239,7 +239,16 @@ struct intel_crtc_config {
unsigned pixel_multiplier;
/* Panel fitter controls for gen2-gen4 + VLV */
- u32 pfit_control, pfit_pgm_ratios;
+ struct {
+ u32 control;
+ u32 pgm_ratios;
+ } gmch_pfit;
+
+ /* Panel fitter placement and size for Ironlake+ */
+ struct {
+ u32 pos;
+ u32 size;
+ } pch_pfit;
};
struct intel_crtc {
@@ -557,10 +566,9 @@ extern void intel_panel_fini(struct intel_panel *panel);
extern void intel_fixed_panel_mode(struct drm_display_mode *fixed_mode,
struct drm_display_mode *adjusted_mode);
-extern void intel_pch_panel_fitting(struct drm_device *dev,
- int fitting_mode,
- const struct drm_display_mode *mode,
- struct drm_display_mode *adjusted_mode);
+extern void intel_pch_panel_fitting(struct intel_crtc *crtc,
+ struct intel_crtc_config *pipe_config,
+ int fitting_mode);
extern void intel_gmch_panel_fitting(struct intel_crtc *crtc,
struct intel_crtc_config *pipe_config,
int fitting_mode);