diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-08-07 14:34:28 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-08-20 12:57:07 +0200 |
commit | 6f964990646cd728827e1d8689404878fae0a1fd (patch) | |
tree | 39d322fe6188587e0c4cb9fe0aaad817a9254a9e /include/fb.h | |
parent | eac28050d0838da535ccd8e41ea3975f6143ff7b (diff) | |
download | barebox-6f964990646cd728827e1d8689404878fae0a1fd.tar.gz barebox-6f964990646cd728827e1d8689404878fae0a1fd.tar.xz |
fb: Add shadowfb support
For speeding up rendering we need shadow framebuffers. This is currently
implemented in the gui functions. This does not work properly when two
users (splash and fbconsole) use the same framebuffer since in this case
two different shadow framebuffers will be used. This patch implements
shadowfb handling in the fb core directly. With this the fb device gets
a parameter 'shadowfb'. When this is true the fb core will allocate a
shadow fb and provide it to the users.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/fb.h')
-rw-r--r-- | include/fb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/fb.h b/include/fb.h index 311d5db192..cf113c4300 100644 --- a/include/fb.h +++ b/include/fb.h @@ -118,6 +118,7 @@ struct fb_info { struct device_d dev; /* This is this fb device */ void *screen_base; + void *screen_base_shadow; unsigned long screen_size; void *priv; @@ -141,6 +142,7 @@ struct fb_info { int register_simplefb; /* If true a simplefb device node will * be created. */ + int shadowfb; }; struct display_timings *of_get_display_timings(struct device_node *np); @@ -167,5 +169,6 @@ void fb_edid_add_modes(struct fb_info *info); void fb_of_reserve_add_fixup(struct fb_info *info); int register_fbconsole(struct fb_info *fb); +void *fb_get_screen_base(struct fb_info *info); #endif /* __FB_H */ |