summaryrefslogtreecommitdiffstats
path: root/include/fb.h
diff options
context:
space:
mode:
authorAndre Heider <a.heider@gmail.com>2013-11-05 00:00:59 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-11-06 09:59:04 +0100
commit485544f0fb173e1fe59b70bca0894898a37e9fb0 (patch)
tree1c7511333c44c654a81c3222d401d7df6e27fb56 /include/fb.h
parent7a305b2d8a92cdf42925c7983b61d4a06fe6a789 (diff)
downloadbarebox-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.h1
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 */