mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 01:45:23 +07:00
fe4709a8d0
Exfiltrate the cdclk code from intel_modeset_checks() into intel_modeset_calc_cdclk(). Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190913193157.9556-4-ville.syrjala@linux.intel.com
50 lines
1.6 KiB
C
50 lines
1.6 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_CDCLK_H__
|
|
#define __INTEL_CDCLK_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include "intel_display.h"
|
|
|
|
struct drm_i915_private;
|
|
struct intel_atomic_state;
|
|
struct intel_cdclk_state;
|
|
struct intel_crtc_state;
|
|
|
|
struct intel_cdclk_vals {
|
|
u16 refclk;
|
|
u32 cdclk;
|
|
u8 divider; /* CD2X divider * 2 */
|
|
u8 ratio;
|
|
};
|
|
|
|
int intel_crtc_compute_min_cdclk(const struct intel_crtc_state *crtc_state);
|
|
void intel_cdclk_init(struct drm_i915_private *i915);
|
|
void intel_cdclk_uninit(struct drm_i915_private *i915);
|
|
void intel_init_cdclk_hooks(struct drm_i915_private *dev_priv);
|
|
void intel_update_max_cdclk(struct drm_i915_private *dev_priv);
|
|
void intel_update_cdclk(struct drm_i915_private *dev_priv);
|
|
void intel_update_rawclk(struct drm_i915_private *dev_priv);
|
|
bool intel_cdclk_needs_modeset(const struct intel_cdclk_state *a,
|
|
const struct intel_cdclk_state *b);
|
|
void intel_cdclk_swap_state(struct intel_atomic_state *state);
|
|
void
|
|
intel_set_cdclk_pre_plane_update(struct drm_i915_private *dev_priv,
|
|
const struct intel_cdclk_state *old_state,
|
|
const struct intel_cdclk_state *new_state,
|
|
enum pipe pipe);
|
|
void
|
|
intel_set_cdclk_post_plane_update(struct drm_i915_private *dev_priv,
|
|
const struct intel_cdclk_state *old_state,
|
|
const struct intel_cdclk_state *new_state,
|
|
enum pipe pipe);
|
|
void intel_dump_cdclk_state(const struct intel_cdclk_state *cdclk_state,
|
|
const char *context);
|
|
int intel_modeset_calc_cdclk(struct intel_atomic_state *state);
|
|
|
|
#endif /* __INTEL_CDCLK_H__ */
|