-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm/i915: extract intel_cdclk.h from intel_drv.h
It used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver. Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed. No functional changes. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/c128d7be3f621391e571e86b03f302f3ffd0ed2b.1554461791.git.jani.nikula@intel.com
- Loading branch information
Jani Nikula
committed
Apr 8, 2019
1 parent
f9a79f9
commit e7674ef
Showing
7 changed files
with
57 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
* DEALINGS IN THE SOFTWARE. | ||
*/ | ||
|
||
#include "intel_cdclk.h" | ||
#include "intel_drv.h" | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* 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; | ||
|
||
int intel_crtc_compute_min_cdclk(const struct intel_crtc_state *crtc_state); | ||
void skl_init_cdclk(struct drm_i915_private *dev_priv); | ||
void skl_uninit_cdclk(struct drm_i915_private *dev_priv); | ||
void cnl_init_cdclk(struct drm_i915_private *dev_priv); | ||
void cnl_uninit_cdclk(struct drm_i915_private *dev_priv); | ||
void bxt_init_cdclk(struct drm_i915_private *dev_priv); | ||
void bxt_uninit_cdclk(struct drm_i915_private *dev_priv); | ||
void icl_init_cdclk(struct drm_i915_private *dev_priv); | ||
void icl_uninit_cdclk(struct drm_i915_private *dev_priv); | ||
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_cd2x_update(struct drm_i915_private *dev_priv, | ||
const struct intel_cdclk_state *a, | ||
const struct intel_cdclk_state *b); | ||
bool intel_cdclk_needs_modeset(const struct intel_cdclk_state *a, | ||
const struct intel_cdclk_state *b); | ||
bool intel_cdclk_changed(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); | ||
|
||
#endif /* __INTEL_CDCLK_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters