mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 09:15:03 +07:00
39e2df090c
On gen12+ platforms, HDCP HW is associated to the transcoder. Hence on every modeset update associated transcoder into the intel_hdcp of the port. v2: s/trans/cpu_transcoder [Jani] v3: comment is added for fw_ddi init for gen12+ [Shashank] only hdcp capable transcoder is translated into fw_tc [Shashank] v4: fw_tc initialization is kept for modeset. [Tomas] few extra doc is added at port_data init [Tomas] v5: Few comments are improvised [Tomas] Signed-off-by: Ramalingam C <ramalingam.c@intel.com> Acked-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Shashank Sharma <shashank.sharma@intel.com> Signed-off-by: Uma Shankar <uma.shankar@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190828164216.405-6-ramalingam.c@intel.com
39 lines
1.3 KiB
C
39 lines
1.3 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_HDCP_H__
|
|
#define __INTEL_HDCP_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <drm/i915_drm.h>
|
|
|
|
struct drm_connector;
|
|
struct drm_connector_state;
|
|
struct drm_i915_private;
|
|
struct intel_connector;
|
|
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);
|
|
void intel_hdcp_transcoder_config(struct intel_connector *connector,
|
|
enum transcoder cpu_transcoder);
|
|
int intel_hdcp_init(struct intel_connector *connector,
|
|
const struct intel_hdcp_shim *hdcp_shim);
|
|
int intel_hdcp_enable(struct intel_connector *connector, u8 content_type);
|
|
int intel_hdcp_disable(struct intel_connector *connector);
|
|
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__ */
|