aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-01-23 09:06:15 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-13 07:48:38 -0400
commit3ec0db819315c765b3c7bbf7e9dee2fe1f186f47 (patch)
tree49f3db94b8c8b327a8420e9cca3b464087bdc86a
parent69fa5293bf8d0ade3fd726848c7af925227e9180 (diff)
drm/doc: Integrate drm_modes.c kerneldoc
And clean it up so that there's no kerneldoc warnings. There's still a lot to do with this one here. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--Documentation/DocBook/drm.tmpl4
-rw-r--r--drivers/gpu/drm/drm_modes.c28
2 files changed, 21 insertions, 11 deletions
diff --git a/Documentation/DocBook/drm.tmpl b/Documentation/DocBook/drm.tmpl
index d68bb0a2dc06..50af3298ac1f 100644
--- a/Documentation/DocBook/drm.tmpl
+++ b/Documentation/DocBook/drm.tmpl
@@ -964,6 +964,10 @@ int max_width, max_height;</synopsis>
964 </listitem> 964 </listitem>
965 </itemizedlist> 965 </itemizedlist>
966 <sect2> 966 <sect2>
967 <title>Display Modes Function Reference</title>
968!Edrivers/gpu/drm/drm_modes.c
969 </sect2>
970 <sect2>
967 <title>Frame Buffer Creation</title> 971 <title>Frame Buffer Creation</title>
968 <synopsis>struct drm_framebuffer *(*fb_create)(struct drm_device *dev, 972 <synopsis>struct drm_framebuffer *(*fb_create)(struct drm_device *dev,
969 struct drm_file *file_priv, 973 struct drm_file *file_priv,
diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c
index b0733153dfd2..4892194937f3 100644
--- a/drivers/gpu/drm/drm_modes.c
+++ b/drivers/gpu/drm/drm_modes.c
@@ -39,12 +39,11 @@
39#include <video/videomode.h> 39#include <video/videomode.h>
40 40
41/** 41/**
42 * drm_mode_debug_printmodeline - debug print a mode 42 * drm_mode_debug_printmodeline - print a mode to dmesg
43 * @dev: DRM device
44 * @mode: mode to print 43 * @mode: mode to print
45 * 44 *
46 * LOCKING: 45 * LOCKING:
47 * None. 46 * none.
48 * 47 *
49 * Describe @mode using DRM_DEBUG. 48 * Describe @mode using DRM_DEBUG.
50 */ 49 */
@@ -68,6 +67,7 @@ EXPORT_SYMBOL(drm_mode_debug_printmodeline);
68 * @vrefresh : vrefresh rate 67 * @vrefresh : vrefresh rate
69 * @reduced : Whether the GTF calculation is simplified 68 * @reduced : Whether the GTF calculation is simplified
70 * @interlaced:Whether the interlace is supported 69 * @interlaced:Whether the interlace is supported
70 * @margins: whether to add margins or not
71 * 71 *
72 * LOCKING: 72 * LOCKING:
73 * none. 73 * none.
@@ -83,11 +83,11 @@ EXPORT_SYMBOL(drm_mode_debug_printmodeline);
83 * And it is copied from xf86CVTmode in xserver/hw/xfree86/modes/xf86cvt.c. 83 * And it is copied from xf86CVTmode in xserver/hw/xfree86/modes/xf86cvt.c.
84 * What I have done is to translate it by using integer calculation. 84 * What I have done is to translate it by using integer calculation.
85 */ 85 */
86#define HV_FACTOR 1000
87struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay, 86struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay,
88 int vdisplay, int vrefresh, 87 int vdisplay, int vrefresh,
89 bool reduced, bool interlaced, bool margins) 88 bool reduced, bool interlaced, bool margins)
90{ 89{
90#define HV_FACTOR 1000
91 /* 1) top/bottom margin size (% of height) - default: 1.8, */ 91 /* 1) top/bottom margin size (% of height) - default: 1.8, */
92#define CVT_MARGIN_PERCENTAGE 18 92#define CVT_MARGIN_PERCENTAGE 18
93 /* 2) character cell horizontal granularity (pixels) - default 8 */ 93 /* 2) character cell horizontal granularity (pixels) - default 8 */
@@ -289,7 +289,10 @@ EXPORT_SYMBOL(drm_cvt_mode);
289 * @vrefresh :vrefresh rate. 289 * @vrefresh :vrefresh rate.
290 * @interlaced :whether the interlace is supported 290 * @interlaced :whether the interlace is supported
291 * @margins :desired margin size 291 * @margins :desired margin size
292 * @GTF_[MCKJ] :extended GTF formula parameters 292 * @GTF_M: extended GTF formula parameters
293 * @GTF_2C: extended GTF formula parameters
294 * @GTF_K: extended GTF formula parameters
295 * @GTF_2J: extended GTF formula parameters
293 * 296 *
294 * LOCKING. 297 * LOCKING.
295 * none. 298 * none.
@@ -499,10 +502,11 @@ EXPORT_SYMBOL(drm_gtf_mode_complex);
499 */ 502 */
500struct drm_display_mode * 503struct drm_display_mode *
501drm_gtf_mode(struct drm_device *dev, int hdisplay, int vdisplay, int vrefresh, 504drm_gtf_mode(struct drm_device *dev, int hdisplay, int vdisplay, int vrefresh,
502 bool lace, int margins) 505 bool interlaced, int margins)
503{ 506{
504 return drm_gtf_mode_complex(dev, hdisplay, vdisplay, vrefresh, lace, 507 return drm_gtf_mode_complex(dev, hdisplay, vdisplay, vrefresh,
505 margins, 600, 40 * 2, 128, 20 * 2); 508 interlaced, margins,
509 600, 40 * 2, 128, 20 * 2);
506} 510}
507EXPORT_SYMBOL(drm_gtf_mode); 511EXPORT_SYMBOL(drm_gtf_mode);
508 512
@@ -805,7 +809,8 @@ EXPORT_SYMBOL(drm_mode_copy);
805 809
806/** 810/**
807 * drm_mode_duplicate - allocate and duplicate an existing mode 811 * drm_mode_duplicate - allocate and duplicate an existing mode
808 * @m: mode to duplicate 812 * @dev: drm_device to allocate the duplicated mode for
813 * @mode: mode to duplicate
809 * 814 *
810 * LOCKING: 815 * LOCKING:
811 * None. 816 * None.
@@ -1057,8 +1062,9 @@ EXPORT_SYMBOL(drm_mode_connector_list_update);
1057 1062
1058/** 1063/**
1059 * drm_mode_parse_command_line_for_connector - parse command line for connector 1064 * drm_mode_parse_command_line_for_connector - parse command line for connector
1060 * @mode_option - per connector mode option 1065 * @mode_option: per connector mode option
1061 * @connector - connector to parse line for 1066 * @connector: connector to parse line for
1067 * @mode: preallocated mode structure to fill out
1062 * 1068 *
1063 * This parses the connector specific then generic command lines for 1069 * This parses the connector specific then generic command lines for
1064 * modes and options to configure the connector. 1070 * modes and options to configure the connector.