diff options
author | Andre Heider <a.heider@gmail.com> | 2013-11-05 00:00:59 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-11-06 09:59:04 +0100 |
commit | 485544f0fb173e1fe59b70bca0894898a37e9fb0 (patch) | |
tree | 1c7511333c44c654a81c3222d401d7df6e27fb56 /include/fb.h | |
parent | 7a305b2d8a92cdf42925c7983b61d4a06fe6a789 (diff) | |
download | barebox-485544f0fb173e1fe59b70bca0894898a37e9fb0.tar.gz barebox-485544f0fb173e1fe59b70bca0894898a37e9fb0.tar.xz |
fb: add a line_length value to struct fb_info
Add support for framebuffers with noncontiguous horizontal lines.
Video drivers can set this value if the hardware requires it.
In case a driver does not set it, the current value of
xres * (bpp / 8) is used instead.
Signed-off-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/fb.h')
-rw-r--r-- | include/fb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fb.h b/include/fb.h index df4ba8ebe7..cf9ffa05d9 100644 --- a/include/fb.h +++ b/include/fb.h @@ -94,6 +94,7 @@ struct fb_info { u32 xres; /* visible resolution */ u32 yres; u32 bits_per_pixel; /* guess what */ + u32 line_length; /* length of a line in bytes */ u32 grayscale; /* != 0 Graylevels instead of colors */ |