6.4. Software Interfaces
6.4.1. 'fbdev' Driver Interface
6.4.1.1. Application Interface
open ()
To open a framebuffer device
close ()
To close a framebuffer device
ioctl ()
To send ioctl commands to the framebuffer driver.
mmap ()
To obtain the framebuffer region as mmap'ed area in user space.
6.4.1.2. Supported Standard IOCTLs
FBIOGET_VSCREENINFO, FBIOPUT_VSCREENINFO
These I/O controls are used to query and set the so-called variable screen
info. This allows an application to query or change the display mode, including
the color depth, resolution, timing etc. These I/O controls accept a pointer
to a struct fb_var_screeninfo structure. The video mode data supplied in the
fb_var_screeninfo struct is translated to values loaded into the display controller
registers.
FBIOGET_FSCREENINFO
This I/O control can be used by applications to get the fixed properties of the
display, e.g. the start address of the framebuffer memory. This I/O control
accepts a pointer to a struct fb_fix_screeninfo
FBIOGETCMAP, FBIOPUTCMAP
These I/O controls are used to get and set the color-map for the framebuffer.
These I/O controls accept a pointer to a struct fb_cmap structure.
FBIO_BLANK
This I/O control is used to blank or unblank the framebuffer console.
102
Platform Support Products
Display Driver
Software Interfaces
Version 02.01.01.08