Loading hdcp/msm_hdcp.c +3 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,7 @@ void msm_hdcp_register_cb(struct device *dev, void *ctx, hdcp->cb = cb; hdcp->client_ctx = ctx; } EXPORT_SYMBOL(msm_hdcp_register_cb); void msm_hdcp_notify_topology(struct device *dev) { Loading Loading @@ -82,6 +83,7 @@ void msm_hdcp_notify_topology(struct device *dev) kobject_uevent_env(&hdcp->device->kobj, KOBJ_CHANGE, envp); } EXPORT_SYMBOL(msm_hdcp_notify_topology); void msm_hdcp_cache_repeater_topology(struct device *dev, struct HDCP_V2V1_MSG_TOPOLOGY *tp) Loading @@ -102,6 +104,7 @@ void msm_hdcp_cache_repeater_topology(struct device *dev, memcpy(&hdcp->cached_tp, tp, sizeof(struct HDCP_V2V1_MSG_TOPOLOGY)); } EXPORT_SYMBOL(msm_hdcp_cache_repeater_topology); static ssize_t tp_show(struct device *dev, struct device_attribute *attr, char *buf) Loading include/linux/Kbuild +1 −0 Original line number Diff line number Diff line # SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note header-y += msm_hdcp.h header-y += sde_io_util.h header-y += sde_rsc.h include/linux/msm_hdcp.h +16 −0 Original line number Diff line number Diff line Loading @@ -8,10 +8,26 @@ #include <linux/types.h> #include "hdcp/msm_hdmi_hdcp_mgr.h" #if IS_ENABLED(CONFIG_HDCP_QSEECOM) void msm_hdcp_notify_topology(struct device *dev); void msm_hdcp_cache_repeater_topology(struct device *dev, struct HDCP_V2V1_MSG_TOPOLOGY *tp); void msm_hdcp_register_cb(struct device *dev, void *ctx, void (*cb)(void *ctx, u8 data)); #else static inline void msm_hdcp_notify_topology(struct device *dev) { } static inline void msm_hdcp_cache_repeater_topology(struct device *dev, struct HDCP_V2V1_MSG_TOPOLOGY *tp) { } static inline void msm_hdcp_register_cb(struct device *dev, void *ctx, void (*cb)(void *ctx, u8 data)) { } #endif /* CONFIG_HDCP_QSEECOM*/ #endif /* __MSM_HDCP_H */ Loading
hdcp/msm_hdcp.c +3 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,7 @@ void msm_hdcp_register_cb(struct device *dev, void *ctx, hdcp->cb = cb; hdcp->client_ctx = ctx; } EXPORT_SYMBOL(msm_hdcp_register_cb); void msm_hdcp_notify_topology(struct device *dev) { Loading Loading @@ -82,6 +83,7 @@ void msm_hdcp_notify_topology(struct device *dev) kobject_uevent_env(&hdcp->device->kobj, KOBJ_CHANGE, envp); } EXPORT_SYMBOL(msm_hdcp_notify_topology); void msm_hdcp_cache_repeater_topology(struct device *dev, struct HDCP_V2V1_MSG_TOPOLOGY *tp) Loading @@ -102,6 +104,7 @@ void msm_hdcp_cache_repeater_topology(struct device *dev, memcpy(&hdcp->cached_tp, tp, sizeof(struct HDCP_V2V1_MSG_TOPOLOGY)); } EXPORT_SYMBOL(msm_hdcp_cache_repeater_topology); static ssize_t tp_show(struct device *dev, struct device_attribute *attr, char *buf) Loading
include/linux/Kbuild +1 −0 Original line number Diff line number Diff line # SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note header-y += msm_hdcp.h header-y += sde_io_util.h header-y += sde_rsc.h
include/linux/msm_hdcp.h +16 −0 Original line number Diff line number Diff line Loading @@ -8,10 +8,26 @@ #include <linux/types.h> #include "hdcp/msm_hdmi_hdcp_mgr.h" #if IS_ENABLED(CONFIG_HDCP_QSEECOM) void msm_hdcp_notify_topology(struct device *dev); void msm_hdcp_cache_repeater_topology(struct device *dev, struct HDCP_V2V1_MSG_TOPOLOGY *tp); void msm_hdcp_register_cb(struct device *dev, void *ctx, void (*cb)(void *ctx, u8 data)); #else static inline void msm_hdcp_notify_topology(struct device *dev) { } static inline void msm_hdcp_cache_repeater_topology(struct device *dev, struct HDCP_V2V1_MSG_TOPOLOGY *tp) { } static inline void msm_hdcp_register_cb(struct device *dev, void *ctx, void (*cb)(void *ctx, u8 data)) { } #endif /* CONFIG_HDCP_QSEECOM*/ #endif /* __MSM_HDCP_H */