secdp_bigdata.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 and
  7. * only version 2 as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. */
  15. #ifndef DISPLAYPORT_BIGDATA_H
  16. #define DISPLAYPORT_BIGDATA_H
  17. #include <linux/platform_device.h>
  18. #include <stdarg.h>
  19. enum DP_BD_ITEM_LIST {
  20. ERR_AUX,
  21. ERR_EDID,
  22. ERR_HDCP_AUTH,
  23. ERR_LINK_TRAIN,
  24. ERR_INF_IRQHPD,
  25. BD_LINK_CONFIGURE,
  26. BD_ADAPTER_HWID,
  27. BD_ADAPTER_FWVER,
  28. BD_ADAPTER_TYPE,
  29. BD_MAX_LANE_COUNT,
  30. BD_MAX_LINK_RATE,
  31. BD_CUR_LANE_COUNT,
  32. BD_CUR_LINK_RATE,
  33. BD_HDCP_VER,
  34. BD_ORIENTATION,
  35. BD_RESOLUTION,
  36. BD_EDID,
  37. BD_ADT_VID,
  38. BD_ADT_PID,
  39. BD_DP_MODE,
  40. BD_SINK_NAME,
  41. BD_AUD_CH,
  42. BD_AUD_FREQ,
  43. BD_AUD_BIT,
  44. BD_ITEM_MAX,
  45. };
  46. void secdp_bigdata_save_item(enum DP_BD_ITEM_LIST item, ...);
  47. void secdp_bigdata_inc_error_cnt(enum DP_BD_ITEM_LIST err);
  48. void secdp_bigdata_clr_error_cnt(enum DP_BD_ITEM_LIST err);
  49. void secdp_bigdata_connection(void);
  50. void secdp_bigdata_disconnection(void);
  51. void secdp_bigdata_init(struct class *dp_class);
  52. ssize_t _secdp_bigdata_show(struct class *class,
  53. struct class_attribute *attr, char *buf);
  54. ssize_t _secdp_bigdata_store(struct class *dev,
  55. struct class_attribute *attr, const char *buf, size_t size);
  56. #endif /* DISPLAYPORT_BIGDATA_H */