2 * $NetBSD: usb/ugraphire_rdesc.h,v 1.1 2000/12/29 01:47:49 augustss Exp $
3 * $FreeBSD: src/sys/dev/usb/ugraphire_rdesc.h,v 1.1 2002/04/07 17:04:01 joe Exp $
4 * $DragonFly: src/sys/bus/usb/ugraphire_rdesc.h,v 1.1 2003/12/30 01:01:44 dillon Exp $
7 * Copyright (c) 2000 Nick Hibma <n_hibma@freebsd.org>
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 static uByte uhid_graphire_report_descr[] = {
33 0x05, 0x0d, /* USAGE_PAGE (Digitizers) */
34 0x09, 0x01, /* USAGE (Digitizer) */
35 0xa1, 0x01, /* COLLECTION (Application) */
36 0x85, 0x02, /* REPORT_ID (2) */
37 0x05, 0x0d, /* USAGE_PAGE (Digitizers) */
38 0x09, 0x01, /* USAGE (Digitizer) */
39 0xa1, 0x00, /* COLLECTION (Physical) */
40 0x15, 0x00, /* LOGICAL_MINIMUM (0) */
41 0x25, 0x01, /* LOGICAL_MAXIMUM (1) */
42 0x09, 0x33, /* USAGE (Touch) */
43 0x95, 0x01, /* REPORT_COUNT (1) */
44 0x75, 0x01, /* REPORT_SIZE (1) */
45 0x81, 0x02, /* INPUT (Data,Var,Abs) */
46 0x09, 0x44, /* USAGE (Barrel Switch) */
47 0x95, 0x02, /* REPORT_COUNT (2) */
48 0x75, 0x01, /* REPORT_SIZE (1) */
49 0x81, 0x02, /* INPUT (Data,Var,Abs) */
50 0x09, 0x00, /* USAGE (Undefined) */
51 0x95, 0x02, /* REPORT_COUNT (2) */
52 0x75, 0x01, /* REPORT_SIZE (1) */
53 0x81, 0x03, /* INPUT (Cnst,Var,Abs) */
54 0x09, 0x3c, /* USAGE (Invert) */
55 0x95, 0x01, /* REPORT_COUNT (1) */
56 0x75, 0x01, /* REPORT_SIZE (1) */
57 0x81, 0x02, /* INPUT (Data,Var,Abs) */
58 0x09, 0x38, /* USAGE (Transducer Index) */
59 0x95, 0x01, /* REPORT_COUNT (1) */
60 0x75, 0x01, /* REPORT_SIZE (1) */
61 0x81, 0x02, /* INPUT (Data,Var,Abs) */
62 0x09, 0x32, /* USAGE (In Range) */
63 0x95, 0x01, /* REPORT_COUNT (1) */
64 0x75, 0x01, /* REPORT_SIZE (1) */
65 0x81, 0x02, /* INPUT (Data,Var,Abs) */
66 0x05, 0x01, /* USAGE_PAGE (Generic Desktop) */
67 0x09, 0x30, /* USAGE (X) */
68 0x15, 0x00, /* LOGICAL_MINIMUM (0) */
69 0x26, 0xde, 0x27, /* LOGICAL_MAXIMUM (10206) */
70 0x95, 0x01, /* REPORT_COUNT (1) */
71 0x75, 0x10, /* REPORT_SIZE (16) */
72 0x81, 0x02, /* INPUT (Data,Var,Abs) */
73 0x09, 0x31, /* USAGE (Y) */
74 0x26, 0xfe, 0x1c, /* LOGICAL_MAXIMUM (7422) */
75 0x95, 0x01, /* REPORT_COUNT (1) */
76 0x75, 0x10, /* REPORT_SIZE (16) */
77 0x81, 0x02, /* INPUT (Data,Var,Abs) */
78 0x05, 0x0d, /* USAGE_PAGE (Digitizers) */
79 0x09, 0x30, /* USAGE (Tip Pressure) */
80 0x26, 0xff, 0x01, /* LOGICAL_MAXIMUM (511) */
81 0x95, 0x01, /* REPORT_COUNT (1) */
82 0x75, 0x10, /* REPORT_SIZE (16) */
83 0x81, 0x02, /* INPUT (Data,Var,Abs) */
84 0xc0, /* END_COLLECTION */
85 0x05, 0x0d, /* USAGE_PAGE (Digitizers) */
86 0x09, 0x00, /* USAGE (Undefined) */
87 0x85, 0x02, /* REPORT_ID (2) */
88 0x95, 0x01, /* REPORT_COUNT (1) */
89 0xb1, 0x02, /* FEATURE (Data,Var,Abs) */
90 0x09, 0x00, /* USAGE (Undefined) */
91 0x85, 0x03, /* REPORT_ID (3) */
92 0x95, 0x01, /* REPORT_COUNT (1) */
93 0xb1, 0x02, /* FEATURE (Data,Var,Abs) */
94 0xc0, /* END_COLLECTION */