Commit 89ac34c1 authored by Dave Airlie's avatar Dave Airlie Committed by Jani Nikula

drm/i915: split cdclk functions from display vtable.

This moves all the cdclk related functions into their own vtable.
Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/591b7b6a79c4ab644a161ae00b7d630b3ef16434.1632869550.git.jani.nikula@intel.com
parent 7b75709a
This diff is collapsed.
...@@ -373,7 +373,7 @@ struct intel_audio_funcs { ...@@ -373,7 +373,7 @@ struct intel_audio_funcs {
const struct drm_connector_state *old_conn_state); const struct drm_connector_state *old_conn_state);
}; };
struct drm_i915_display_funcs { struct intel_cdclk_funcs {
void (*get_cdclk)(struct drm_i915_private *dev_priv, void (*get_cdclk)(struct drm_i915_private *dev_priv,
struct intel_cdclk_config *cdclk_config); struct intel_cdclk_config *cdclk_config);
void (*set_cdclk)(struct drm_i915_private *dev_priv, void (*set_cdclk)(struct drm_i915_private *dev_priv,
...@@ -382,6 +382,9 @@ struct drm_i915_display_funcs { ...@@ -382,6 +382,9 @@ struct drm_i915_display_funcs {
int (*bw_calc_min_cdclk)(struct intel_atomic_state *state); int (*bw_calc_min_cdclk)(struct intel_atomic_state *state);
int (*modeset_calc_cdclk)(struct intel_cdclk_state *state); int (*modeset_calc_cdclk)(struct intel_cdclk_state *state);
u8 (*calc_voltage_level)(int cdclk); u8 (*calc_voltage_level)(int cdclk);
};
struct drm_i915_display_funcs {
/* Returns the active state of the crtc, and if the crtc is active, /* Returns the active state of the crtc, and if the crtc is active,
* fills out the pipe-config with the hw state. */ * fills out the pipe-config with the hw state. */
bool (*get_pipe_config)(struct intel_crtc *, bool (*get_pipe_config)(struct intel_crtc *,
...@@ -984,6 +987,9 @@ struct drm_i915_private { ...@@ -984,6 +987,9 @@ struct drm_i915_private {
/* Display internal audio functions */ /* Display internal audio functions */
struct intel_audio_funcs audio_funcs; struct intel_audio_funcs audio_funcs;
/* Display CDCLK functions */
struct intel_cdclk_funcs cdclk_funcs;
/* PCH chipset type */ /* PCH chipset type */
enum intel_pch pch_type; enum intel_pch pch_type;
unsigned short pch_id; unsigned short pch_id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment