dp_bridge_hpd.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (c) 2019-2021, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. */
  14. #ifndef _DP_BRIDGE_HPD_H_
  15. #define _DP_BRIDGE_HPD_H_
  16. #include "dp_hpd.h"
  17. /**
  18. * dp_bridge_hpd_get() - configure and get the DisplayPlot HPD module data
  19. *
  20. * @dev: device instance of the caller
  21. * @cb: callback function for HPD response
  22. * @aux_bridge: handle for aux_bridge driver data
  23. * return: pointer to allocated gpio hpd module data
  24. *
  25. * This function sets up the gpio hpd module
  26. */
  27. struct dp_hpd *dp_bridge_hpd_get(struct device *dev,
  28. struct dp_hpd_cb *cb, struct dp_aux_bridge *aux_bridge);
  29. /**
  30. * dp_bridge_hpd_put()
  31. *
  32. * Cleans up dp_hpd instance
  33. *
  34. * @hpd: instance of gpio_hpd
  35. */
  36. void dp_bridge_hpd_put(struct dp_hpd *hpd);
  37. #endif /* _DP_BRIDGE_HPD_H_ */