diff options
author | Bastian Stender <bst@pengutronix.de> | 2017-02-28 15:31:26 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-02-28 15:52:53 +0100 |
commit | b9cf45f00c6e120f58f02f45ef949a7be54da999 (patch) | |
tree | 6fdcf7a7e162764a341e6f73c4b99c123b5c0a80 /include | |
parent | b4f55fcf355a4d0ac456445a5f42f259f2812b57 (diff) | |
download | barebox-b9cf45f00c6e120f58f02f45ef949a7be54da999.tar.gz barebox-b9cf45f00c6e120f58f02f45ef949a7be54da999.tar.xz |
fb: introduce flush for virtual framebuffer
Some drivers need an explicit sync method to flush the virtual
framebuffer to the display. It is called fb_flush().
fb_flush() gets called on fbc_putc, on fb_close and in the pattern cycle
in the fbtest command.
Signed-off-by: Bastian Stender <bst@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/fb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fb.h b/include/fb.h index b2a9c7152b..271b939968 100644 --- a/include/fb.h +++ b/include/fb.h @@ -86,6 +86,7 @@ struct fb_ops { void (*fb_enable)(struct fb_info *info); void (*fb_disable)(struct fb_info *info); int (*fb_activate_var)(struct fb_info *info); + void (*fb_flush)(struct fb_info *info); }; /* @@ -152,6 +153,7 @@ int register_framebuffer(struct fb_info *info); int fb_enable(struct fb_info *info); int fb_disable(struct fb_info *info); +void fb_flush(struct fb_info *info); #define FBIOGET_SCREENINFO _IOR('F', 1, loff_t) #define FBIO_ENABLE _IO('F', 2) |