xref: /linux/drivers/gpu/drm/i915/display/intel_hdcp_gsc.h (revision e47a324d6f07c9ef252cfce1f14cfa5110cbed99)
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/types.h>
10 
11 struct drm_device;
12 struct intel_hdcp_gsc_context;
13 
14 ssize_t intel_hdcp_gsc_msg_send(struct intel_hdcp_gsc_context *gsc_context,
15 				void *msg_in, size_t msg_in_len,
16 				void *msg_out, size_t msg_out_len);
17 bool intel_hdcp_gsc_check_status(struct drm_device *drm);
18 
19 struct intel_hdcp_gsc_context *intel_hdcp_gsc_context_alloc(struct drm_device *drm);
20 void intel_hdcp_gsc_context_free(struct intel_hdcp_gsc_context *gsc_context);
21 
22 #endif /* __INTEL_HDCP_GCS_H__ */
23