Name

struct drm_fb_helper — main structure to emulate fbdev on top of KMS

Synopsis

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];
};  

Members

fb

Scanout framebuffer object

dev

DRM device

crtc_count

number of possible CRTCs

crtc_info

per-CRTC helper state (mode, x/y offset, etc)

connector_count

number of connected connectors

connector_info_alloc_count

size of connector_info

connector_info

array of per-connector information

funcs

driver callbacks for fb helper

fbdev

emulated fbdev device info struct

pseudo_palette[17]

fake palette of 16 colors

Description

This is the main structure used by the fbdev helpers. Drivers supporting fbdev emulation should embedded this into their overall driver structure. Drivers must also fill out a struct drm_fb_helper_funcs with a few operations.