1 From 0e3126a6288c7816c30075369332ccf5f614f2dc Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime.ripard@bootlin.com>
3 Date: Wed, 19 Jun 2019 12:17:48 +0200
4 Subject: [PATCH 733/773] drm/connector: Add documentation for drm_cmdline_mode
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 commit 772cd52c5574b04b00a97d638b2cfe94c0c1a9b6 upstream.
11 The struct drm_cmdline_mode holds the result of the command line parsers.
12 However, it wasn't documented so far, so let's do that.
14 Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
15 Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
16 Link: https://patchwork.freedesktop.org/patch/msgid/963c893c16c6a25fc469b53c726f493d99bdc578.1560783090.git-series.maxime.ripard@bootlin.com
18 include/drm/drm_connector.h | 86 ++++++++++++++++++++++++++++++++++++-
19 1 file changed, 84 insertions(+), 2 deletions(-)
21 --- a/include/drm/drm_connector.h
22 +++ b/include/drm/drm_connector.h
23 @@ -755,18 +755,100 @@ struct drm_connector_funcs {
24 const struct drm_connector_state *state);
27 -/* mode specified on the command line */
29 + * struct drm_cmdline_mode - DRM Mode passed through the kernel command-line
31 + * Each connector can have an initial mode with additional options
32 + * passed through the kernel command line. This structure allows to
33 + * express those parameters and will be filled by the command-line
36 struct drm_cmdline_mode {
40 + * Has a mode been read from the command-line?
45 + * @refresh_specified:
47 + * Did the mode have a preferred refresh rate?
49 bool refresh_specified;
54 + * Did the mode have a preferred BPP?
62 + * Active resolution on the X axis, in pixels.
69 + * Active resolution on the Y axis, in pixels.
76 + * Bits per pixels for the mode.
83 + * Refresh rate, in Hertz.
90 + * Do we need to use reduced blanking?
97 + * The mode is interlaced.
104 + * The timings will be calculated using the VESA Coordinated
105 + * Video Timings instead of looking up the mode from a table.
112 + * Add margins to the mode calculation (1.8% of xres rounded
113 + * down to 8 pixels and 1.8% of yres).
120 + * Ignore the hotplug state of the connector, and force its
121 + * state to one of the DRM_FORCE_* values.
123 enum drm_connector_force force;