diff options
author | marha <marha@users.sourceforge.net> | 2009-10-21 19:07:36 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-10-21 19:07:36 +0000 |
commit | 1f876171067c04fc21fccd5a3051f982fd85c0f0 (patch) | |
tree | 1f7883e3e5f5ef5cd401ee7c70dd5e679efd0615 /xorg-server/hw/dmx/doc/html/usb-common_8c.html | |
parent | 7687adcc34c9fc43d526f30b1cf2039b0af48841 (diff) | |
download | vcxsrv-1f876171067c04fc21fccd5a3051f982fd85c0f0.tar.gz vcxsrv-1f876171067c04fc21fccd5a3051f982fd85c0f0.tar.bz2 vcxsrv-1f876171067c04fc21fccd5a3051f982fd85c0f0.zip |
Updated to xorg-server-1.7.99.1
Diffstat (limited to 'xorg-server/hw/dmx/doc/html/usb-common_8c.html')
-rw-r--r-- | xorg-server/hw/dmx/doc/html/usb-common_8c.html | 812 |
1 files changed, 661 insertions, 151 deletions
diff --git a/xorg-server/hw/dmx/doc/html/usb-common_8c.html b/xorg-server/hw/dmx/doc/html/usb-common_8c.html index 3c1882a5b..0032cf4eb 100644 --- a/xorg-server/hw/dmx/doc/html/usb-common_8c.html +++ b/xorg-server/hw/dmx/doc/html/usb-common_8c.html @@ -6,208 +6,718 @@ <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body> -<!-- Generated by Doxygen 1.3.4 --> -<div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div> -<h1>usb-common.c File Reference</h1><code>#include "<a class="el" href="usb-private_8h-source.html">usb-private.h</a>"</code><br> -<code>#include "<a class="el" href="usb-mouse_8h-source.html">usb-mouse.h</a>"</code><br> -<table border=0 cellpadding=0 cellspacing=0> -<tr><td></td></tr> -<tr><td colspan=2><br><h2>Functions</h2></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="usb-common_8c.html#a21">usbRead</a> (DevicePtr pDev, MOTIONPROC motion, ENQUEUEPROC enqueue, int minButton, BLOCK block)</td></tr> +<!-- Generated by Doxygen 1.6.1 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="main.html"><span>Main Page</span></a></li> + <li><a href="annotated.html"><span>Data Structures</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>Globals</span></a></li> + </ul> + </div> +</div> +<div class="contents"> +<h1>usb-common.c File Reference</h1><code>#include "<a class="el" href="usb-private_8h_source.html">usb-private.h</a>"</code><br/> +<code>#include "<a class="el" href="usb-mouse_8h_source.html">usb-mouse.h</a>"</code><br/> +<table border="0" cellpadding="0" cellspacing="0"> +<tr><td colspan="2"><h2>Defines</h2></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a4745b9c19ea1cc480dc2b58e59d1e9bb">USB_COMMON_DEBUG</a> 1</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#aacf069d346230dd96812d5395728eef2">GETPRIV</a></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a5340233a04762d00a2fc39e922489cbd">GETNAME</a></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a837722a322e811d5e42242655f277b87">LOG0</a>(f) dmxLog(dmxDebug,f)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#aab4b3434c36117a2ecdddec40716d97a">LOG1</a>(f, a) dmxLog(dmxDebug,f,a)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a16da5d597d9bfb9e569a9bfb6996382c">LOG2</a>(f, a, b) dmxLog(dmxDebug,f,a,b)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a8247f0bca25789d2ac27674eb26e223f">LOG3</a>(f, a, b, c) dmxLog(dmxDebug,f,a,b,c)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a362570e9b2c9ac295638be490c81d1fb">LOG1INPUT</a>(p, f, a) dmxLogInput(p->dmxInput,f,a)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#ab34476eaeb97ba2e10bab547085c22b8">LOG3INPUT</a>(p, f, a, b, c) dmxLogInput(p->dmxInput,f,a,b,c)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#aa9a2c0ce5f5776ac17b498dc1d90ce1f">LOG5INPUT</a>(p, f, a, b, c, d, e) dmxLogInput(p->dmxInput,f,a,b,c,d,e)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a6bce6020b913db8afe5d94bc63d1b355">FATAL0</a>(f) dmxLog(dmxFatal,f)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a11bcea7c6bc7dbe400a3855f5b8676ce">FATAL1</a>(f, a) dmxLog(dmxFatal,f,a)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a7952c9e9fe9c75be4964fc53a4299183">FATAL2</a>(f, a, b) dmxLog(dmxFatal,f,a,b)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a11a17082bee3b1b8217ce8a12adcf814">MOTIONPROC</a> <a class="el" href="dmxinputinit_8h.html#a1279820425966adabf5c77357e4a289c">dmxMotionProcPtr</a></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a017080ce5e42667a6582cf858e7185cd">ENQUEUEPROC</a> <a class="el" href="dmxinputinit_8h.html#adbd955b9ddbc5ffe38ff65e3f068f205">dmxEnqueueProcPtr</a></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#aa35a985e998ad5e2187e13434dca118a">CHECKPROC</a> <a class="el" href="dmxinputinit_8h.html#a838cb45fd92d5cf506e4179b601f7dbc">dmxCheckSpecialProcPtr</a></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a52220397ecea855b3a99746e451426e1">BLOCK</a> <a class="el" href="dmxinput_8h.html#a3a7195ab3516c5354bac4ca80b2eedb7">DMXBlockType</a></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a7581da9bfd7ebf4fe3703352df521931">PRESS</a>(b)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a2b4d2480737f9eb52f80998518486f01">RELEASE</a>(b)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a36b621e66020a8ee4641d56c73c4226b">test_bit</a>(bit) (priv->mask[(bit)/8] & (1 << ((bit)%8)))</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a228e7b7d6adf81ad78bc848896044085">test_bits</a>(bit) (bits[(bit)/8] & (1 << ((bit)%8)))</td></tr> +<tr><td colspan="2"><h2>Functions</h2></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#ae20f3b14463c8e288041f9970e388950">usbRead</a> (DevicePtr pDev, MOTIONPROC motion, ENQUEUEPROC enqueue, int minButton, BLOCK block)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a01c83154e667f74a79fac7b951208646">usbPrint</a> (<a class="el" href="struct__myPrivate.html">myPrivate</a> *priv, const char *filename, const char *devname, int fd)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a7f9b3a6d320a9ddbed689f4e12acb443">usbInit</a> (DevicePtr pDev, <a class="el" href="usb-common_8h.html#a5e4410bf95babe73bcecc612691fc2d0">usbType</a> type)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#aa86d87cabbc0971c51452970b7dc879f">usbOff</a> (DevicePtr pDev)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">pointer </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a580f9f4ac56071b925cbf63d8b9dc706">usbCreatePrivate</a> (DeviceIntPtr pDevice)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-common_8c.html#a0eca0051ed4a3a117d504d6a82c65313">usbDestroyPrivate</a> (pointer priv)</td></tr> +</table> +<hr/><a name="_details"></a><h2>Detailed Description</h2> +<p>Routines that are common between <em><a class="el" href="usb-keyboard_8c.html">usb-keyboard.c</a></em>, <em><a class="el" href="usb-mouse_8c.html">usb-mouse.c</a></em>, and <em><a class="el" href="usb-other_8c.html">usb-other.c</a></em> </p> +<hr/><h2>Define Documentation</h2> +<a class="anchor" id="a52220397ecea855b3a99746e451426e1"></a><!-- doxytag: member="usb-common.c::BLOCK" ref="a52220397ecea855b3a99746e451426e1" args="" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define BLOCK <a class="el" href="dmxinput_8h.html#a3a7195ab3516c5354bac4ca80b2eedb7">DMXBlockType</a></td> + </tr> + </table> +</div> +<div class="memdoc"> -<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="usb-common_8c.html#a23">usbInit</a> (DevicePtr pDev, usbType type)</td></tr> +</div> +</div> +<a class="anchor" id="aa35a985e998ad5e2187e13434dca118a"></a><!-- doxytag: member="usb-common.c::CHECKPROC" ref="aa35a985e998ad5e2187e13434dca118a" args="" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define CHECKPROC <a class="el" href="dmxinputinit_8h.html#a838cb45fd92d5cf506e4179b601f7dbc">dmxCheckSpecialProcPtr</a></td> + </tr> + </table> +</div> +<div class="memdoc"> -<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="usb-common_8c.html#a24">usbOff</a> (DevicePtr pDev)</td></tr> +</div> +</div> +<a class="anchor" id="a017080ce5e42667a6582cf858e7185cd"></a><!-- doxytag: member="usb-common.c::ENQUEUEPROC" ref="a017080ce5e42667a6582cf858e7185cd" args="" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define ENQUEUEPROC <a class="el" href="dmxinputinit_8h.html#adbd955b9ddbc5ffe38ff65e3f068f205">dmxEnqueueProcPtr</a></td> + </tr> + </table> +</div> +<div class="memdoc"> -<tr><td class="memItemLeft" nowrap align=right valign=top>pointer </td><td class="memItemRight" valign=bottom><a class="el" href="usb-common_8c.html#a25">usbCreatePrivate</a> (DeviceIntPtr pDevice)</td></tr> +</div> +</div> +<a class="anchor" id="a6bce6020b913db8afe5d94bc63d1b355"></a><!-- doxytag: member="usb-common.c::FATAL0" ref="a6bce6020b913db8afe5d94bc63d1b355" args="(f)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define FATAL0</td> + <td>(</td> + <td class="paramtype">f </td> + <td class="paramname"></td> + <td> ) </td> + <td> dmxLog(dmxFatal,f)</td> + </tr> + </table> +</div> +<div class="memdoc"> -<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="usb-common_8c.html#a26">usbDestroyPrivate</a> (pointer priv)</td></tr> +</div> +</div> +<a class="anchor" id="a11bcea7c6bc7dbe400a3855f5b8676ce"></a><!-- doxytag: member="usb-common.c::FATAL1" ref="a11bcea7c6bc7dbe400a3855f5b8676ce" args="(f, a)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define FATAL1</td> + <td>(</td> + <td class="paramtype">f, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">a </td> + <td class="paramname"></td> + <td> ) </td> + <td> dmxLog(dmxFatal,f,a)</td> + </tr> + </table> +</div> +<div class="memdoc"> -</table> -<hr><a name="_details"></a><h2>Detailed Description</h2> -Routines that are common between #usb-keyboard.c, #usb-mouse.c, and #usb-other.c<hr><h2>Function Documentation</h2> -<a class="anchor" name="a25" doxytag="usb-common.c::usbCreatePrivate" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +</div> +<a class="anchor" id="a7952c9e9fe9c75be4964fc53a4299183"></a><!-- doxytag: member="usb-common.c::FATAL2" ref="a7952c9e9fe9c75be4964fc53a4299183" args="(f, a, b)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> - <td class="md" nowrap valign="top"> pointer usbCreatePrivate </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">DeviceIntPtr </td> - <td class="mdname1" valign="top" nowrap> <em>pDevice</em> </td> - <td class="md" valign="top"> ) </td> - <td class="md" nowrap></td> + <td class="memname">#define FATAL2</td> + <td>(</td> + <td class="paramtype">f, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">a, </td> </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">b </td> + <td class="paramname"></td> + <td> ) </td> + <td> dmxLog(dmxFatal,f,a,b)</td> + </tr> + </table> +</div> +<div class="memdoc"> +</div> +</div> +<a class="anchor" id="a5340233a04762d00a2fc39e922489cbd"></a><!-- doxytag: member="usb-common.c::GETNAME" ref="a5340233a04762d00a2fc39e922489cbd" args="" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define GETNAME</td> + </tr> </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Create a private structure for use within this file. </td> - </tr> -</table> -<a class="anchor" name="a26" doxytag="usb-common.c::usbDestroyPrivate" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +<div class="memdoc"> +<b>Value:</b><div class="fragment"><pre class="fragment">((<a class="code" href="struct__DMXLocalInputInfo.html">DMXLocalInputInfoPtr</a>)(pDevice->public.devicePrivate)) \ + ->name +</pre></div> +<p>Referenced by <a class="el" href="usb-common_8c_source.html#l00165">usbPrint()</a>.</p> + +</div> +</div> +<a class="anchor" id="aacf069d346230dd96812d5395728eef2"></a><!-- doxytag: member="usb-common.c::GETPRIV" ref="aacf069d346230dd96812d5395728eef2" args="" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define GETPRIV</td> + </tr> + </table> +</div> +<div class="memdoc"> +<b>Value:</b><div class="fragment"><pre class="fragment"><a class="code" href="struct__myPrivate.html">myPrivate</a> *priv \ + = ((<a class="code" href="struct__DMXLocalInputInfo.html">DMXLocalInputInfoPtr</a>)(pDev->devicePrivate))->private +</pre></div> +</div> +</div> +<a class="anchor" id="a837722a322e811d5e42242655f277b87"></a><!-- doxytag: member="usb-common.c::LOG0" ref="a837722a322e811d5e42242655f277b87" args="(f)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> - <td class="md" nowrap valign="top"> void usbDestroyPrivate </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">pointer </td> - <td class="mdname1" valign="top" nowrap> <em>priv</em> </td> - <td class="md" valign="top"> ) </td> - <td class="md" nowrap></td> + <td class="memname">#define LOG0</td> + <td>(</td> + <td class="paramtype">f </td> + <td class="paramname"></td> + <td> ) </td> + <td> dmxLog(dmxDebug,f)</td> </tr> + </table> +</div> +<div class="memdoc"> +</div> +</div> +<a class="anchor" id="aab4b3434c36117a2ecdddec40716d97a"></a><!-- doxytag: member="usb-common.c::LOG1" ref="aab4b3434c36117a2ecdddec40716d97a" args="(f, a)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define LOG1</td> + <td>(</td> + <td class="paramtype">f, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">a </td> + <td class="paramname"></td> + <td> ) </td> + <td> dmxLog(dmxDebug,f,a)</td> + </tr> </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Destroy a private structure. </td> - </tr> -</table> -<a class="anchor" name="a23" doxytag="usb-common.c::usbInit" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +<div class="memdoc"> + +</div> +</div> +<a class="anchor" id="a362570e9b2c9ac295638be490c81d1fb"></a><!-- doxytag: member="usb-common.c::LOG1INPUT" ref="a362570e9b2c9ac295638be490c81d1fb" args="(p, f, a)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define LOG1INPUT</td> + <td>(</td> + <td class="paramtype">p, </td> + </tr> <tr> - <td class="md" nowrap valign="top"> void usbInit </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">DevicePtr </td> - <td class="mdname" nowrap> <em>pDev</em>, </td> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">f, </td> </tr> <tr> + <td class="paramkey"></td> <td></td> + <td class="paramtype">a </td> + <td class="paramname"></td> + <td> ) </td> + <td> dmxLogInput(p->dmxInput,f,a)</td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Referenced by <a class="el" href="usb-common_8c_source.html#l00165">usbPrint()</a>.</p> + +</div> +</div> +<a class="anchor" id="a16da5d597d9bfb9e569a9bfb6996382c"></a><!-- doxytag: member="usb-common.c::LOG2" ref="a16da5d597d9bfb9e569a9bfb6996382c" args="(f, a, b)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define LOG2</td> + <td>(</td> + <td class="paramtype">f, </td> + </tr> + <tr> + <td class="paramkey"></td> <td></td> - <td class="md" nowrap>usbType </td> - <td class="mdname" nowrap> <em>type</em></td> + <td class="paramtype">a, </td> </tr> <tr> + <td class="paramkey"></td> <td></td> - <td class="md">) </td> - <td class="md" colspan="2"></td> + <td class="paramtype">b </td> + <td class="paramname"></td> + <td> ) </td> + <td> dmxLog(dmxDebug,f,a,b)</td> </tr> + </table> +</div> +<div class="memdoc"> +</div> +</div> +<a class="anchor" id="a8247f0bca25789d2ac27674eb26e223f"></a><!-- doxytag: member="usb-common.c::LOG3" ref="a8247f0bca25789d2ac27674eb26e223f" args="(f, a, b, c)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define LOG3</td> + <td>(</td> + <td class="paramtype">f, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">a, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">b, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">c </td> + <td class="paramname"></td> + <td> ) </td> + <td> dmxLog(dmxDebug,f,a,b,c)</td> + </tr> </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Initialized <em>pDev</em> as a <em>usbMouse</em>, <em>usbKeyboard</em>, or <em>usbOther</em> device. </td> - </tr> -</table> -<a class="anchor" name="a24" doxytag="usb-common.c::usbOff" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +<div class="memdoc"> + +</div> +</div> +<a class="anchor" id="ab34476eaeb97ba2e10bab547085c22b8"></a><!-- doxytag: member="usb-common.c::LOG3INPUT" ref="ab34476eaeb97ba2e10bab547085c22b8" args="(p, f, a, b, c)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define LOG3INPUT</td> + <td>(</td> + <td class="paramtype">p, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">f, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">a, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">b, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">c </td> + <td class="paramname"></td> + <td> ) </td> + <td> dmxLogInput(p->dmxInput,f,a,b,c)</td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Referenced by <a class="el" href="usb-common_8c_source.html#l00165">usbPrint()</a>.</p> + +</div> +</div> +<a class="anchor" id="aa9a2c0ce5f5776ac17b498dc1d90ce1f"></a><!-- doxytag: member="usb-common.c::LOG5INPUT" ref="aa9a2c0ce5f5776ac17b498dc1d90ce1f" args="(p, f, a, b, c, d, e)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define LOG5INPUT</td> + <td>(</td> + <td class="paramtype">p, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">f, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">a, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">b, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">c, </td> + </tr> <tr> - <td class="md" nowrap valign="top"> void usbOff </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">DevicePtr </td> - <td class="mdname1" valign="top" nowrap> <em>pDev</em> </td> - <td class="md" valign="top"> ) </td> - <td class="md" nowrap></td> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">d, </td> </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">e </td> + <td class="paramname"></td> + <td> ) </td> + <td> dmxLogInput(p->dmxInput,f,a,b,c,d,e)</td> + </tr> + </table> +</div> +<div class="memdoc"> +<p>Referenced by <a class="el" href="usb-common_8c_source.html#l00165">usbPrint()</a>.</p> + +</div> +</div> +<a class="anchor" id="a11a17082bee3b1b8217ce8a12adcf814"></a><!-- doxytag: member="usb-common.c::MOTIONPROC" ref="a11a17082bee3b1b8217ce8a12adcf814" args="" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define MOTIONPROC <a class="el" href="dmxinputinit_8h.html#a1279820425966adabf5c77357e4a289c">dmxMotionProcPtr</a></td> + </tr> </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Turn <em>pDev</em> off (i.e., stop taking input from <em>pDev</em>). </td> - </tr> -</table> -<a class="anchor" name="a21" doxytag="usb-common.c::usbRead" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +<div class="memdoc"> + +</div> +</div> +<a class="anchor" id="a7581da9bfd7ebf4fe3703352df521931"></a><!-- doxytag: member="usb-common.c::PRESS" ref="a7581da9bfd7ebf4fe3703352df521931" args="(b)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> - <td class="md" nowrap valign="top"> void usbRead </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">DevicePtr </td> - <td class="mdname" nowrap> <em>pDev</em>, </td> + <td class="memname">#define PRESS</td> + <td>(</td> + <td class="paramtype">b </td> + <td class="paramname"></td> + <td> ) </td> + <td></td> </tr> + </table> +</div> +<div class="memdoc"> +<b>Value:</b><div class="fragment"><pre class="fragment"><span class="keywordflow">do</span> { \ + enqueue(pDev, ButtonPress, 0, 0, NULL, block); \ + } <span class="keywordflow">while</span> (0) +</pre></div> +</div> +</div> +<a class="anchor" id="a2b4d2480737f9eb52f80998518486f01"></a><!-- doxytag: member="usb-common.c::RELEASE" ref="a2b4d2480737f9eb52f80998518486f01" args="(b)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> + <td class="memname">#define RELEASE</td> + <td>(</td> + <td class="paramtype">b </td> + <td class="paramname"></td> + <td> ) </td> <td></td> + </tr> + </table> +</div> +<div class="memdoc"> +<b>Value:</b><div class="fragment"><pre class="fragment"><span class="keywordflow">do</span> { \ + enqueue(pDev, ButtonRelease, 0, 0, NULL, block); \ + } <span class="keywordflow">while</span> (0) +</pre></div> +</div> +</div> +<a class="anchor" id="a36b621e66020a8ee4641d56c73c4226b"></a><!-- doxytag: member="usb-common.c::test_bit" ref="a36b621e66020a8ee4641d56c73c4226b" args="(bit)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define test_bit</td> + <td>(</td> + <td class="paramtype">bit </td> + <td class="paramname"></td> + <td> ) </td> + <td> (priv->mask[(bit)/8] & (1 << ((bit)%8)))</td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Referenced by <a class="el" href="usb-other_8c_source.html#l00097">othUSBGetInfo()</a>, <a class="el" href="usb-common_8c_source.html#l00272">usbInit()</a>, and <a class="el" href="usb-common_8c_source.html#l00165">usbPrint()</a>.</p> + +</div> +</div> +<a class="anchor" id="a228e7b7d6adf81ad78bc848896044085"></a><!-- doxytag: member="usb-common.c::test_bits" ref="a228e7b7d6adf81ad78bc848896044085" args="(bit)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define test_bits</td> + <td>(</td> + <td class="paramtype">bit </td> + <td class="paramname"></td> + <td> ) </td> + <td> (bits[(bit)/8] & (1 << ((bit)%8)))</td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Referenced by <a class="el" href="usb-common_8c_source.html#l00272">usbInit()</a>, and <a class="el" href="usb-common_8c_source.html#l00165">usbPrint()</a>.</p> + +</div> +</div> +<a class="anchor" id="a4745b9c19ea1cc480dc2b58e59d1e9bb"></a><!-- doxytag: member="usb-common.c::USB_COMMON_DEBUG" ref="a4745b9c19ea1cc480dc2b58e59d1e9bb" args="" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define USB_COMMON_DEBUG 1</td> + </tr> + </table> +</div> +<div class="memdoc"> + +</div> +</div> +<hr/><h2>Function Documentation</h2> +<a class="anchor" id="a580f9f4ac56071b925cbf63d8b9dc706"></a><!-- doxytag: member="usb-common.c::usbCreatePrivate" ref="a580f9f4ac56071b925cbf63d8b9dc706" args="(DeviceIntPtr pDevice)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">pointer usbCreatePrivate </td> + <td>(</td> + <td class="paramtype">DeviceIntPtr </td> + <td class="paramname"> <em>pDevice</em></td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> +<p>Create a private structure for use within this file. </p> + +<p>References <a class="el" href="lnx-keyboard_8c_source.html#l00178">_myPrivate::fd</a>, and <a class="el" href="usb-private_8h_source.html#l00101">_myPrivate::pDevice</a>.</p> + +</div> +</div> +<a class="anchor" id="a0eca0051ed4a3a117d504d6a82c65313"></a><!-- doxytag: member="usb-common.c::usbDestroyPrivate" ref="a0eca0051ed4a3a117d504d6a82c65313" args="(pointer priv)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void usbDestroyPrivate </td> + <td>(</td> + <td class="paramtype">pointer </td> + <td class="paramname"> <em>priv</em></td> + <td> ) </td> <td></td> - <td class="md" nowrap>MOTIONPROC </td> - <td class="mdname" nowrap> <em>motion</em>, </td> + </tr> + </table> +</div> +<div class="memdoc"> +<p>Destroy a private structure. </p> + +</div> +</div> +<a class="anchor" id="a7f9b3a6d320a9ddbed689f4e12acb443"></a><!-- doxytag: member="usb-common.c::usbInit" ref="a7f9b3a6d320a9ddbed689f4e12acb443" args="(DevicePtr pDev, usbType type)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void usbInit </td> + <td>(</td> + <td class="paramtype">DevicePtr </td> + <td class="paramname"> <em>pDev</em>, </td> </tr> <tr> + <td class="paramkey"></td> <td></td> + <td class="paramtype"><a class="el" href="usb-common_8h.html#a5e4410bf95babe73bcecc612691fc2d0">usbType</a> </td> + <td class="paramname"> <em>type</em></td><td> </td> + </tr> + <tr> <td></td> - <td class="md" nowrap>ENQUEUEPROC </td> - <td class="mdname" nowrap> <em>enqueue</em>, </td> + <td>)</td> + <td></td><td></td><td></td> </tr> + </table> +</div> +<div class="memdoc"> +<p>Initialized <em>pDev</em> as a <em>usbMouse</em>, <em>usbKeyboard</em>, or <em>usbOther</em> device. </p> + +<p>References <a class="el" href="lnx-keyboard_8c_source.html#l00144">FATAL1</a>, <a class="el" href="lnx-keyboard_8c_source.html#l00136">GETPRIV</a>, <a class="el" href="dmxsigio_8c_source.html#l00062">O_NONBLOCK</a>, <a class="el" href="usb-common_8c_source.html#l00162">test_bit</a>, <a class="el" href="usb-common_8c_source.html#l00163">test_bits</a>, <a class="el" href="usb-common_8h_source.html#l00042">usbKeyboard</a>, <a class="el" href="usb-common_8h_source.html#l00041">usbMouse</a>, <a class="el" href="usb-common_8h_source.html#l00043">usbOther</a>, and <a class="el" href="usb-common_8c_source.html#l00165">usbPrint()</a>.</p> + +<p>Referenced by <a class="el" href="usb-keyboard_8c_source.html#l00287">kbdUSBInit()</a>, <a class="el" href="usb-mouse_8c_source.html#l00079">mouUSBInit()</a>, and <a class="el" href="usb-other_8c_source.html#l00081">othUSBInit()</a>.</p> + +</div> +</div> +<a class="anchor" id="aa86d87cabbc0971c51452970b7dc879f"></a><!-- doxytag: member="usb-common.c::usbOff" ref="aa86d87cabbc0971c51452970b7dc879f" args="(DevicePtr pDev)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> + <td class="memname">void usbOff </td> + <td>(</td> + <td class="paramtype">DevicePtr </td> + <td class="paramname"> <em>pDev</em></td> + <td> ) </td> <td></td> + </tr> + </table> +</div> +<div class="memdoc"> +<p>Turn <em>pDev</em> off (i.e., stop taking input from <em>pDev</em>). </p> + +<p>References <a class="el" href="lnx-keyboard_8c_source.html#l00136">GETPRIV</a>.</p> + +</div> +</div> +<a class="anchor" id="a01c83154e667f74a79fac7b951208646"></a><!-- doxytag: member="usb-common.c::usbPrint" ref="a01c83154e667f74a79fac7b951208646" args="(myPrivate *priv, const char *filename, const char *devname, int fd)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">static void usbPrint </td> + <td>(</td> + <td class="paramtype"><a class="el" href="struct__myPrivate.html">myPrivate</a> * </td> + <td class="paramname"> <em>priv</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> <td></td> - <td class="md" nowrap>int </td> - <td class="mdname" nowrap> <em>minButton</em>, </td> + <td class="paramtype">const char * </td> + <td class="paramname"> <em>filename</em>, </td> </tr> <tr> + <td class="paramkey"></td> <td></td> + <td class="paramtype">const char * </td> + <td class="paramname"> <em>devname</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> <td></td> - <td class="md" nowrap>BLOCK </td> - <td class="mdname" nowrap> <em>block</em></td> + <td class="paramtype">int </td> + <td class="paramname"> <em>fd</em></td><td> </td> </tr> <tr> <td></td> - <td class="md">) </td> - <td class="md" colspan="2"></td> + <td>)</td> + <td></td><td></td><td><code> [static]</code></td> </tr> + </table> +</div> +<div class="memdoc"> + +<p>References <a class="el" href="usb-private_8h_source.html#l00094">ABS_BRAKE</a>, <a class="el" href="usb-private_8h_source.html#l00091">ABS_GAS</a>, <a class="el" href="usb-private_8h_source.html#l00088">ABS_WHEEL</a>, <a class="el" href="usb-private_8h_source.html#l00056">EV_FF</a>, <a class="el" href="usb-private_8h_source.html#l00053">EV_MSC</a>, <a class="el" href="lnx-keyboard_8c_source.html#l00178">_myPrivate::fd</a>, <a class="el" href="usb-common_8c_source.html#l00056">GETNAME</a>, <a class="el" href="usb-private_8h_source.html#l00068">LED_MISC</a>, <a class="el" href="usb-private_8h_source.html#l00065">LED_MUTE</a>, <a class="el" href="usb-private_8h_source.html#l00059">LED_SLEEP</a>, <a class="el" href="usb-private_8h_source.html#l00062">LED_SUSPEND</a>, <a class="el" href="usb-common_8c_source.html#l00063">LOG1INPUT</a>, <a class="el" href="usb-common_8c_source.html#l00064">LOG3INPUT</a>, <a class="el" href="usb-common_8c_source.html#l00065">LOG5INPUT</a>, <a class="el" href="usb-private_8h_source.html#l00101">_myPrivate::pDevice</a>, <a class="el" href="usb-common_8c_source.html#l00162">test_bit</a>, and <a class="el" href="usb-common_8c_source.html#l00163">test_bits</a>.</p> + +<p>Referenced by <a class="el" href="usb-common_8c_source.html#l00272">usbInit()</a>.</p> +</div> +</div> +<a class="anchor" id="ae20f3b14463c8e288041f9970e388950"></a><!-- doxytag: member="usb-common.c::usbRead" ref="ae20f3b14463c8e288041f9970e388950" args="(DevicePtr pDev, MOTIONPROC motion, ENQUEUEPROC enqueue, int minButton, BLOCK block)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void usbRead </td> + <td>(</td> + <td class="paramtype">DevicePtr </td> + <td class="paramname"> <em>pDev</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">MOTIONPROC </td> + <td class="paramname"> <em>motion</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">ENQUEUEPROC </td> + <td class="paramname"> <em>enqueue</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">int </td> + <td class="paramname"> <em>minButton</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">BLOCK </td> + <td class="paramname"> <em>block</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Read an event from the <em>pDev</em> device. If the event is a motion event, enqueue it with the <em>motion</em> function. Otherwise, enqueue the event with the <em>enqueue</em> function. The <em>block</em> type is passed to the functions so that they may block SIGIO handling as appropriate to the caller of this function.<p> -Since USB devices return EV_KEY events for buttons and keys, <em>minButton</em> is used to decide if a Button or Key event should be queued. </td> - </tr> -</table> +</div> +<div class="memdoc"> +<p>Read an event from the <em>pDev</em> device. If the event is a motion event, enqueue it with the <em>motion</em> function. Otherwise, enqueue the event with the <em>enqueue</em> function. The <em>block</em> type is passed to the functions so that they may block SIGIO handling as appropriate to the caller of this function.</p> +<p>Since USB devices return EV_KEY events for buttons and keys, <em>minButton</em> is used to decide if a Button or Key event should be queued. </p> + +<p>References <a class="el" href="dmxinputinit_8h_source.html#l00077">DMX_ABSOLUTE</a>, <a class="el" href="dmxevents_8c_source.html#l00280">DMX_MAX_AXES</a>, <a class="el" href="dmxinputinit_8h_source.html#l00076">DMX_RELATIVE</a>, <a class="el" href="lnx-keyboard_8c_source.html#l00136">GETPRIV</a>, <a class="el" href="lnx-keyboard_8c_source.html#l00142">LOG3</a>, <a class="el" href="lnx-ms_8c.html#a7581da9bfd7ebf4fe3703352df521931">PRESS</a>, and <a class="el" href="lnx-ms_8c.html#a2b4d2480737f9eb52f80998518486f01">RELEASE</a>.</p> + +<p>Referenced by <a class="el" href="usb-mouse_8c_source.html#l00069">mouUSBRead()</a>, and <a class="el" href="usb-other_8c_source.html#l00071">othUSBRead()</a>.</p> + +</div> +</div> +</div> <hr> <address> <small> |