xref: /linux/drivers/gpu/drm/i915/display/intel_hdcp_gsc.h (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2023 Intel Corporation
4  */
5 
6 #ifndef __INTEL_HDCP_GSC_H__
7 #define __INTEL_HDCP_GSC_H__
8 
9 #include <linux/err.h>
10 #include <linux/types.h>
11 
12 struct drm_i915_private;
13 struct intel_hdcp_gsc_message;
14 
15 bool intel_hdcp_gsc_cs_required(struct drm_i915_private *i915);
16 ssize_t intel_hdcp_gsc_msg_send(struct drm_i915_private *i915, u8 *msg_in,
17 				size_t msg_in_len, u8 *msg_out,
18 				size_t msg_out_len);
19 int intel_hdcp_gsc_init(struct drm_i915_private *i915);
20 void intel_hdcp_gsc_fini(struct drm_i915_private *i915);
21 bool intel_hdcp_gsc_check_status(struct drm_i915_private *i915);
22 
23 #endif /* __INTEL_HDCP_GCS_H__ */
24