aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/DocBook/drm.tmpl5
-rw-r--r--drivers/gpu/drm/drm_fb_helper.c19
2 files changed, 20 insertions, 4 deletions
diff --git a/Documentation/DocBook/drm.tmpl b/Documentation/DocBook/drm.tmpl
index b501aa7528d..cb8024e62df 100644
--- a/Documentation/DocBook/drm.tmpl
+++ b/Documentation/DocBook/drm.tmpl
@@ -2100,6 +2100,11 @@ void intel_crt_init(struct drm_device *dev)
2100 <title>Modeset Helper Functions Reference</title> 2100 <title>Modeset Helper Functions Reference</title>
2101!Edrivers/gpu/drm/drm_crtc_helper.c 2101!Edrivers/gpu/drm/drm_crtc_helper.c
2102 </sect2> 2102 </sect2>
2103 <sect2>
2104 <title>fbdev Helper Functions Reference</title>
2105!Pdrivers/gpu/drm/drm_fb_helper.c fbdev helpers
2106!Edrivers/gpu/drm/drm_fb_helper.c
2107 </sect2>
2103 </sect1> 2108 </sect1>
2104 2109
2105 <!-- Internals: vertical blanking --> 2110 <!-- Internals: vertical blanking -->
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c
index 2c44af691e9..05e623a5d09 100644
--- a/drivers/gpu/drm/drm_fb_helper.c
+++ b/drivers/gpu/drm/drm_fb_helper.c
@@ -45,6 +45,15 @@ MODULE_LICENSE("GPL and additional rights");
45 45
46static LIST_HEAD(kernel_fb_helper_list); 46static LIST_HEAD(kernel_fb_helper_list);
47 47
48/**
49 * DOC: fbdev helpers
50 *
51 * The fb helper functions are useful to provide an fbdev on top of a drm kernel
52 * mode setting driver. They can be used mostly independantely from the crtc
53 * helper functions used by many drivers to implement the kernel mode setting
54 * interfaces.
55 */
56
48/* simple single crtc case helper function */ 57/* simple single crtc case helper function */
49int drm_fb_helper_single_add_all_connectors(struct drm_fb_helper *fb_helper) 58int drm_fb_helper_single_add_all_connectors(struct drm_fb_helper *fb_helper)
50{ 59{
@@ -1302,12 +1311,14 @@ out:
1302 1311
1303/** 1312/**
1304 * drm_helper_initial_config - setup a sane initial connector configuration 1313 * drm_helper_initial_config - setup a sane initial connector configuration
1305 * @dev: DRM device 1314 * @fb_helper: fb_helper device struct
1315 * @bpp_sel: bpp value to use for the framebuffer configuration
1306 * 1316 *
1307 * LOCKING: 1317 * LOCKING:
1308 * Called at init time, must take mode config lock. 1318 * Called at init time by the driver to set up the @fb_helper initial
1319 * configuration, must take the mode config lock.
1309 * 1320 *
1310 * Scan the CRTCs and connectors and try to put together an initial setup. 1321 * Scans the CRTCs and connectors and tries to put together an initial setup.
1311 * At the moment, this is a cloned configuration across all heads with 1322 * At the moment, this is a cloned configuration across all heads with
1312 * a new framebuffer object as the backing store. 1323 * a new framebuffer object as the backing store.
1313 * 1324 *
@@ -1341,7 +1352,7 @@ EXPORT_SYMBOL(drm_fb_helper_initial_config);
1341 1352
1342/** 1353/**
1343 * drm_fb_helper_hotplug_event - respond to a hotplug notification by 1354 * drm_fb_helper_hotplug_event - respond to a hotplug notification by
1344 * probing all the outputs attached to the fb. 1355 * probing all the outputs attached to the fb
1345 * @fb_helper: the drm_fb_helper 1356 * @fb_helper: the drm_fb_helper
1346 * 1357 *
1347 * LOCKING: 1358 * LOCKING: