hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/drm/drm_simple_kms_helper.h
....@@ -1,10 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright (C) 2016 Noralf Trønnes
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation; either version 2 of the License, or
7
- * (at your option) any later version.
84 */
95
106 #ifndef __LINUX_DRM_SIMPLE_KMS_HELPER_H
....@@ -53,7 +49,7 @@
5349 *
5450 * drm_mode_status Enum
5551 */
56
- enum drm_mode_status (*mode_valid)(struct drm_crtc *crtc,
52
+ enum drm_mode_status (*mode_valid)(struct drm_simple_display_pipe *pipe,
5753 const struct drm_display_mode *mode);
5854
5955 /**
....@@ -104,8 +100,11 @@
104100 * This is the function drivers should submit the
105101 * &drm_pending_vblank_event from. Using either
106102 * drm_crtc_arm_vblank_event(), when the driver supports vblank
107
- * interrupt handling, or drm_crtc_send_vblank_event() directly in case
108
- * the hardware lacks vblank support entirely.
103
+ * interrupt handling, or drm_crtc_send_vblank_event() for more
104
+ * complex case. In case the hardware lacks vblank support entirely,
105
+ * drivers can set &struct drm_crtc_state.no_vblank in
106
+ * &struct drm_simple_display_pipe_funcs.check and let DRM's
107
+ * atomic helper fake a vblank event.
109108 */
110109 void (*update)(struct drm_simple_display_pipe *pipe,
111110 struct drm_plane_state *old_plane_state);
....@@ -182,4 +181,8 @@
182181 const uint64_t *format_modifiers,
183182 struct drm_connector *connector);
184183
184
+int drm_simple_encoder_init(struct drm_device *dev,
185
+ struct drm_encoder *encoder,
186
+ int encoder_type);
187
+
185188 #endif /* __LINUX_DRM_SIMPLE_KMS_HELPER_H */