In this section, let us summarize the things discussed in the preceding section. In order to write framebuffer driver, you have to do the following:
- Fill a struct fb_var_screeninfo structure in order to provide information on framebuffer variable properties. Those properties can be changed by user space.
- Fill a struct fb_fix_screeninfo structure, to provide fixed parameters.
- Set up a struct fb_ops structure, providing necessary callback functions, which will used by the framebuffer subsystem in response to user actions.
- Still in the struct fb_ops structure, you have to provide accelerated functions callback, if supported by the device.
- Set up a struct fb_info structure, feeding it with structures filled in the previous ...