-
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_atomic.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. v2: fix sparse warnings on undeclared global functions Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190429125331.32499-1-jani.nikula@intel.com
- Loading branch information
Jani Nikula
committed
Apr 30, 2019
1 parent
b9d0baa
commit 12392a7
Showing
15 changed files
with
74 additions
and
36 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
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* SPDX-License-Identifier: MIT */ | ||
/* | ||
* Copyright © 2019 Intel Corporation | ||
*/ | ||
|
||
#ifndef __INTEL_ATOMIC_H__ | ||
#define __INTEL_ATOMIC_H__ | ||
|
||
#include <linux/types.h> | ||
|
||
struct drm_atomic_state; | ||
struct drm_connector; | ||
struct drm_connector_state; | ||
struct drm_crtc; | ||
struct drm_crtc_state; | ||
struct drm_device; | ||
struct drm_i915_private; | ||
struct drm_property; | ||
struct intel_crtc; | ||
struct intel_crtc_state; | ||
|
||
int intel_digital_connector_atomic_get_property(struct drm_connector *connector, | ||
const struct drm_connector_state *state, | ||
struct drm_property *property, | ||
u64 *val); | ||
int intel_digital_connector_atomic_set_property(struct drm_connector *connector, | ||
struct drm_connector_state *state, | ||
struct drm_property *property, | ||
u64 val); | ||
int intel_digital_connector_atomic_check(struct drm_connector *conn, | ||
struct drm_connector_state *new_state); | ||
struct drm_connector_state * | ||
intel_digital_connector_duplicate_state(struct drm_connector *connector); | ||
|
||
struct drm_crtc_state *intel_crtc_duplicate_state(struct drm_crtc *crtc); | ||
void intel_crtc_destroy_state(struct drm_crtc *crtc, | ||
struct drm_crtc_state *state); | ||
struct drm_atomic_state *intel_atomic_state_alloc(struct drm_device *dev); | ||
void intel_atomic_state_clear(struct drm_atomic_state *state); | ||
|
||
struct intel_crtc_state * | ||
intel_atomic_get_crtc_state(struct drm_atomic_state *state, | ||
struct intel_crtc *crtc); | ||
|
||
int intel_atomic_setup_scalers(struct drm_i915_private *dev_priv, | ||
struct intel_crtc *intel_crtc, | ||
struct intel_crtc_state *crtc_state); | ||
|
||
#endif /* __INTEL_ATOMIC_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
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
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
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