[Intel-gfx] [RFC v1 05/20] drm/hdcp: HDCP status code for DRM HDCP stack

Ramalingam C ramalingam.c at intel.com
Wed Jul 12 08:28:49 UTC 2017


HDCP status code is defined. this will be used as a return value
of the service function of HDCP to indicate the hdcp status

Signed-off-by: Ramalingam C <ramalingam.c at intel.com>
---
 include/drm/drm_hdcp.h | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/include/drm/drm_hdcp.h b/include/drm/drm_hdcp.h
index 92fd933..bf77d37 100644
--- a/include/drm/drm_hdcp.h
+++ b/include/drm/drm_hdcp.h
@@ -37,6 +37,26 @@ struct drm_connector;
 #define HDCP_2_2_SUPPORT			(1<<1)
 
 /**
+ * @enum hdcp_status Enumeration of all HDCP Status Codes
+ */
+enum hdcp_status {
+	HDCP_STATUS_SUCCESS = 0,
+	HDCP_STATUS_UNKNOWN_ERROR,
+	HDCP_STATUS_INVALID_PARAMS,
+	HDCP_SRM_VERIFICATION_FAILED,
+	HDCP_SRM_VERSION_TOO_OLD,
+	HDCP_RX_CERT_VERIFICATION_FAILED,
+	HDCP_RX_REVOKED,
+	HDCP_H_VERIFICATION_FAILED,
+	HDCP_TOPOLOGY_MAX_EXCEEDED,
+	HDCP_V_VERIFICATION_FAILED,
+	HDCP_L_VERIFICATION_FAILED,
+	HDCP_STREAM_KEY_ALLOC_FAILED,
+	HDCP_STATUS_LC_MAX_ATTEMPTS,
+	HDCP_STATUS_MISMATCH_IN_M,
+};
+
+/**
  * wired_protocol: Supported integrated wired HDCP protocol.
  * Based on this value, Minor differenceneeded between wired specifications
  * are handled.
-- 
2.7.4



More information about the Intel-gfx mailing list