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