1. NAME

drm_fb_helper_init - initialize a drm_fb_helper structure

2. SYNOPSIS

int drm_fb_helper_init(struct drm_device *  dev , struct drm_fb_helper *  fb_helper , int  crtc_count , int  max_conn_count );

3. ARGUMENTS

dev
    drm device

fb_helper
    driver-allocated fbdev helper structure to initialize

crtc_count
    maximum number of crtcs to support in this fbdev emulation

max_conn_count
    max connector count

4. DESCRIPTION

This allocates the structures for the fbdev helper with the given limits. Note that this wonAqt yet touch the hardware (through the driver interfaces) nor register the fbdev. This is only done in drm_fb_helper_initial_config to allow driver writes more control over the exact init sequence.

Drivers must set fb_helper->funcs before calling drm_fb_helper_initial_config.

5. RETURNS

Zero if everything went ok, nonzero otherwise.

6. AUTHORS

Jesse Barnes <>
Intel Corporation,
    Initial version

Laurent Pinchart <>
Ideas on board SPRL,
    Driver internals

7. COPYRIGHT