1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>enum vga_switcheroo_client_id</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="pubconstants.html" title="Chapter 8. Public constants"><link rel="prev" href="pubconstants.html" title="Chapter 8. Public constants"><link rel="next" href="API-enum-vga-switcheroo-state.html" title="enum vga_switcheroo_state"></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">enum vga_switcheroo_client_id</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="pubconstants.html">Prev</a> </td><th width="60%" align="center">Chapter 8. Public constants</th><td width="20%" align="right"> <a accesskey="n" href="API-enum-vga-switcheroo-state.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-enum-vga-switcheroo-client-id"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>enum vga_switcheroo_client_id — 
2  client identifier
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4enum vga_switcheroo_client_id {
5  VGA_SWITCHEROO_UNKNOWN_ID,
6  VGA_SWITCHEROO_IGD,
7  VGA_SWITCHEROO_DIS,
8  VGA_SWITCHEROO_MAX_CLIENTS
9};  </pre></div><div class="refsect1"><a name="id-1.5.6.2.5"></a><h2>Constants</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">VGA_SWITCHEROO_UNKNOWN_ID</span></dt><dd><p>
10initial identifier assigned to vga clients.
11Determining the id requires the handler, so GPUs are given their
12true id in a delayed fashion in <code class="function">vga_switcheroo_enable</code>
13      </p></dd><dt><span class="term">VGA_SWITCHEROO_IGD</span></dt><dd><p>
14integrated graphics device
15      </p></dd><dt><span class="term">VGA_SWITCHEROO_DIS</span></dt><dd><p>
16discrete graphics device
17      </p></dd><dt><span class="term">VGA_SWITCHEROO_MAX_CLIENTS</span></dt><dd><p>
18currently no more than two GPUs are supported
19      </p></dd></dl></div></div><div class="refsect1"><a name="id-1.5.6.2.6"></a><h2>Description</h2><p>
20   Client identifier. Audio clients use the same identifier &amp; 0x100.
21</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="pubconstants.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="pubconstants.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-enum-vga-switcheroo-state.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 8. Public constants </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">enum vga_switcheroo_state</span></td></tr></table></div></body></html>
22