1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>struct vga_switcheroo_client</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux GPU Driver Developer's Guide"><link rel="up" href="privstructures.html" title="Chapter 9. Private structures"><link rel="prev" href="API-struct-vgasr-priv.html" title="struct vgasr_priv"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct vga_switcheroo_client</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-vgasr-priv.html">Prev</a> </td><th width="60%" align="center">Chapter 9. Private structures</th><td width="20%" align="right"> </td></tr></table><hr></div><div class="refentry"><a name="API-struct-vga-switcheroo-client"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct vga_switcheroo_client — 2 registered client 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct vga_switcheroo_client { 5 struct pci_dev * pdev; 6 struct fb_info * fb_info; 7 enum vga_switcheroo_state pwr_state; 8 const struct vga_switcheroo_client_ops * ops; 9 enum vga_switcheroo_client_id id; 10 bool active; 11 bool driver_power_control; 12 struct list_head list; 13}; </pre></div><div class="refsect1"><a name="id-1.5.7.3.5"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">pdev</span></dt><dd><p> 14client pci device 15 </p></dd><dt><span class="term">fb_info</span></dt><dd><p> 16framebuffer to which console is remapped on switching 17 </p></dd><dt><span class="term">pwr_state</span></dt><dd><p> 18current power state 19 </p></dd><dt><span class="term">ops</span></dt><dd><p> 20client callbacks 21 </p></dd><dt><span class="term">id</span></dt><dd><p> 22client identifier. Determining the id requires the handler, 23so gpus are initially assigned VGA_SWITCHEROO_UNKNOWN_ID 24and later given their true id in <code class="function">vga_switcheroo_enable</code> 25 </p></dd><dt><span class="term">active</span></dt><dd><p> 26whether the outputs are currently switched to this client 27 </p></dd><dt><span class="term">driver_power_control</span></dt><dd><p> 28whether power state is controlled by the driver's 29runtime pm. If true, writing ON and OFF to the vga_switcheroo debugfs 30interface is a no-op so as not to interfere with runtime pm 31 </p></dd><dt><span class="term">list</span></dt><dd><p> 32client list 33 </p></dd></dl></div></div><div class="refsect1"><a name="id-1.5.7.3.6"></a><h2>Description</h2><p> 34 Registered client. A client can be either a GPU or an audio device on a GPU. 35 For audio clients, the <em class="parameter"><code>fb_info</code></em>, <em class="parameter"><code>active</code></em> and <em class="parameter"><code>driver_power_control</code></em> members 36 are bogus. 37</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-vgasr-priv.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="privstructures.html">Up</a></td><td width="40%" align="right"> </td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct vgasr_priv</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></body></html> 38