summaryrefslogtreecommitdiffstats
path: root/Documentation/DocBook
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2015-10-11 05:55:00 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-10-16 09:50:58 -0400
commit6648f4879a12cd428c8584e03b41576521b7198f (patch)
tree7601ebceaea6d9c38b754e600c86cbd7a0af5dd0 /Documentation/DocBook
parent7f81707429fe52b2842f0bfb6dac62329ea1d96f (diff)
gpu/doc: Add vga_switcheroo documentation
Requires Markdown support. Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'Documentation/DocBook')
-rw-r--r--Documentation/DocBook/gpu.tmpl76
1 files changed, 72 insertions, 4 deletions
diff --git a/Documentation/DocBook/gpu.tmpl b/Documentation/DocBook/gpu.tmpl
index ab51cb3dcbc5..7f90c1e65690 100644
--- a/Documentation/DocBook/gpu.tmpl
+++ b/Documentation/DocBook/gpu.tmpl
@@ -40,6 +40,16 @@
40 </address> 40 </address>
41 </affiliation> 41 </affiliation>
42 </author> 42 </author>
43 <author>
44 <firstname>Lukas</firstname>
45 <surname>Wunner</surname>
46 <contrib>vga_switcheroo documentation</contrib>
47 <affiliation>
48 <address>
49 <email>lukas@wunner.de</email>
50 </address>
51 </affiliation>
52 </author>
43 </authorgroup> 53 </authorgroup>
44 54
45 <copyright> 55 <copyright>
@@ -51,6 +61,10 @@
51 <year>2012</year> 61 <year>2012</year>
52 <holder>Laurent Pinchart</holder> 62 <holder>Laurent Pinchart</holder>
53 </copyright> 63 </copyright>
64 <copyright>
65 <year>2015</year>
66 <holder>Lukas Wunner</holder>
67 </copyright>
54 68
55 <legalnotice> 69 <legalnotice>
56 <para> 70 <para>
@@ -69,6 +83,13 @@
69 <revremark>Added extensive documentation about driver internals. 83 <revremark>Added extensive documentation about driver internals.
70 </revremark> 84 </revremark>
71 </revision> 85 </revision>
86 <revision>
87 <revnumber>1.1</revnumber>
88 <date>2015-10-11</date>
89 <authorinitials>LW</authorinitials>
90 <revremark>Added vga_switcheroo documentation.
91 </revremark>
92 </revision>
72 </revhistory> 93 </revhistory>
73 </bookinfo> 94 </bookinfo>
74 95
@@ -3583,10 +3604,11 @@ void (*postclose) (struct drm_device *, struct drm_file *);</synopsis>
3583 plane properties to default value, so that a subsequent open of the 3604 plane properties to default value, so that a subsequent open of the
3584 device will not inherit state from the previous user. It can also be 3605 device will not inherit state from the previous user. It can also be
3585 used to execute delayed power switching state changes, e.g. in 3606 used to execute delayed power switching state changes, e.g. in
3586 conjunction with the vga_switcheroo infrastructure. Beyond that KMS 3607 conjunction with the vga_switcheroo infrastructure (see
3587 drivers should not do any further cleanup. Only legacy UMS drivers might 3608 <xref linkend="vga_switcheroo"/>). Beyond that KMS drivers should not
3588 need to clean up device state so that the vga console or an independent 3609 do any further cleanup. Only legacy UMS drivers might need to clean up
3589 fbdev driver could take over. 3610 device state so that the vga console or an independent fbdev driver
3611 could take over.
3590 </para> 3612 </para>
3591 </sect2> 3613 </sect2>
3592 <sect2> 3614 <sect2>
@@ -4200,4 +4222,50 @@ int num_ioctls;</synopsis>
4200 </chapter> 4222 </chapter>
4201!Cdrivers/gpu/drm/i915/i915_irq.c 4223!Cdrivers/gpu/drm/i915/i915_irq.c
4202</part> 4224</part>
4225
4226<part id="vga_switcheroo">
4227 <title>vga_switcheroo</title>
4228 <partintro>
4229!Pdrivers/gpu/vga/vga_switcheroo.c Overview
4230 </partintro>
4231
4232 <chapter id="modes_of_use">
4233 <title>Modes of Use</title>
4234 <sect1>
4235 <title>Manual switching and manual power control</title>
4236!Pdrivers/gpu/vga/vga_switcheroo.c Manual switching and manual power control
4237 </sect1>
4238 <sect1>
4239 <title>Driver power control</title>
4240!Pdrivers/gpu/vga/vga_switcheroo.c Driver power control
4241 </sect1>
4242 </chapter>
4243
4244 <chapter id="pubfunctions">
4245 <title>Public functions</title>
4246!Edrivers/gpu/vga/vga_switcheroo.c
4247 </chapter>
4248
4249 <chapter id="pubstructures">
4250 <title>Public structures</title>
4251!Finclude/linux/vga_switcheroo.h vga_switcheroo_handler
4252!Finclude/linux/vga_switcheroo.h vga_switcheroo_client_ops
4253 </chapter>
4254
4255 <chapter id="pubconstants">
4256 <title>Public constants</title>
4257!Finclude/linux/vga_switcheroo.h vga_switcheroo_client_id
4258!Finclude/linux/vga_switcheroo.h vga_switcheroo_state
4259 </chapter>
4260
4261 <chapter id="privstructures">
4262 <title>Private structures</title>
4263!Fdrivers/gpu/vga/vga_switcheroo.c vgasr_priv
4264!Fdrivers/gpu/vga/vga_switcheroo.c vga_switcheroo_client
4265 </chapter>
4266
4267!Cdrivers/gpu/vga/vga_switcheroo.c
4268!Cinclude/linux/vga_switcheroo.h
4269</part>
4270
4203</book> 4271</book>