Pass intel_display to the encoder suspend/shutdown helpers instead of drm_i915_private for better isolation. v2: Pass intel_display to HAS_DISPLAY() as well, update commit log accordingly. (Jani) Cc: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> # v1 Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240618125255.4080303-2-imre.deak@intel.com
20 lines
629 B
C
20 lines
629 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2024 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_ENCODER_H__
|
|
#define __INTEL_ENCODER_H__
|
|
|
|
struct intel_display;
|
|
struct intel_encoder;
|
|
|
|
void intel_encoder_link_check_init(struct intel_encoder *encoder,
|
|
void (*callback)(struct intel_encoder *encoder));
|
|
void intel_encoder_link_check_queue_work(struct intel_encoder *encoder, int delay_ms);
|
|
void intel_encoder_link_check_flush_work(struct intel_encoder *encoder);
|
|
|
|
void intel_encoder_suspend_all(struct intel_display *display);
|
|
void intel_encoder_shutdown_all(struct intel_display *display);
|
|
|
|
#endif /* __INTEL_ENCODER_H__ */
|