dp_lphw_hpd.h 875 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _DP_LPHW_HPD_H_
  6. #define _DP_LPHW_HPD_H_
  7. #include "dp_hpd.h"
  8. #define DP_HPD_PLUG_INT_STATUS BIT(0)
  9. #define DP_IRQ_HPD_INT_STATUS BIT(1)
  10. #define DP_HPD_REPLUG_INT_STATUS BIT(2)
  11. #define DP_HPD_UNPLUG_INT_STATUS BIT(3)
  12. /**
  13. * dp_lphw_hpd_get() - configure and get the DisplayPlot HPD module data
  14. *
  15. * @dev: device instance of the caller
  16. * return: pointer to allocated gpio hpd module data
  17. *
  18. * This function sets up the lphw hpd module
  19. */
  20. struct dp_hpd *dp_lphw_hpd_get(struct device *dev, struct dp_parser *parser,
  21. struct dp_catalog_hpd *catalog, struct dp_hpd_cb *cb);
  22. /**
  23. * dp_lphw_hpd_put()
  24. *
  25. * Cleans up dp_hpd instance
  26. *
  27. * @hpd: instance of lphw_hpd
  28. */
  29. void dp_lphw_hpd_put(struct dp_hpd *hpd);
  30. #endif /* _DP_LPHW_HPD_H_ */