mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 11:06:48 +07:00
ede9771d7f
We're going to want access to the atomic state for iterating the slave crtcs when enabling the port sync master crtc. Pass the atomic state all the way down. The alternative would be yet another encoder hook which we'll have to call after all the normal modeset stuff is done. Not really a fan of yet another hook just for this. Note that during readout state sanitation we are now going to pass NULL as the atomic state since we don't have one. We need to change that and then we can also s/crtc_state/crtc/ and s/conn_state/conn/ for the encoder hooks as well. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200313164831.5980-13-ville.syrjala@linux.intel.com Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
43 lines
1.5 KiB
C
43 lines
1.5 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_HDCP_H__
|
|
#define __INTEL_HDCP_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_connector;
|
|
struct drm_connector_state;
|
|
struct drm_i915_private;
|
|
struct intel_atomic_state;
|
|
struct intel_connector;
|
|
struct intel_crtc_state;
|
|
struct intel_encoder;
|
|
struct intel_hdcp_shim;
|
|
enum port;
|
|
enum transcoder;
|
|
|
|
void intel_hdcp_atomic_check(struct drm_connector *connector,
|
|
struct drm_connector_state *old_state,
|
|
struct drm_connector_state *new_state);
|
|
int intel_hdcp_init(struct intel_connector *connector,
|
|
const struct intel_hdcp_shim *hdcp_shim);
|
|
int intel_hdcp_enable(struct intel_connector *connector,
|
|
enum transcoder cpu_transcoder, u8 content_type);
|
|
int intel_hdcp_disable(struct intel_connector *connector);
|
|
void intel_hdcp_update_pipe(struct intel_atomic_state *state,
|
|
struct intel_encoder *encoder,
|
|
const struct intel_crtc_state *crtc_state,
|
|
const struct drm_connector_state *conn_state);
|
|
bool is_hdcp_supported(struct drm_i915_private *dev_priv, enum port port);
|
|
bool intel_hdcp_capable(struct intel_connector *connector);
|
|
bool intel_hdcp2_capable(struct intel_connector *connector);
|
|
void intel_hdcp_component_init(struct drm_i915_private *dev_priv);
|
|
void intel_hdcp_component_fini(struct drm_i915_private *dev_priv);
|
|
void intel_hdcp_cleanup(struct intel_connector *connector);
|
|
void intel_hdcp_handle_cp_irq(struct intel_connector *connector);
|
|
|
|
#endif /* __INTEL_HDCP_H__ */
|