summaryrefslogtreecommitdiff
path: root/exynos-hdcp-interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'exynos-hdcp-interface.h')
-rw-r--r--exynos-hdcp-interface.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/exynos-hdcp-interface.h b/exynos-hdcp-interface.h
new file mode 100644
index 0000000..d68cf25
--- /dev/null
+++ b/exynos-hdcp-interface.h
@@ -0,0 +1,38 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/*
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ *
+ * Samsung DisplayPort driver.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#ifndef __EXYNOS_HDCP_INTERFACE_H__
+#define __EXYNOS_HDCP_INTERFACE_H__
+
+/* Displayport */
+enum dp_state {
+ DP_DISCONNECT,
+ DP_CONNECT,
+};
+
+void hdcp_dplink_connect_state(enum dp_state state);
+void hdcp_dplink_handle_irq(void);
+void dp_register_func_for_hdcp22(void (*func0)(u32 en), int (*func1)(u32 address, u32 length, u8 *data), int (*func2)(u32 address, u32 length, u8 *data));
+
+/* DEPRECATED */
+enum auth_signal {
+ HDCP_OFF,
+ HDCP1_ON,
+ HDCP2_ON,
+};
+
+int hdcp_dplink_auth_check(enum auth_signal);
+int hdcp_dplink_get_rxstatus(uint8_t *status);
+int hdcp_dplink_set_paring_available(void);
+int hdcp_dplink_set_hprime_available(void);
+int hdcp_dplink_set_rp_ready(void);
+int hdcp_dplink_set_reauth(void);
+
+#endif