'\" t .\" Title: drm_fb_helper_init .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: DRM Core .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "DRM_FB_HELPER_INIT" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "DRM Core" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" drm_fb_helper_init \- initialize a drm_fb_helper structure .SH "SYNOPSIS" .HP \w'int\ drm_fb_helper_init('u .BI "int drm_fb_helper_init(struct\ drm_device\ *\ " "dev" ", struct\ drm_fb_helper\ *\ " "fb_helper" ", int\ " "crtc_count" ", int\ " "max_conn_count" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 drm device .RE .PP \fIfb_helper\fR .RS 4 driver\-allocated fbdev helper structure to initialize .RE .PP \fIcrtc_count\fR .RS 4 maximum number of crtcs to support in this fbdev emulation .RE .PP \fImax_conn_count\fR .RS 4 max connector count .RE .SH "DESCRIPTION" .PP This allocates the structures for the fbdev helper with the given limits\&. Note that this won\*(Aqt yet touch the hardware (through the driver interfaces) nor register the fbdev\&. This is only done in \fBdrm_fb_helper_initial_config\fR to allow driver writes more control over the exact init sequence\&. .PP Drivers must set fb_helper\->funcs before calling \fBdrm_fb_helper_initial_config\fR\&. .SH "RETURNS" .PP Zero if everything went ok, nonzero otherwise\&. .SH "AUTHORS" .PP \fBJesse Barnes\fR <\&jesse.barnes@intel.com\&> .br Intel Corporation, .RS 4 Initial version .RE .PP \fBLaurent Pinchart\fR <\&laurent.pinchart@ideasonboard.com\&> .br Ideas on board SPRL, .RS 4 Driver internals .RE .PP \fBDaniel Vetter\fR <\&daniel.vetter@ffwll.ch\&> .br Intel Corporation, .RS 4 Contributions all over the place .RE .SH "COPYRIGHT" .br