diff options
| author | Jani Nikula <[email protected]> | 2023-04-17 15:37:40 +0000 |
|---|---|---|
| committer | Jani Nikula <[email protected]> | 2023-04-20 11:06:32 +0000 |
| commit | b13604c0ff26ecde5f708ef5e1fd233f8e89e1f6 (patch) | |
| tree | eea8ac30254e1d9a9071eaeb636746bbc580b199 /drivers/gpu/drm/i915/display/intel_load_detect.h | |
| parent | drm/i915/wm: remove stale and unused ilk_wm_max_level() declaration (diff) | |
| download | kernel-b13604c0ff26ecde5f708ef5e1fd233f8e89e1f6.tar.gz kernel-b13604c0ff26ecde5f708ef5e1fd233f8e89e1f6.zip | |
drm/i915/display: split out load detect to a separate file
Load detect is shared between tv and crt but otherwise isolated in
intel_display.c.
Signed-off-by: Jani Nikula <[email protected]>
Reviewed-by: Rodrigo Vivi <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_load_detect.h')
| -rw-r--r-- | drivers/gpu/drm/i915/display/intel_load_detect.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_load_detect.h b/drivers/gpu/drm/i915/display/intel_load_detect.h new file mode 100644 index 000000000000..9b69da1867a5 --- /dev/null +++ b/drivers/gpu/drm/i915/display/intel_load_detect.h @@ -0,0 +1,24 @@ +/* SPDX-License-Identifier: MIT */ +/* + * Copyright © 2023 Intel Corporation + */ + +#ifndef __INTEL_LOAD_DETECT_H__ +#define __INTEL_LOAD_DETECT_H__ + +struct drm_atomic_state; +struct drm_connector; +struct drm_modeset_acquire_ctx; + +struct intel_load_detect_pipe { + struct drm_atomic_state *restore_state; +}; + +int intel_load_detect_get_pipe(struct drm_connector *connector, + struct intel_load_detect_pipe *old, + struct drm_modeset_acquire_ctx *ctx); +void intel_load_detect_release_pipe(struct drm_connector *connector, + struct intel_load_detect_pipe *old, + struct drm_modeset_acquire_ctx *ctx); + +#endif /* __INTEL_LOAD_DETECT_H__ */ |
