msm_hdcp.h 859 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef __MSM_HDCP_H
  6. #define __MSM_HDCP_H
  7. #include <linux/types.h>
  8. #include "hdcp/msm_hdmi_hdcp_mgr.h"
  9. #if IS_ENABLED(CONFIG_HDCP_QSEECOM)
  10. void msm_hdcp_notify_topology(struct device *dev);
  11. void msm_hdcp_cache_repeater_topology(struct device *dev,
  12. struct HDCP_V2V1_MSG_TOPOLOGY *tp);
  13. void msm_hdcp_register_cb(struct device *dev, void *ctx,
  14. void (*cb)(void *ctx, u8 data));
  15. #else
  16. static inline void msm_hdcp_notify_topology(struct device *dev)
  17. {
  18. }
  19. static inline void msm_hdcp_cache_repeater_topology(struct device *dev,
  20. struct HDCP_V2V1_MSG_TOPOLOGY *tp)
  21. {
  22. }
  23. static inline void msm_hdcp_register_cb(struct device *dev, void *ctx,
  24. void (*cb)(void *ctx, u8 data))
  25. {
  26. }
  27. #endif /* CONFIG_HDCP_QSEECOM*/
  28. #endif /* __MSM_HDCP_H */