diff options
author | Dave Airlie <airlied@redhat.com> | 2008-06-04 11:59:28 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-06-04 11:59:28 +1000 |
commit | 76a44f14d6339e5bc0c936ef4a360f6c152511bd (patch) | |
tree | 9a30ceb48967616ec1c44760a7ce2a7fb5ea4a04 /linux-core/drm_crtc_helper.c | |
parent | 40229b6ad539cebad5ebe8ca373796ca2422efdb (diff) |
drm/modesetting: overhaul the fb create/delete.
Move TTM code into the driver
Diffstat (limited to 'linux-core/drm_crtc_helper.c')
-rw-r--r-- | linux-core/drm_crtc_helper.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/linux-core/drm_crtc_helper.c b/linux-core/drm_crtc_helper.c index fcb1243c..f35c0a49 100644 --- a/linux-core/drm_crtc_helper.c +++ b/linux-core/drm_crtc_helper.c @@ -749,3 +749,17 @@ int drm_helper_hotplug_stage_two(struct drm_device *dev, struct drm_connector *c } EXPORT_SYMBOL(drm_helper_hotplug_stage_two); + +int drm_helper_mode_fill_fb_struct(struct drm_framebuffer *fb, + struct drm_mode_fb_cmd *mode_cmd) +{ + fb->width = mode_cmd->width; + fb->height = mode_cmd->height; + fb->pitch = mode_cmd->pitch; + fb->bits_per_pixel = mode_cmd->bpp; + fb->depth = mode_cmd->depth; + fb->mm_handle = mode_cmd->handle; + + return 0; +} +EXPORT_SYMBOL(drm_helper_mode_fill_fb_struct); |