Loading...
1// SPDX-License-Identifier: GPL-2.0 OR MIT
2
3#ifndef __DRM_PROBE_HELPER_H__
4#define __DRM_PROBE_HELPER_H__
5
6#include <drm/drm_modes.h>
7
8struct drm_connector;
9struct drm_crtc;
10struct drm_device;
11struct drm_modeset_acquire_ctx;
12
13int drm_helper_probe_single_connector_modes(struct drm_connector
14 *connector, uint32_t maxX,
15 uint32_t maxY);
16int drm_helper_probe_detect(struct drm_connector *connector,
17 struct drm_modeset_acquire_ctx *ctx,
18 bool force);
19void drm_kms_helper_poll_init(struct drm_device *dev);
20void drm_kms_helper_poll_fini(struct drm_device *dev);
21bool drm_helper_hpd_irq_event(struct drm_device *dev);
22bool drm_connector_helper_hpd_irq_event(struct drm_connector *connector);
23void drm_kms_helper_hotplug_event(struct drm_device *dev);
24void drm_kms_helper_connector_hotplug_event(struct drm_connector *connector);
25
26void drm_kms_helper_poll_disable(struct drm_device *dev);
27void drm_kms_helper_poll_enable(struct drm_device *dev);
28bool drm_kms_helper_is_poll_worker(void);
29
30enum drm_mode_status drm_crtc_helper_mode_valid_fixed(struct drm_crtc *crtc,
31 const struct drm_display_mode *mode,
32 const struct drm_display_mode *fixed_mode);
33
34int drm_connector_helper_get_modes_from_ddc(struct drm_connector *connector);
35int drm_connector_helper_get_modes_fixed(struct drm_connector *connector,
36 const struct drm_display_mode *fixed_mode);
37int drm_connector_helper_get_modes(struct drm_connector *connector);
38
39#endif
1// SPDX-License-Identifier: GPL-2.0 OR MIT
2
3#ifndef __DRM_PROBE_HELPER_H__
4#define __DRM_PROBE_HELPER_H__
5
6#include <linux/types.h>
7
8struct drm_connector;
9struct drm_device;
10struct drm_modeset_acquire_ctx;
11
12int drm_helper_probe_single_connector_modes(struct drm_connector
13 *connector, uint32_t maxX,
14 uint32_t maxY);
15int drm_helper_probe_detect(struct drm_connector *connector,
16 struct drm_modeset_acquire_ctx *ctx,
17 bool force);
18void drm_kms_helper_poll_init(struct drm_device *dev);
19void drm_kms_helper_poll_fini(struct drm_device *dev);
20bool drm_helper_hpd_irq_event(struct drm_device *dev);
21void drm_kms_helper_hotplug_event(struct drm_device *dev);
22
23void drm_kms_helper_poll_disable(struct drm_device *dev);
24void drm_kms_helper_poll_enable(struct drm_device *dev);
25bool drm_kms_helper_is_poll_worker(void);
26
27#endif