diff options
Diffstat (limited to 'include/drm/drm_fb_helper.h')
-rw-r--r-- | include/drm/drm_fb_helper.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h index 38ab0daffd1f..b1ea66f11ded 100644 --- a/include/drm/drm_fb_helper.h +++ b/include/drm/drm_fb_helper.h | |||
@@ -33,6 +33,7 @@ | |||
33 | struct drm_fb_helper_crtc { | 33 | struct drm_fb_helper_crtc { |
34 | uint32_t crtc_id; | 34 | uint32_t crtc_id; |
35 | struct drm_mode_set mode_set; | 35 | struct drm_mode_set mode_set; |
36 | struct drm_display_mode *desired_mode; | ||
36 | }; | 37 | }; |
37 | 38 | ||
38 | 39 | ||
@@ -81,14 +82,16 @@ struct drm_fb_helper { | |||
81 | struct fb_info *fbdev; | 82 | struct fb_info *fbdev; |
82 | u32 pseudo_palette[17]; | 83 | u32 pseudo_palette[17]; |
83 | struct list_head kernel_fb_list; | 84 | struct list_head kernel_fb_list; |
85 | |||
86 | int (*fb_probe)(struct drm_fb_helper *helper, | ||
87 | struct drm_fb_helper_surface_size *sizes); | ||
84 | }; | 88 | }; |
85 | 89 | ||
86 | int drm_fb_helper_single_fb_probe(struct drm_device *dev, | 90 | int drm_fb_helper_single_fb_probe(struct drm_fb_helper *helper, |
87 | int preferred_bpp, | 91 | int preferred_bpp); |
88 | int (*fb_create)(struct drm_device *dev, | 92 | |
89 | struct drm_fb_helper_surface_size *sizes, | 93 | int drm_fb_helper_init_crtc_count(struct drm_device *dev, |
90 | struct drm_fb_helper **fb_ptr)); | 94 | struct drm_fb_helper *helper, int crtc_count, |
91 | int drm_fb_helper_init_crtc_count(struct drm_fb_helper *helper, int crtc_count, | ||
92 | int max_conn); | 95 | int max_conn); |
93 | void drm_fb_helper_free(struct drm_fb_helper *helper); | 96 | void drm_fb_helper_free(struct drm_fb_helper *helper); |
94 | int drm_fb_helper_blank(int blank, struct fb_info *info); | 97 | int drm_fb_helper_blank(int blank, struct fb_info *info); |
@@ -114,6 +117,8 @@ int drm_fb_helper_add_connector(struct drm_connector *connector); | |||
114 | int drm_fb_helper_parse_command_line(struct drm_device *dev); | 117 | int drm_fb_helper_parse_command_line(struct drm_device *dev); |
115 | int drm_fb_helper_setcmap(struct fb_cmap *cmap, struct fb_info *info); | 118 | int drm_fb_helper_setcmap(struct fb_cmap *cmap, struct fb_info *info); |
116 | 119 | ||
117 | bool drm_helper_fb_hotplug_event(struct drm_device *dev); | 120 | bool drm_helper_fb_hotplug_event(struct drm_fb_helper *fb_helper, u32 max_width, |
118 | bool drm_helper_initial_config(struct drm_device *dev); | 121 | u32 max_height); |
122 | bool drm_fb_helper_initial_config(struct drm_fb_helper *fb_helper); | ||
123 | |||
119 | #endif | 124 | #endif |