~darkxst/ubuntu/raring/xorg-server/lp1073724

« back to all changes in this revision

Viewing changes to hw/dmx/doc/html/usb-private_8h-source.html

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2010-06-07 14:50:49 UTC
  • mfrom: (0.9.4 upstream)
  • mto: This revision was merged to the branch mainline in revision 187.
  • Revision ID: james.westby@ubuntu.com-20100607145049-eys326hqtq5mjqxt
Tags: upstream-1.8.1.901
ImportĀ upstreamĀ versionĀ 1.8.1.901

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
 
<html>
3
 
  <head>
4
 
    <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
5
 
    <title>File Index</title>
6
 
    <link href="doxygen.css" rel="stylesheet" type="text/css">
7
 
  </head>
8
 
  <body>
9
 
<!-- Generated by Doxygen 1.3.4 -->
10
 
<div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
11
 
<h1>usb-private.h</h1><a href="usb-private_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/* $XFree86$ */</span>
12
 
00002 <span class="comment">/*</span>
13
 
00003 <span class="comment"> * Copyright 2002 Red Hat Inc., Durham, North Carolina.</span>
14
 
00004 <span class="comment"> *</span>
15
 
00005 <span class="comment"> * All Rights Reserved.</span>
16
 
00006 <span class="comment"> *</span>
17
 
00007 <span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining</span>
18
 
00008 <span class="comment"> * a copy of this software and associated documentation files (the</span>
19
 
00009 <span class="comment"> * "Software"), to deal in the Software without restriction, including</span>
20
 
00010 <span class="comment"> * without limitation on the rights to use, copy, modify, merge,</span>
21
 
00011 <span class="comment"> * publish, distribute, sublicense, and/or sell copies of the Software,</span>
22
 
00012 <span class="comment"> * and to permit persons to whom the Software is furnished to do so,</span>
23
 
00013 <span class="comment"> * subject to the following conditions:</span>
24
 
00014 <span class="comment"> *</span>
25
 
00015 <span class="comment"> * The above copyright notice and this permission notice (including the</span>
26
 
00016 <span class="comment"> * next paragraph) shall be included in all copies or substantial</span>
27
 
00017 <span class="comment"> * portions of the Software.</span>
28
 
00018 <span class="comment"> *</span>
29
 
00019 <span class="comment"> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,</span>
30
 
00020 <span class="comment"> * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF</span>
31
 
00021 <span class="comment"> * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND</span>
32
 
00022 <span class="comment"> * NON-INFRINGEMENT.  IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS</span>
33
 
00023 <span class="comment"> * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN</span>
34
 
00024 <span class="comment"> * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN</span>
35
 
00025 <span class="comment"> * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE</span>
36
 
00026 <span class="comment"> * SOFTWARE.</span>
37
 
00027 <span class="comment"> */</span>
38
 
00028 
39
 
00029 <span class="comment">/*</span>
40
 
00030 <span class="comment"> * Authors:</span>
41
 
00031 <span class="comment"> *   Rickard E. (Rik) Faith &lt;faith@redhat.com&gt;</span>
42
 
00032 <span class="comment"> *</span>
43
 
00033 <span class="comment"> */</span>
44
 
00034 
45
 
00041 <span class="preprocessor">#ifndef _USB_PRIVATE_H_</span>
46
 
00042 <span class="preprocessor"></span><span class="preprocessor">#define _USB_PRIVATE_H_</span>
47
 
00043 <span class="preprocessor"></span>
48
 
00044 <span class="preprocessor">#include "<a class="code" href="dmxinputinit_8h.html">dmxinputinit.h</a>"</span>
49
 
00045 <span class="preprocessor">#include "inputstr.h"</span>
50
 
00046 <span class="preprocessor">#include "Xos.h"</span>
51
 
00047 <span class="preprocessor">#include &lt;errno.h&gt;</span>
52
 
00048 <span class="preprocessor">#include &lt;linux/input.h&gt;</span>
53
 
00049 <span class="preprocessor">#include "<a class="code" href="usb-common_8h.html">usb-common.h</a>"</span>
54
 
00050 
55
 
00051                                 <span class="comment">/*  Support for force feedback was</span>
56
 
00052 <span class="comment">                                 *  introduced in Linxu 2.4.10 */</span>
57
 
00053 <span class="preprocessor">#ifndef EV_MSC</span>
58
 
00054 <span class="preprocessor"></span><span class="preprocessor">#define EV_MSC      0x04</span>
59
 
00055 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
60
 
00056 <span class="preprocessor"></span><span class="preprocessor">#ifndef EV_FF</span>
61
 
00057 <span class="preprocessor"></span><span class="preprocessor">#define EV_FF       0x15</span>
62
 
00058 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
63
 
00059 <span class="preprocessor"></span><span class="preprocessor">#ifndef LED_SLEEP</span>
64
 
00060 <span class="preprocessor"></span><span class="preprocessor">#define LED_SLEEP   0x05</span>
65
 
00061 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
66
 
00062 <span class="preprocessor"></span><span class="preprocessor">#ifndef LED_SUSPEND</span>
67
 
00063 <span class="preprocessor"></span><span class="preprocessor">#define LED_SUSPEND 0x06</span>
68
 
00064 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
69
 
00065 <span class="preprocessor"></span><span class="preprocessor">#ifndef LED_MUTE</span>
70
 
00066 <span class="preprocessor"></span><span class="preprocessor">#define LED_MUTE    0x07</span>
71
 
00067 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
72
 
00068 <span class="preprocessor"></span><span class="preprocessor">#ifndef LED_MISC</span>
73
 
00069 <span class="preprocessor"></span><span class="preprocessor">#define LED_MISC    0x08</span>
74
 
00070 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
75
 
00071 <span class="preprocessor"></span><span class="preprocessor">#ifndef BTN_DEAD</span>
76
 
00072 <span class="preprocessor"></span><span class="preprocessor">#define BTN_DEAD    0x12f</span>
77
 
00073 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
78
 
00074 <span class="preprocessor"></span><span class="preprocessor">#ifndef BTN_THUMBL</span>
79
 
00075 <span class="preprocessor"></span><span class="preprocessor">#define BTN_THUMBL  0x13d</span>
80
 
00076 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
81
 
00077 <span class="preprocessor"></span><span class="preprocessor">#ifndef BTN_THUMBR</span>
82
 
00078 <span class="preprocessor"></span><span class="preprocessor">#define BTN_THUMBR  0x13e</span>
83
 
00079 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
84
 
00080 <span class="preprocessor"></span><span class="preprocessor">#ifndef MSC_SERIAL</span>
85
 
00081 <span class="preprocessor"></span><span class="preprocessor">#define MSC_SERIAL  0x00</span>
86
 
00082 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
87
 
00083 <span class="preprocessor"></span><span class="preprocessor">#ifndef MSC_MAX</span>
88
 
00084 <span class="preprocessor"></span><span class="preprocessor">#define MSC_MAX     0x07</span>
89
 
00085 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
90
 
00086 <span class="preprocessor"></span>
91
 
00087                                 <span class="comment">/* Support for older kernels. */</span>
92
 
00088 <span class="preprocessor">#ifndef ABS_WHEEL</span>
93
 
00089 <span class="preprocessor"></span><span class="preprocessor">#define ABS_WHEEL   0x08</span>
94
 
00090 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
95
 
00091 <span class="preprocessor"></span><span class="preprocessor">#ifndef ABS_GAS</span>
96
 
00092 <span class="preprocessor"></span><span class="preprocessor">#define ABS_GAS     0x09</span>
97
 
00093 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
98
 
00094 <span class="preprocessor"></span><span class="preprocessor">#ifndef ABS_BRAKE</span>
99
 
00095 <span class="preprocessor"></span><span class="preprocessor">#define ABS_BRAKE   0x0a</span>
100
 
00096 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
101
 
00097 <span class="preprocessor"></span>
102
 
00098 <span class="preprocessor">#define NUM_STATE_ENTRIES (256/32)</span>
103
 
00099 <span class="preprocessor"></span>
104
 
00100 <span class="comment">/* Private area for USB devices. */</span>
105
 
00101 <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__myPrivate.html">_myPrivate</a> {
106
 
<a name="l00102"></a><a class="code" href="struct__myPrivate.html#o55">00102</a>     DeviceIntPtr   <a class="code" href="struct__myPrivate.html#o55">pDevice</a>;                 
107
 
<a name="l00103"></a><a class="code" href="struct__myPrivate.html#o37">00103</a>     <span class="keywordtype">int</span>            <a class="code" href="struct__myPrivate.html#o37">fd</a>;                      
108
 
<a name="l00104"></a><a class="code" href="struct__myPrivate.html#o56">00104</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>  <a class="code" href="struct__myPrivate.html#o56">mask</a>[EV_MAX/8 + 1];      
109
 
<a name="l00105"></a><a class="code" href="struct__myPrivate.html#o59">00105</a>     <span class="keywordtype">int</span>            numRel, numAbs, <a class="code" href="struct__myPrivate.html#o59">numLeds</a>; 
110
 
<a name="l00106"></a><a class="code" href="struct__myPrivate.html#o60">00106</a>     <span class="keywordtype">int</span>            <a class="code" href="struct__myPrivate.html#o60">relmap</a>[DMX_MAX_AXES];    
111
 
<a name="l00107"></a><a class="code" href="struct__myPrivate.html#o61">00107</a>     <span class="keywordtype">int</span>            <a class="code" href="struct__myPrivate.html#o61">absmap</a>[DMX_MAX_AXES];    
112
 
<a name="l00109"></a><a class="code" href="struct__myPrivate.html#o43">00109</a>     CARD32         <a class="code" href="struct__myPrivate.html#o43">kbdState</a>[NUM_STATE_ENTRIES]; 
113
 
00110     DeviceIntPtr   pKeyboard;                   
114
 
<a name="l00112"></a><a class="code" href="struct__myPrivate.html#o49">00112</a>     <span class="keywordtype">int</span>            <a class="code" href="struct__myPrivate.html#o49">pitch</a>;       
115
 
<a name="l00113"></a><a class="code" href="struct__myPrivate.html#o50">00113</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>  <a class="code" href="struct__myPrivate.html#o50">duration</a>;    
116
 
00115     <span class="comment">/* FIXME: dmxInput is never initialized */</span>
117
 
<a name="l00116"></a><a class="code" href="struct__myPrivate.html#o62">00116</a>     <a class="code" href="struct__DMXInputInfo.html">DMXInputInfo</a>   *<a class="code" href="struct__myPrivate.html#o62">dmxInput</a>;   
118
 
00117 } <a class="code" href="struct__myPrivate.html">myPrivate</a>;
119
 
00118 <span class="preprocessor">#endif</span>
120
 
</pre></div>    <hr>
121
 
    <address>
122
 
      <small>
123
 
        Generated June 29, 2004 for <a
124
 
        href="http://dmx.sourceforge.net">Distributed Multihead X</a> by
125
 
        <a href="http://www.doxygen.org/index.html">doxygen</a>
126
 
        1.3.4.
127
 
      </small>
128
 
    </addres>
129
 
    </hr>
130
 
  </body>
131
 
</html>