forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/gpu/drm/drm_crtc_internal.h
....@@ -31,8 +31,32 @@
3131 * and are not exported to drivers.
3232 */
3333
34
-#ifndef _DRM_CRTC_INTERNAL_H_
35
-#define _DRM_CRTC_INTERNAL_H_
34
+#include <linux/types.h>
35
+
36
+enum drm_color_encoding;
37
+enum drm_color_range;
38
+enum drm_connector_force;
39
+enum drm_mode_status;
40
+
41
+struct drm_atomic_state;
42
+struct drm_bridge;
43
+struct drm_connector;
44
+struct drm_crtc;
45
+struct drm_device;
46
+struct drm_display_mode;
47
+struct drm_file;
48
+struct drm_framebuffer;
49
+struct drm_mode_create_dumb;
50
+struct drm_mode_fb_cmd2;
51
+struct drm_mode_fb_cmd;
52
+struct drm_mode_object;
53
+struct drm_mode_set;
54
+struct drm_plane;
55
+struct drm_plane_state;
56
+struct drm_property;
57
+struct edid;
58
+struct kref;
59
+struct work_struct;
3660
3761 /* drm_crtc.c */
3862 int drm_mode_crtc_set_obj_prop(struct drm_mode_object *obj,
....@@ -44,6 +68,7 @@
4468 const struct drm_framebuffer *fb);
4569 int drm_crtc_register_all(struct drm_device *dev);
4670 void drm_crtc_unregister_all(struct drm_device *dev);
71
+int drm_crtc_force_disable(struct drm_crtc *crtc);
4772
4873 struct dma_fence *drm_crtc_create_fence(struct drm_crtc *crtc);
4974
....@@ -57,6 +82,7 @@
5782 /* drm_mode_config.c */
5883 int drm_modeset_register_all(struct drm_device *dev);
5984 void drm_modeset_unregister_all(struct drm_device *dev);
85
+void drm_mode_config_validate(struct drm_device *dev);
6086
6187 /* drm_modes.c */
6288 const char *drm_get_mode_status_name(enum drm_mode_status status);
....@@ -176,6 +202,8 @@
176202
177203 int drm_mode_addfb(struct drm_device *dev, struct drm_mode_fb_cmd *or,
178204 struct drm_file *file_priv);
205
+int drm_mode_addfb2(struct drm_device *dev,
206
+ void *data, struct drm_file *file_priv);
179207 int drm_mode_rmfb(struct drm_device *dev, u32 fb_id,
180208 struct drm_file *file_priv);
181209
....@@ -183,30 +211,43 @@
183211 /* IOCTL */
184212 int drm_mode_addfb_ioctl(struct drm_device *dev,
185213 void *data, struct drm_file *file_priv);
186
-int drm_mode_addfb2(struct drm_device *dev,
187
- void *data, struct drm_file *file_priv);
214
+int drm_mode_addfb2_ioctl(struct drm_device *dev,
215
+ void *data, struct drm_file *file_priv);
188216 int drm_mode_rmfb_ioctl(struct drm_device *dev,
189217 void *data, struct drm_file *file_priv);
190218 int drm_mode_getfb(struct drm_device *dev,
191219 void *data, struct drm_file *file_priv);
220
+int drm_mode_getfb2_ioctl(struct drm_device *dev,
221
+ void *data, struct drm_file *file_priv);
192222 int drm_mode_dirtyfb_ioctl(struct drm_device *dev,
193223 void *data, struct drm_file *file_priv);
194224
195225 /* drm_atomic.c */
196226 #ifdef CONFIG_DEBUG_FS
197227 struct drm_minor;
198
-int drm_atomic_debugfs_init(struct drm_minor *minor);
228
+void drm_atomic_debugfs_init(struct drm_minor *minor);
199229 #endif
200230
231
+int __drm_atomic_helper_disable_plane(struct drm_plane *plane,
232
+ struct drm_plane_state *plane_state);
233
+int __drm_atomic_helper_set_config(struct drm_mode_set *set,
234
+ struct drm_atomic_state *state);
235
+
236
+void drm_atomic_print_state(const struct drm_atomic_state *state);
237
+
238
+/* drm_atomic_uapi.c */
201239 int drm_atomic_connector_commit_dpms(struct drm_atomic_state *state,
202240 struct drm_connector *connector,
203241 int mode);
204242 int drm_atomic_set_property(struct drm_atomic_state *state,
243
+ struct drm_file *file_priv,
205244 struct drm_mode_object *obj,
206245 struct drm_property *prop,
207246 uint64_t prop_value);
208247 int drm_atomic_get_property(struct drm_mode_object *obj,
209248 struct drm_property *property, uint64_t *val);
249
+
250
+/* IOCTL */
210251 int drm_mode_atomic_ioctl(struct drm_device *dev,
211252 void *data, struct drm_file *file_priv);
212253
....@@ -239,6 +280,7 @@
239280 void drm_mode_fixup_1366x768(struct drm_display_mode *mode);
240281 void drm_reset_display_info(struct drm_connector *connector);
241282 u32 drm_add_display_info(struct drm_connector *connector, const struct edid *edid);
283
+void drm_update_tile_info(struct drm_connector *connector, const struct edid *edid);
242284 #else
243285 static inline void drm_mode_fixup_1366x768(struct drm_display_mode *mode)
244286 {
....@@ -253,6 +295,10 @@
253295 {
254296 return 0;
255297 }
256
-#endif
257298
258
-#endif /* _DRM_CRTC_INTERNAL_H_ */
299
+static inline u32 drm_update_tile_info(struct drm_connector *connector,
300
+ const struct edid *edid)
301
+{
302
+ return 0;
303
+}
304
+#endif