aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_drv.h
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>2015-01-15 07:55:21 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-01-27 03:50:48 -0500
commit5cec258b4f185a5011165099a49757516f90de2b (patch)
treef557d2161ec0c200b046ac636ea2b94aec1d2e0a /drivers/gpu/drm/i915/intel_drv.h
parent96178eeb37298a9452f0c4b04f47fafedc7bab47 (diff)
drm/i915: Rename struct intel_crtc_config to intel_crtc_state
The objective is to make this structure usable with the atomic helpers, so let's start with the rename. Patch generated with coccinelle: @@ @@ -struct intel_crtc_config { +struct intel_crtc_state { ... } @@ @@ -struct intel_crtc_config +struct intel_crtc_state v2: Completely generate the patch with cocci. (Ander) Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@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.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index bd4d5148d27e..9ecac5544fed 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -143,7 +143,7 @@ struct intel_encoder {
143 bool connectors_active; 143 bool connectors_active;
144 void (*hot_plug)(struct intel_encoder *); 144 void (*hot_plug)(struct intel_encoder *);
145 bool (*compute_config)(struct intel_encoder *, 145 bool (*compute_config)(struct intel_encoder *,
146 struct intel_crtc_config *); 146 struct intel_crtc_state *);
147 void (*pre_pll_enable)(struct intel_encoder *); 147 void (*pre_pll_enable)(struct intel_encoder *);
148 void (*pre_enable)(struct intel_encoder *); 148 void (*pre_enable)(struct intel_encoder *);
149 void (*enable)(struct intel_encoder *); 149 void (*enable)(struct intel_encoder *);
@@ -159,7 +159,7 @@ struct intel_encoder {
159 * pre-filled the pipe config. Note that intel_encoder->base.crtc must 159 * pre-filled the pipe config. Note that intel_encoder->base.crtc must
160 * be set correctly before calling this function. */ 160 * be set correctly before calling this function. */
161 void (*get_config)(struct intel_encoder *, 161 void (*get_config)(struct intel_encoder *,
162 struct intel_crtc_config *pipe_config); 162 struct intel_crtc_state *pipe_config);
163 /* 163 /*
164 * Called during system suspend after all pending requests for the 164 * Called during system suspend after all pending requests for the
165 * encoder are flushed (for example for DP AUX transactions) and 165 * encoder are flushed (for example for DP AUX transactions) and
@@ -263,7 +263,7 @@ struct intel_plane_config {
263 u32 base; 263 u32 base;
264}; 264};
265 265
266struct intel_crtc_config { 266struct intel_crtc_state {
267 /** 267 /**
268 * quirks - bitfield with hw state readout quirks 268 * quirks - bitfield with hw state readout quirks
269 * 269 *
@@ -477,8 +477,8 @@ struct intel_crtc {
477 uint32_t cursor_base; 477 uint32_t cursor_base;
478 478
479 struct intel_plane_config plane_config; 479 struct intel_plane_config plane_config;
480 struct intel_crtc_config config; 480 struct intel_crtc_state config;
481 struct intel_crtc_config *new_config; 481 struct intel_crtc_state *new_config;
482 bool new_enabled; 482 bool new_enabled;
483 483
484 /* reset counter value when the last flip was submitted */ 484 /* reset counter value when the last flip was submitted */
@@ -845,11 +845,11 @@ void intel_ddi_prepare_link_retrain(struct drm_encoder *encoder);
845bool intel_ddi_connector_get_hw_state(struct intel_connector *intel_connector); 845bool intel_ddi_connector_get_hw_state(struct intel_connector *intel_connector);
846void intel_ddi_fdi_disable(struct drm_crtc *crtc); 846void intel_ddi_fdi_disable(struct drm_crtc *crtc);
847void intel_ddi_get_config(struct intel_encoder *encoder, 847void intel_ddi_get_config(struct intel_encoder *encoder,
848 struct intel_crtc_config *pipe_config); 848 struct intel_crtc_state *pipe_config);
849 849
850void intel_ddi_init_dp_buf_reg(struct intel_encoder *encoder); 850void intel_ddi_init_dp_buf_reg(struct intel_encoder *encoder);
851void intel_ddi_clock_get(struct intel_encoder *encoder, 851void intel_ddi_clock_get(struct intel_encoder *encoder,
852 struct intel_crtc_config *pipe_config); 852 struct intel_crtc_state *pipe_config);
853void intel_ddi_set_vc_payload_alloc(struct drm_crtc *crtc, bool state); 853void intel_ddi_set_vc_payload_alloc(struct drm_crtc *crtc, bool state);
854 854
855/* intel_frontbuffer.c */ 855/* intel_frontbuffer.c */
@@ -982,11 +982,11 @@ void intel_finish_reset(struct drm_device *dev);
982void hsw_enable_pc8(struct drm_i915_private *dev_priv); 982void hsw_enable_pc8(struct drm_i915_private *dev_priv);
983void hsw_disable_pc8(struct drm_i915_private *dev_priv); 983void hsw_disable_pc8(struct drm_i915_private *dev_priv);
984void intel_dp_get_m_n(struct intel_crtc *crtc, 984void intel_dp_get_m_n(struct intel_crtc *crtc,
985 struct intel_crtc_config *pipe_config); 985 struct intel_crtc_state *pipe_config);
986void intel_dp_set_m_n(struct intel_crtc *crtc); 986void intel_dp_set_m_n(struct intel_crtc *crtc);
987int intel_dotclock_calculate(int link_freq, const struct intel_link_m_n *m_n); 987int intel_dotclock_calculate(int link_freq, const struct intel_link_m_n *m_n);
988void 988void
989ironlake_check_encoder_dotclock(const struct intel_crtc_config *pipe_config, 989ironlake_check_encoder_dotclock(const struct intel_crtc_state *pipe_config,
990 int dotclock); 990 int dotclock);
991bool intel_crtc_active(struct drm_crtc *crtc); 991bool intel_crtc_active(struct drm_crtc *crtc);
992void hsw_enable_ips(struct intel_crtc *crtc); 992void hsw_enable_ips(struct intel_crtc *crtc);
@@ -994,7 +994,7 @@ void hsw_disable_ips(struct intel_crtc *crtc);
994enum intel_display_power_domain 994enum intel_display_power_domain
995intel_display_port_power_domain(struct intel_encoder *intel_encoder); 995intel_display_port_power_domain(struct intel_encoder *intel_encoder);
996void intel_mode_from_pipe_config(struct drm_display_mode *mode, 996void intel_mode_from_pipe_config(struct drm_display_mode *mode,
997 struct intel_crtc_config *pipe_config); 997 struct intel_crtc_state *pipe_config);
998int intel_format_to_fourcc(int format); 998int intel_format_to_fourcc(int format);
999void intel_crtc_wait_for_pending_flips(struct drm_crtc *crtc); 999void intel_crtc_wait_for_pending_flips(struct drm_crtc *crtc);
1000void intel_modeset_preclose(struct drm_device *dev, struct drm_file *file); 1000void intel_modeset_preclose(struct drm_device *dev, struct drm_file *file);
@@ -1011,7 +1011,7 @@ void intel_dp_encoder_destroy(struct drm_encoder *encoder);
1011void intel_dp_check_link_status(struct intel_dp *intel_dp); 1011void intel_dp_check_link_status(struct intel_dp *intel_dp);
1012int intel_dp_sink_crc(struct intel_dp *intel_dp, u8 *crc); 1012int intel_dp_sink_crc(struct intel_dp *intel_dp, u8 *crc);
1013bool intel_dp_compute_config(struct intel_encoder *encoder, 1013bool intel_dp_compute_config(struct intel_encoder *encoder,
1014 struct intel_crtc_config *pipe_config); 1014 struct intel_crtc_state *pipe_config);
1015bool intel_dp_is_edp(struct drm_device *dev, enum port port); 1015bool intel_dp_is_edp(struct drm_device *dev, enum port port);
1016bool intel_dp_hpd_pulse(struct intel_digital_port *intel_dig_port, 1016bool intel_dp_hpd_pulse(struct intel_digital_port *intel_dig_port,
1017 bool long_hpd); 1017 bool long_hpd);
@@ -1091,7 +1091,7 @@ void intel_hdmi_init_connector(struct intel_digital_port *intel_dig_port,
1091 struct intel_connector *intel_connector); 1091 struct intel_connector *intel_connector);
1092struct intel_hdmi *enc_to_intel_hdmi(struct drm_encoder *encoder); 1092struct intel_hdmi *enc_to_intel_hdmi(struct drm_encoder *encoder);
1093bool intel_hdmi_compute_config(struct intel_encoder *encoder, 1093bool intel_hdmi_compute_config(struct intel_encoder *encoder,
1094 struct intel_crtc_config *pipe_config); 1094 struct intel_crtc_state *pipe_config);
1095 1095
1096 1096
1097/* intel_lvds.c */ 1097/* intel_lvds.c */
@@ -1126,10 +1126,10 @@ void intel_panel_fini(struct intel_panel *panel);
1126void intel_fixed_panel_mode(const struct drm_display_mode *fixed_mode, 1126void intel_fixed_panel_mode(const struct drm_display_mode *fixed_mode,
1127 struct drm_display_mode *adjusted_mode); 1127 struct drm_display_mode *adjusted_mode);
1128void intel_pch_panel_fitting(struct intel_crtc *crtc, 1128void intel_pch_panel_fitting(struct intel_crtc *crtc,
1129 struct intel_crtc_config *pipe_config, 1129 struct intel_crtc_state *pipe_config,
1130 int fitting_mode); 1130 int fitting_mode);
1131void intel_gmch_panel_fitting(struct intel_crtc *crtc, 1131void intel_gmch_panel_fitting(struct intel_crtc *crtc,
1132 struct intel_crtc_config *pipe_config, 1132 struct intel_crtc_state *pipe_config,
1133 int fitting_mode); 1133 int fitting_mode);
1134void intel_panel_set_backlight_acpi(struct intel_connector *connector, 1134void intel_panel_set_backlight_acpi(struct intel_connector *connector,
1135 u32 level, u32 max); 1135 u32 level, u32 max);