summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorTatenda Chipeperekwa <tatendac@codeaurora.org>2016-08-11 19:08:35 -0700
committerAjay Singh Parmar <aparmar@codeaurora.org>2016-08-21 10:42:08 -0700
commitf1b139c49ec2a726378003364a5fadb6ad973fed (patch)
tree63bffe40aa8e8f15443875da1c39c61d0113975f /include/linux
parentc605e110ab18604981481a7b502da54640b620bc (diff)
msm: misc: hdcp: add support for multi-part hdcp2p2 messages
Add support for multi-part hdcp2p2 messages which will be used by the Display Port (DP) driver to communicate with the sink. For each message sent/received, the HDCP library will add information related to how message is broken down into parts. This information is used by the DP driver during the authentication process. Change-Id: I22cc2f3fee518fa3d29af11fa277dad4da4db728 Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/hdcp_qseecom.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/hdcp_qseecom.h b/include/linux/hdcp_qseecom.h
index 26e97700fc73..f66264bc935a 100644
--- a/include/linux/hdcp_qseecom.h
+++ b/include/linux/hdcp_qseecom.h
@@ -14,6 +14,8 @@
#define __HDCP_QSEECOM_H
#include <linux/types.h>
+#define HDCP_MAX_MESSAGE_PARTS 4
+
enum hdcp_lib_wakeup_cmd {
HDCP_LIB_WKUP_CMD_INVALID,
HDCP_LIB_WKUP_CMD_START,
@@ -44,12 +46,25 @@ struct hdcp_lib_wakeup_data {
uint32_t timeout;
};
+struct hdcp_msg_part {
+ uint32_t offset;
+ uint32_t length;
+};
+
+struct hdcp_msg_data {
+ uint32_t num_messages;
+ struct hdcp_msg_part messages[HDCP_MAX_MESSAGE_PARTS];
+ uint8_t rx_status;
+};
+
struct hdmi_hdcp_wakeup_data {
enum hdmi_hdcp_wakeup_cmd cmd;
void *context;
char *send_msg_buf;
uint32_t send_msg_len;
uint32_t timeout;
+ uint8_t abort_mask;
+ const struct hdcp_msg_data *message_data;
};
static inline char *hdmi_hdcp_cmd_to_str(uint32_t cmd)