'\" t .\" Title: drm_fb_helper_initial_config .\" 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_INITIA" "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_initial_config \- setup a sane initial connector configuration .SH "SYNOPSIS" .HP \w'bool\ drm_fb_helper_initial_config('u .BI "bool drm_fb_helper_initial_config(struct\ drm_fb_helper\ *\ " "fb_helper" ", int\ " "bpp_sel" ");" .SH "ARGUMENTS" .PP \fIfb_helper\fR .RS 4 fb_helper device struct .RE .PP \fIbpp_sel\fR .RS 4 bpp value to use for the framebuffer configuration .RE .SH "DESCRIPTION" .PP Scans the CRTCs and connectors and tries to put together an initial setup\&. At the moment, this is a cloned configuration across all heads with a new framebuffer object as the backing store\&. .PP Note that this also registers the fbdev and so allows userspace to call into the driver through the fbdev interfaces\&. .PP This function will call down into the \->fb_probe callback to let the driver allocate and initialize the fbdev info structure and the drm framebuffer used to back the fbdev\&. \fBdrm_fb_helper_fill_var\fR and \fBdrm_fb_helper_fill_fix\fR are provided as helpers to setup simple default values for the fbdev info structure\&. .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