Home | History | Annotate | Line # | Download | only in drm
      1 /*	$NetBSD: drm_probe_helper.h,v 1.2 2021/12/18 23:45:46 riastradh Exp $	*/
      2 
      3 // SPDX-License-Identifier: GPL-2.0 OR MIT
      4 
      5 #ifndef __DRM_PROBE_HELPER_H__
      6 #define __DRM_PROBE_HELPER_H__
      7 
      8 #include <linux/types.h>
      9 
     10 struct drm_connector;
     11 struct drm_device;
     12 struct drm_modeset_acquire_ctx;
     13 
     14 int drm_helper_probe_single_connector_modes(struct drm_connector
     15 					    *connector, uint32_t maxX,
     16 					    uint32_t maxY);
     17 int drm_helper_probe_detect(struct drm_connector *connector,
     18 			    struct drm_modeset_acquire_ctx *ctx,
     19 			    bool force);
     20 void drm_kms_helper_poll_init(struct drm_device *dev);
     21 void drm_kms_helper_poll_fini(struct drm_device *dev);
     22 bool drm_helper_hpd_irq_event(struct drm_device *dev);
     23 void drm_kms_helper_hotplug_event(struct drm_device *dev);
     24 
     25 void drm_kms_helper_poll_disable(struct drm_device *dev);
     26 void drm_kms_helper_poll_enable(struct drm_device *dev);
     27 bool drm_kms_helper_is_poll_worker(void);
     28 
     29 #endif
     30