| .. | .. |
|---|
| 31 | 31 | * and are not exported to drivers. |
|---|
| 32 | 32 | */ |
|---|
| 33 | 33 | |
|---|
| 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; |
|---|
| 36 | 60 | |
|---|
| 37 | 61 | /* drm_crtc.c */ |
|---|
| 38 | 62 | int drm_mode_crtc_set_obj_prop(struct drm_mode_object *obj, |
|---|
| .. | .. |
|---|
| 44 | 68 | const struct drm_framebuffer *fb); |
|---|
| 45 | 69 | int drm_crtc_register_all(struct drm_device *dev); |
|---|
| 46 | 70 | void drm_crtc_unregister_all(struct drm_device *dev); |
|---|
| 71 | +int drm_crtc_force_disable(struct drm_crtc *crtc); |
|---|
| 47 | 72 | |
|---|
| 48 | 73 | struct dma_fence *drm_crtc_create_fence(struct drm_crtc *crtc); |
|---|
| 49 | 74 | |
|---|
| .. | .. |
|---|
| 57 | 82 | /* drm_mode_config.c */ |
|---|
| 58 | 83 | int drm_modeset_register_all(struct drm_device *dev); |
|---|
| 59 | 84 | void drm_modeset_unregister_all(struct drm_device *dev); |
|---|
| 85 | +void drm_mode_config_validate(struct drm_device *dev); |
|---|
| 60 | 86 | |
|---|
| 61 | 87 | /* drm_modes.c */ |
|---|
| 62 | 88 | const char *drm_get_mode_status_name(enum drm_mode_status status); |
|---|
| .. | .. |
|---|
| 176 | 202 | |
|---|
| 177 | 203 | int drm_mode_addfb(struct drm_device *dev, struct drm_mode_fb_cmd *or, |
|---|
| 178 | 204 | struct drm_file *file_priv); |
|---|
| 205 | +int drm_mode_addfb2(struct drm_device *dev, |
|---|
| 206 | + void *data, struct drm_file *file_priv); |
|---|
| 179 | 207 | int drm_mode_rmfb(struct drm_device *dev, u32 fb_id, |
|---|
| 180 | 208 | struct drm_file *file_priv); |
|---|
| 181 | 209 | |
|---|
| .. | .. |
|---|
| 183 | 211 | /* IOCTL */ |
|---|
| 184 | 212 | int drm_mode_addfb_ioctl(struct drm_device *dev, |
|---|
| 185 | 213 | 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); |
|---|
| 188 | 216 | int drm_mode_rmfb_ioctl(struct drm_device *dev, |
|---|
| 189 | 217 | void *data, struct drm_file *file_priv); |
|---|
| 190 | 218 | int drm_mode_getfb(struct drm_device *dev, |
|---|
| 191 | 219 | 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); |
|---|
| 192 | 222 | int drm_mode_dirtyfb_ioctl(struct drm_device *dev, |
|---|
| 193 | 223 | void *data, struct drm_file *file_priv); |
|---|
| 194 | 224 | |
|---|
| 195 | 225 | /* drm_atomic.c */ |
|---|
| 196 | 226 | #ifdef CONFIG_DEBUG_FS |
|---|
| 197 | 227 | struct drm_minor; |
|---|
| 198 | | -int drm_atomic_debugfs_init(struct drm_minor *minor); |
|---|
| 228 | +void drm_atomic_debugfs_init(struct drm_minor *minor); |
|---|
| 199 | 229 | #endif |
|---|
| 200 | 230 | |
|---|
| 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 */ |
|---|
| 201 | 239 | int drm_atomic_connector_commit_dpms(struct drm_atomic_state *state, |
|---|
| 202 | 240 | struct drm_connector *connector, |
|---|
| 203 | 241 | int mode); |
|---|
| 204 | 242 | int drm_atomic_set_property(struct drm_atomic_state *state, |
|---|
| 243 | + struct drm_file *file_priv, |
|---|
| 205 | 244 | struct drm_mode_object *obj, |
|---|
| 206 | 245 | struct drm_property *prop, |
|---|
| 207 | 246 | uint64_t prop_value); |
|---|
| 208 | 247 | int drm_atomic_get_property(struct drm_mode_object *obj, |
|---|
| 209 | 248 | struct drm_property *property, uint64_t *val); |
|---|
| 249 | + |
|---|
| 250 | +/* IOCTL */ |
|---|
| 210 | 251 | int drm_mode_atomic_ioctl(struct drm_device *dev, |
|---|
| 211 | 252 | void *data, struct drm_file *file_priv); |
|---|
| 212 | 253 | |
|---|
| .. | .. |
|---|
| 239 | 280 | void drm_mode_fixup_1366x768(struct drm_display_mode *mode); |
|---|
| 240 | 281 | void drm_reset_display_info(struct drm_connector *connector); |
|---|
| 241 | 282 | 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); |
|---|
| 242 | 284 | #else |
|---|
| 243 | 285 | static inline void drm_mode_fixup_1366x768(struct drm_display_mode *mode) |
|---|
| 244 | 286 | { |
|---|
| .. | .. |
|---|
| 253 | 295 | { |
|---|
| 254 | 296 | return 0; |
|---|
| 255 | 297 | } |
|---|
| 256 | | -#endif |
|---|
| 257 | 298 | |
|---|
| 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 |
|---|