struct drm_fb_helper — main structure to emulate fbdev on top of KMS
struct drm_fb_helper { struct drm_framebuffer * fb; struct drm_device * dev; int crtc_count; struct drm_fb_helper_crtc * crtc_info; int connector_count; int connector_info_alloc_count; struct drm_fb_helper_connector ** connector_info; const struct drm_fb_helper_funcs * funcs; struct fb_info * fbdev; u32 pseudo_palette[17]; };
Scanout framebuffer object
DRM device
number of possible CRTCs
per-CRTC helper state (mode, x/y offset, etc)
number of connected connectors
size of connector_info
array of per-connector information
driver callbacks for fb helper
emulated fbdev device info struct
fake palette of 16 colors