drm_probe_helper.h 848 B

123456789101112131415161718192021222324252627
  1. // SPDX-License-Identifier: GPL-2.0 OR MIT
  2. #ifndef __DRM_PROBE_HELPER_H__
  3. #define __DRM_PROBE_HELPER_H__
  4. #include <linux/types.h>
  5. struct drm_connector;
  6. struct drm_device;
  7. struct drm_modeset_acquire_ctx;
  8. int drm_helper_probe_single_connector_modes(struct drm_connector
  9. *connector, uint32_t maxX,
  10. uint32_t maxY);
  11. int drm_helper_probe_detect(struct drm_connector *connector,
  12. struct drm_modeset_acquire_ctx *ctx,
  13. bool force);
  14. void drm_kms_helper_poll_init(struct drm_device *dev);
  15. void drm_kms_helper_poll_fini(struct drm_device *dev);
  16. bool drm_helper_hpd_irq_event(struct drm_device *dev);
  17. void drm_kms_helper_hotplug_event(struct drm_device *dev);
  18. void drm_kms_helper_poll_disable(struct drm_device *dev);
  19. void drm_kms_helper_poll_enable(struct drm_device *dev);
  20. bool drm_kms_helper_is_poll_worker(void);
  21. #endif