1 =============================
2 Frame Buffer device internals
3 =============================
5 This is a first start for some documentation about frame buffer device
10 - Geert Uytterhoeven <geert@linux-m68k.org>, 21 July 1998
11 - James Simmons <jsimmons@user.sf.net>, Nov 26 2002
13 --------------------------------------------------------------------------------
15 Structures used by the frame buffer device API
16 ==============================================
18 The following structures play a role in the game of frame buffer devices. They
19 are defined in <linux/fb.h>.
21 1. Outside the kernel (user space)
23 - struct fb_fix_screeninfo
25 Device independent unchangeable information about a frame buffer device and
26 a specific video mode. This can be obtained using the FBIOGET_FSCREENINFO
29 - struct fb_var_screeninfo
31 Device independent changeable information about a frame buffer device and a
32 specific video mode. This can be obtained using the FBIOGET_VSCREENINFO
33 ioctl, and updated with the FBIOPUT_VSCREENINFO ioctl. If you want to pan
34 the screen only, you can use the FBIOPAN_DISPLAY ioctl.
38 Device independent colormap information. You can get and set the colormap
39 using the FBIOGETCMAP and FBIOPUTCMAP ioctls.
46 Generic information, API and low level information about a specific frame
47 buffer device instance (slot number, board address, ...).
51 Device dependent information that uniquely defines the video mode for this
52 particular piece of hardware.
55 Visuals used by the frame buffer device API
56 ===========================================
59 Monochrome (FB_VISUAL_MONO01 and FB_VISUAL_MONO10)
60 --------------------------------------------------
61 Each pixel is either black or white.
64 Pseudo color (FB_VISUAL_PSEUDOCOLOR and FB_VISUAL_STATIC_PSEUDOCOLOR)
65 ---------------------------------------------------------------------
66 The whole pixel value is fed through a programmable lookup table that has one
67 color (including red, green, and blue intensities) for each possible pixel
68 value, and that color is displayed.
71 True color (FB_VISUAL_TRUECOLOR)
72 --------------------------------
73 The pixel value is broken up into red, green, and blue fields.
76 Direct color (FB_VISUAL_DIRECTCOLOR)
77 ------------------------------------
78 The pixel value is broken up into red, green, and blue fields, each of which
79 are looked up in separate red, green, and blue lookup tables.
84 Grayscale and static grayscale are special variants of pseudo color and static
85 pseudo color, where the red, green and blue components are always equal to