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
10struct drm_connector;
11struct drm_device;
12struct drm_modeset_acquire_ctx;
13
14int drm_helper_probe_single_connector_modes(struct drm_connector
15					    *connector, uint32_t maxX,
16					    uint32_t maxY);
17int drm_helper_probe_detect(struct drm_connector *connector,
18			    struct drm_modeset_acquire_ctx *ctx,
19			    bool force);
20void drm_kms_helper_poll_init(struct drm_device *dev);
21void drm_kms_helper_poll_fini(struct drm_device *dev);
22bool drm_helper_hpd_irq_event(struct drm_device *dev);
23void drm_kms_helper_hotplug_event(struct drm_device *dev);
24
25void drm_kms_helper_poll_disable(struct drm_device *dev);
26void drm_kms_helper_poll_enable(struct drm_device *dev);
27bool drm_kms_helper_is_poll_worker(void);
28
29#endif
30