ugraphire_rdesc.h revision 1.1.26.3 1 1.1.26.3 skrll /* $NetBSD: ugraphire_rdesc.h,v 1.1.26.3 2004/09/21 13:33:46 skrll Exp $ */
2 1.1 augustss /*
3 1.1 augustss * Copyright (c) 2000 Nick Hibma <n_hibma (at) freebsd.org>
4 1.1 augustss * All rights reserved.
5 1.1 augustss *
6 1.1 augustss * Redistribution and use in source and binary forms, with or without
7 1.1 augustss * modification, are permitted provided that the following conditions
8 1.1 augustss * are met:
9 1.1 augustss * 1. Redistributions of source code must retain the above copyright
10 1.1 augustss * notice, this list of conditions and the following disclaimer.
11 1.1 augustss * 2. Redistributions in binary form must reproduce the above copyright
12 1.1 augustss * notice, this list of conditions and the following disclaimer in the
13 1.1 augustss * documentation and/or other materials provided with the distribution.
14 1.1 augustss *
15 1.1 augustss * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16 1.1 augustss * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 1.1 augustss * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 1.1 augustss * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19 1.1 augustss * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 1.1 augustss * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 1.1 augustss * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 1.1 augustss * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 1.1 augustss * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 1.1 augustss * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 1.1 augustss * SUCH DAMAGE.
26 1.1 augustss */
27 1.1 augustss
28 1.1.26.1 skrll static const uByte uhid_graphire_report_descr[] = {
29 1.1 augustss 0x05, 0x0d, /* USAGE_PAGE (Digitizers) */
30 1.1 augustss 0x09, 0x01, /* USAGE (Digitizer) */
31 1.1 augustss 0xa1, 0x01, /* COLLECTION (Application) */
32 1.1 augustss 0x85, 0x02, /* REPORT_ID (2) */
33 1.1 augustss 0x05, 0x0d, /* USAGE_PAGE (Digitizers) */
34 1.1 augustss 0x09, 0x01, /* USAGE (Digitizer) */
35 1.1 augustss 0xa1, 0x00, /* COLLECTION (Physical) */
36 1.1 augustss 0x15, 0x00, /* LOGICAL_MINIMUM (0) */
37 1.1 augustss 0x25, 0x01, /* LOGICAL_MAXIMUM (1) */
38 1.1 augustss 0x09, 0x33, /* USAGE (Touch) */
39 1.1 augustss 0x95, 0x01, /* REPORT_COUNT (1) */
40 1.1 augustss 0x75, 0x01, /* REPORT_SIZE (1) */
41 1.1 augustss 0x81, 0x02, /* INPUT (Data,Var,Abs) */
42 1.1 augustss 0x09, 0x44, /* USAGE (Barrel Switch) */
43 1.1 augustss 0x95, 0x02, /* REPORT_COUNT (2) */
44 1.1 augustss 0x75, 0x01, /* REPORT_SIZE (1) */
45 1.1 augustss 0x81, 0x02, /* INPUT (Data,Var,Abs) */
46 1.1 augustss 0x09, 0x00, /* USAGE (Undefined) */
47 1.1 augustss 0x95, 0x02, /* REPORT_COUNT (2) */
48 1.1 augustss 0x75, 0x01, /* REPORT_SIZE (1) */
49 1.1 augustss 0x81, 0x03, /* INPUT (Cnst,Var,Abs) */
50 1.1 augustss 0x09, 0x3c, /* USAGE (Invert) */
51 1.1 augustss 0x95, 0x01, /* REPORT_COUNT (1) */
52 1.1 augustss 0x75, 0x01, /* REPORT_SIZE (1) */
53 1.1 augustss 0x81, 0x02, /* INPUT (Data,Var,Abs) */
54 1.1 augustss 0x09, 0x38, /* USAGE (Transducer Index) */
55 1.1 augustss 0x95, 0x01, /* REPORT_COUNT (1) */
56 1.1 augustss 0x75, 0x01, /* REPORT_SIZE (1) */
57 1.1 augustss 0x81, 0x02, /* INPUT (Data,Var,Abs) */
58 1.1 augustss 0x09, 0x32, /* USAGE (In Range) */
59 1.1 augustss 0x95, 0x01, /* REPORT_COUNT (1) */
60 1.1 augustss 0x75, 0x01, /* REPORT_SIZE (1) */
61 1.1 augustss 0x81, 0x02, /* INPUT (Data,Var,Abs) */
62 1.1 augustss 0x05, 0x01, /* USAGE_PAGE (Generic Desktop) */
63 1.1 augustss 0x09, 0x30, /* USAGE (X) */
64 1.1 augustss 0x15, 0x00, /* LOGICAL_MINIMUM (0) */
65 1.1 augustss 0x26, 0xde, 0x27, /* LOGICAL_MAXIMUM (10206) */
66 1.1 augustss 0x95, 0x01, /* REPORT_COUNT (1) */
67 1.1 augustss 0x75, 0x10, /* REPORT_SIZE (16) */
68 1.1 augustss 0x81, 0x02, /* INPUT (Data,Var,Abs) */
69 1.1 augustss 0x09, 0x31, /* USAGE (Y) */
70 1.1 augustss 0x26, 0xfe, 0x1c, /* LOGICAL_MAXIMUM (7422) */
71 1.1 augustss 0x95, 0x01, /* REPORT_COUNT (1) */
72 1.1 augustss 0x75, 0x10, /* REPORT_SIZE (16) */
73 1.1 augustss 0x81, 0x02, /* INPUT (Data,Var,Abs) */
74 1.1 augustss 0x05, 0x0d, /* USAGE_PAGE (Digitizers) */
75 1.1 augustss 0x09, 0x30, /* USAGE (Tip Pressure) */
76 1.1 augustss 0x26, 0xff, 0x01, /* LOGICAL_MAXIMUM (511) */
77 1.1 augustss 0x95, 0x01, /* REPORT_COUNT (1) */
78 1.1 augustss 0x75, 0x10, /* REPORT_SIZE (16) */
79 1.1 augustss 0x81, 0x02, /* INPUT (Data,Var,Abs) */
80 1.1 augustss 0xc0, /* END_COLLECTION */
81 1.1 augustss 0x05, 0x0d, /* USAGE_PAGE (Digitizers) */
82 1.1 augustss 0x09, 0x00, /* USAGE (Undefined) */
83 1.1 augustss 0x85, 0x02, /* REPORT_ID (2) */
84 1.1 augustss 0x95, 0x01, /* REPORT_COUNT (1) */
85 1.1 augustss 0xb1, 0x02, /* FEATURE (Data,Var,Abs) */
86 1.1 augustss 0x09, 0x00, /* USAGE (Undefined) */
87 1.1 augustss 0x85, 0x03, /* REPORT_ID (3) */
88 1.1 augustss 0x95, 0x01, /* REPORT_COUNT (1) */
89 1.1 augustss 0xb1, 0x02, /* FEATURE (Data,Var,Abs) */
90 1.1 augustss 0xc0, /* END_COLLECTION */
91 1.1 augustss };
92 1.1.26.1 skrll
93 1.1.26.1 skrll static const uByte uhid_graphire3_4x5_report_descr[] = {
94 1.1.26.1 skrll 0x05, 0x01, /* USAGE_PAGE (Generic Desktop) */
95 1.1.26.1 skrll 0x09, 0x02, /* USAGE (Mouse) */
96 1.1.26.1 skrll 0xa1, 0x01, /* COLLECTION (Application) */
97 1.1.26.1 skrll 0x85, 0x01, /* REPORT_ID (1) */
98 1.1.26.1 skrll 0x09, 0x01, /* USAGE (Pointer) */
99 1.1.26.1 skrll 0xa1, 0x00, /* COLLECTION (Physical) */
100 1.1.26.1 skrll 0x05, 0x09, /* USAGE_PAGE (Button) */
101 1.1.26.1 skrll 0x19, 0x01, /* USAGE_MINIMUM (Button 1) */
102 1.1.26.1 skrll 0x29, 0x03, /* USAGE_MAXIMUM (Button 3) */
103 1.1.26.1 skrll 0x15, 0x00, /* LOGICAL_MINIMUM (0) */
104 1.1.26.1 skrll 0x25, 0x01, /* LOGICAL_MAXIMUM (1) */
105 1.1.26.1 skrll 0x95, 0x03, /* REPORT_COUNT (3) */
106 1.1.26.1 skrll 0x75, 0x01, /* REPORT_SIZE (1) */
107 1.1.26.1 skrll 0x81, 0x02, /* INPUT (Data,Var,Abs) */
108 1.1.26.1 skrll 0x95, 0x01, /* REPORT_COUNT (1) */
109 1.1.26.1 skrll 0x75, 0x05, /* REPORT_SIZE (5) */
110 1.1.26.1 skrll 0x81, 0x01, /* INPUT (Cnst,Ary,Abs) */
111 1.1.26.1 skrll 0x05, 0x01, /* USAGE_PAGE (Generic Desktop) */
112 1.1.26.1 skrll 0x09, 0x30, /* USAGE (X) */
113 1.1.26.1 skrll 0x09, 0x31, /* USAGE (Y) */
114 1.1.26.1 skrll 0x09, 0x38, /* USAGE (Wheel) */
115 1.1.26.1 skrll 0x15, 0x81, /* LOGICAL_MINIMUM (-127) */
116 1.1.26.1 skrll 0x25, 0x7f, /* LOGICAL_MAXIMUM (127) */
117 1.1.26.1 skrll 0x75, 0x08, /* REPORT_SIZE (8) */
118 1.1.26.1 skrll 0x95, 0x03, /* REPORT_COUNT (3) */
119 1.1.26.1 skrll 0x81, 0x06, /* INPUT (Data,Var,Rel) */
120 1.1.26.1 skrll 0xc0, /* END_COLLECTION */
121 1.1.26.1 skrll 0xc0, /* END_COLLECTION */
122 1.1.26.1 skrll 0x05, 0x0d, /* USAGE_PAGE (Digitizers) */
123 1.1.26.1 skrll 0x09, 0x01, /* USAGE (Pointer) */
124 1.1.26.1 skrll 0xa1, 0x01, /* COLLECTION (Applicaption) */
125 1.1.26.1 skrll 0x85, 0x02, /* REPORT_ID (2) */
126 1.1.26.1 skrll 0x05, 0x0d, /* USAGE_PAGE (Digitizers) */
127 1.1.26.1 skrll 0x09, 0x01, /* USAGE (Digitizer) */
128 1.1.26.1 skrll 0xa1, 0x00, /* COLLECTION (Physical) */
129 1.1.26.1 skrll 0x09, 0x33, /* USAGE (Touch) */
130 1.1.26.1 skrll 0x09, 0x44, /* USAGE (Barrel Switch) */
131 1.1.26.1 skrll 0x09, 0x44, /* USAGE (Barrel Switch) */
132 1.1.26.1 skrll 0x15, 0x00, /* LOGICAL_MINIMUM (0) */
133 1.1.26.1 skrll 0x25, 0x01, /* LOGICAL_MAXIMUM (1) */
134 1.1.26.1 skrll 0x75, 0x01, /* REPORT_SIZE (1) */
135 1.1.26.1 skrll 0x95, 0x03, /* REPORT_COUNT (3) */
136 1.1.26.1 skrll 0x81, 0x02, /* INPUT (Data,Var,Abs) */
137 1.1.26.1 skrll 0x75, 0x01, /* REPORT_SIZE (1) */
138 1.1.26.1 skrll 0x95, 0x02, /* REPORT_COUNT (2) */
139 1.1.26.1 skrll 0x81, 0x01, /* INPUT (Cnst,Ary,Abs) */
140 1.1.26.1 skrll 0x09, 0x3c, /* USAGE (Invert) */
141 1.1.26.1 skrll 0x09, 0x38, /* USAGE (Transducer Index) */
142 1.1.26.1 skrll 0x09, 0x32, /* USAGE (In Range) */
143 1.1.26.1 skrll 0x75, 0x01, /* REPORT_SIZE (1) */
144 1.1.26.1 skrll 0x95, 0x03, /* REPORT_COUNT (3) */
145 1.1.26.1 skrll 0x81, 0x02, /* INPUT (Data,Var,Abs) */
146 1.1.26.1 skrll 0x05, 0x01, /* USAGE_PAGE (Generic Desktop) */
147 1.1.26.1 skrll 0x09, 0x30, /* USAGE (X) */
148 1.1.26.1 skrll 0x15, 0x00, /* LOGICAL_MINIMUM (0) */
149 1.1.26.1 skrll 0x26, 0xde, 0x27, /* LOGICAL_MAXIMUM (10206) */
150 1.1.26.1 skrll 0x75, 0x10, /* REPORT_SIZE (16) */
151 1.1.26.1 skrll 0x95, 0x01, /* REPORT_COUNT (1) */
152 1.1.26.1 skrll 0x81, 0x02, /* INPUT (Data,Var,Abs) */
153 1.1.26.1 skrll 0x09, 0x31, /* USAGE (Y) */
154 1.1.26.1 skrll 0x26, 0xfe, 0x1c, /* LOGICAL_MAXIMUM (7422) */
155 1.1.26.1 skrll 0x75, 0x10, /* REPORT_SIZE (16) */
156 1.1.26.1 skrll 0x95, 0x01, /* REPORT_COUNT (1) */
157 1.1.26.1 skrll 0x81, 0x02, /* INPUT (Data,Var,Abs) */
158 1.1.26.1 skrll 0x05, 0x0d, /* USAGE_PAGE (Digitizers) */
159 1.1.26.1 skrll 0x09, 0x30, /* USAGE (Tip Pressure) */
160 1.1.26.1 skrll 0x26, 0xff, 0x01, /* LOGICAL_MAXIMUM (511) */
161 1.1.26.1 skrll 0x75, 0x10, /* REPORT_SIZE (16) */
162 1.1.26.1 skrll 0x95, 0x01, /* REPORT_COUNT (1) */
163 1.1.26.1 skrll 0x81, 0x02, /* INPUT (Data,Var,Abs) */
164 1.1.26.1 skrll 0xc0, /* END_COLLECTION */
165 1.1.26.1 skrll 0x05, 0x0d, /* USAGE_PAGE (Digitizers) */
166 1.1.26.1 skrll 0x09, 0x00, /* USAGE (Undefined) */
167 1.1.26.1 skrll 0x85, 0x02, /* REPORT_ID (2) */
168 1.1.26.1 skrll 0x95, 0x01, /* REPORT_COUNT (1) */
169 1.1.26.1 skrll 0xb1, 0x02, /* FEATURE (Data,Var,Abs) */
170 1.1.26.1 skrll 0x09, 0x00, /* USAGE (Undefined) */
171 1.1.26.1 skrll 0x85, 0x03, /* REPORT_ID (3) */
172 1.1.26.1 skrll 0x95, 0x01, /* REPORT_COUNT (1) */
173 1.1.26.1 skrll 0xb1, 0x02, /* FEATURE (Data,Var,Abs) */
174 1.1.26.1 skrll 0xc0 /* END_COLLECTION */
175 1.1.26.1 skrll };
176