diff options
author | Noralf Trønnes <noralf@tronnes.org> | 2016-04-28 17:18:35 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-05-02 16:25:08 +0200 |
commit | 199c77179c879e6cbca178bf67e9153dc89fb3d1 (patch) | |
tree | 79332b26817c6662ad54f9ee4555920001d70ed0 /drivers/gpu/drm/qxl/qxl_fb.c | |
parent | ba0263340a2aeaf5f08e4f2b0f4c29e300828b06 (diff) |
drm/fb-cma-helper: Add fb_deferred_io support
This adds fbdev deferred io support if CONFIG_FB_DEFERRED_IO is enabled.
The driver has to provide a (struct drm_framebuffer_funcs *)->dirty()
callback to get notification of fbdev framebuffer changes.
If the dirty() hook is set, then fb_deferred_io is set up automatically
by the helper.
Two functions have been added so that the driver can provide a dirty()
function:
- drm_fbdev_cma_init_with_funcs()
This makes it possible for the driver to provided a custom
(struct drm_fb_helper_funcs *)->fb_probe() function.
- drm_fbdev_cma_create_with_funcs()
This is used by the .fb_probe hook to set a driver provided
(struct drm_framebuffer_funcs *)->dirty() function.
Cc: laurent.pinchart@ideasonboard.com
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1461856717-6476-6-git-send-email-noralf@tronnes.org
Diffstat (limited to 'drivers/gpu/drm/qxl/qxl_fb.c')
0 files changed, 0 insertions, 0 deletions