2019-01-17 22:03:34 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0 OR MIT
|
|
|
|
|
|
|
|
#ifndef __DRM_PROBE_HELPER_H__
|
|
|
|
#define __DRM_PROBE_HELPER_H__
|
|
|
|
|
2022-09-05 16:16:46 +02:00
|
|
|
#include <drm/drm_modes.h>
|
2019-01-17 22:03:34 +01:00
|
|
|
|
|
|
|
struct drm_connector;
|
2022-09-05 16:16:46 +02:00
|
|
|
struct drm_crtc;
|
2019-01-17 22:03:34 +01:00
|
|
|
struct drm_device;
|
|
|
|
struct drm_modeset_acquire_ctx;
|
|
|
|
|
|
|
|
int drm_helper_probe_single_connector_modes(struct drm_connector
|
|
|
|
*connector, uint32_t maxX,
|
|
|
|
uint32_t maxY);
|
|
|
|
int drm_helper_probe_detect(struct drm_connector *connector,
|
|
|
|
struct drm_modeset_acquire_ctx *ctx,
|
|
|
|
bool force);
|
2024-03-25 21:06:58 +01:00
|
|
|
|
|
|
|
int drmm_kms_helper_poll_init(struct drm_device *dev);
|
2019-01-17 22:03:34 +01:00
|
|
|
void drm_kms_helper_poll_init(struct drm_device *dev);
|
|
|
|
void drm_kms_helper_poll_fini(struct drm_device *dev);
|
|
|
|
bool drm_helper_hpd_irq_event(struct drm_device *dev);
|
2021-09-14 12:17:23 +02:00
|
|
|
bool drm_connector_helper_hpd_irq_event(struct drm_connector *connector);
|
2019-01-17 22:03:34 +01:00
|
|
|
void drm_kms_helper_hotplug_event(struct drm_device *dev);
|
2021-10-18 08:47:26 +00:00
|
|
|
void drm_kms_helper_connector_hotplug_event(struct drm_connector *connector);
|
2019-01-17 22:03:34 +01:00
|
|
|
|
|
|
|
void drm_kms_helper_poll_disable(struct drm_device *dev);
|
|
|
|
void drm_kms_helper_poll_enable(struct drm_device *dev);
|
2023-08-22 14:30:14 +03:00
|
|
|
void drm_kms_helper_poll_reschedule(struct drm_device *dev);
|
2019-01-17 22:03:34 +01:00
|
|
|
bool drm_kms_helper_is_poll_worker(void);
|
|
|
|
|
2022-09-05 16:16:46 +02:00
|
|
|
enum drm_mode_status drm_crtc_helper_mode_valid_fixed(struct drm_crtc *crtc,
|
|
|
|
const struct drm_display_mode *mode,
|
|
|
|
const struct drm_display_mode *fixed_mode);
|
|
|
|
|
2022-09-05 16:16:45 +02:00
|
|
|
int drm_connector_helper_get_modes_fixed(struct drm_connector *connector,
|
|
|
|
const struct drm_display_mode *fixed_mode);
|
2022-06-29 12:27:51 +03:00
|
|
|
int drm_connector_helper_get_modes(struct drm_connector *connector);
|
2022-11-17 10:28:55 +01:00
|
|
|
int drm_connector_helper_tv_get_modes(struct drm_connector *connector);
|
2022-05-16 15:43:39 +02:00
|
|
|
|
2024-03-25 21:06:57 +01:00
|
|
|
int drm_connector_helper_detect_from_ddc(struct drm_connector *connector,
|
|
|
|
struct drm_modeset_acquire_ctx *ctx,
|
|
|
|
bool force);
|
|
|
|
|
2019-01-17 22:03:34 +01:00
|
|
|
#endif
|