1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2019 Intel Corporation 4 */ 5 6 #ifndef __INTEL_HDCP_H__ 7 #define __INTEL_HDCP_H__ 8 9 #include <linux/types.h> 10 11 #include <drm/i915_drm.h> 12 13 struct drm_connector; 14 struct drm_connector_state; 15 struct drm_i915_private; 16 struct intel_connector; 17 struct intel_hdcp_shim; 18 enum port; 19 20 void intel_hdcp_atomic_check(struct drm_connector *connector, 21 struct drm_connector_state *old_state, 22 struct drm_connector_state *new_state); 23 int intel_hdcp_init(struct intel_connector *connector, 24 const struct intel_hdcp_shim *hdcp_shim); 25 int intel_hdcp_enable(struct intel_connector *connector, u8 content_type); 26 int intel_hdcp_disable(struct intel_connector *connector); 27 bool is_hdcp_supported(struct drm_i915_private *dev_priv, enum port port); 28 bool intel_hdcp_capable(struct intel_connector *connector); 29 bool intel_hdcp2_capable(struct intel_connector *connector); 30 void intel_hdcp_component_init(struct drm_i915_private *dev_priv); 31 void intel_hdcp_component_fini(struct drm_i915_private *dev_priv); 32 void intel_hdcp_cleanup(struct intel_connector *connector); 33 void intel_hdcp_handle_cp_irq(struct intel_connector *connector); 34 35 #endif /* __INTEL_HDCP_H__ */ 36