1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 #ifndef _HID_UCLOGIC_RDESC_H
18 #define _HID_UCLOGIC_RDESC_H
19
20 #include <linux/usb.h>
21
22
23 #define UCLOGIC_RDESC_WPXXXXU_ORIG_SIZE 212
24
25
26 extern __u8 uclogic_rdesc_wp4030u_fixed_arr[];
27 extern const size_t uclogic_rdesc_wp4030u_fixed_size;
28
29
30 extern __u8 uclogic_rdesc_wp5540u_fixed_arr[];
31 extern const size_t uclogic_rdesc_wp5540u_fixed_size;
32
33
34 extern __u8 uclogic_rdesc_wp8060u_fixed_arr[];
35 extern const size_t uclogic_rdesc_wp8060u_fixed_size;
36
37
38 #define UCLOGIC_RDESC_WP5540U_V2_ORIG_SIZE 232
39
40
41 #define UCLOGIC_RDESC_WP1062_ORIG_SIZE 254
42
43
44 extern __u8 uclogic_rdesc_wp1062_fixed_arr[];
45 extern const size_t uclogic_rdesc_wp1062_fixed_size;
46
47
48 #define UCLOGIC_RDESC_PF1209_ORIG_SIZE 234
49
50
51 extern __u8 uclogic_rdesc_pf1209_fixed_arr[];
52 extern const size_t uclogic_rdesc_pf1209_fixed_size;
53
54
55 #define UCLOGIC_RDESC_TWHL850_ORIG0_SIZE 182
56 #define UCLOGIC_RDESC_TWHL850_ORIG1_SIZE 161
57 #define UCLOGIC_RDESC_TWHL850_ORIG2_SIZE 92
58
59
60 extern __u8 uclogic_rdesc_twhl850_fixed0_arr[];
61 extern const size_t uclogic_rdesc_twhl850_fixed0_size;
62
63
64 extern __u8 uclogic_rdesc_twhl850_fixed1_arr[];
65 extern const size_t uclogic_rdesc_twhl850_fixed1_size;
66
67
68 extern __u8 uclogic_rdesc_twhl850_fixed2_arr[];
69 extern const size_t uclogic_rdesc_twhl850_fixed2_size;
70
71
72 #define UCLOGIC_RDESC_TWHA60_ORIG0_SIZE 254
73 #define UCLOGIC_RDESC_TWHA60_ORIG1_SIZE 139
74
75
76 extern __u8 uclogic_rdesc_twha60_fixed0_arr[];
77 extern const size_t uclogic_rdesc_twha60_fixed0_size;
78
79
80 extern __u8 uclogic_rdesc_twha60_fixed1_arr[];
81 extern const size_t uclogic_rdesc_twha60_fixed1_size;
82
83
84 #define UCLOGIC_RDESC_PH_HEAD 0xFE, 0xED, 0x1D
85
86
87 extern __u8 *uclogic_rdesc_template_apply(const __u8 *template_ptr,
88 size_t template_size,
89 const s32 *param_list,
90 size_t param_num);
91
92
93 enum uclogic_rdesc_pen_ph_id {
94 UCLOGIC_RDESC_PEN_PH_ID_X_LM,
95 UCLOGIC_RDESC_PEN_PH_ID_X_PM,
96 UCLOGIC_RDESC_PEN_PH_ID_Y_LM,
97 UCLOGIC_RDESC_PEN_PH_ID_Y_PM,
98 UCLOGIC_RDESC_PEN_PH_ID_PRESSURE_LM,
99 UCLOGIC_RDESC_PEN_PH_ID_NUM
100 };
101
102
103 #define UCLOGIC_RDESC_PEN_PH(_ID) \
104 UCLOGIC_RDESC_PH_HEAD, UCLOGIC_RDESC_PEN_PH_ID_##_ID
105
106
107 #define UCLOGIC_RDESC_PEN_V1_ID 0x07
108
109
110 extern const __u8 uclogic_rdesc_pen_v1_template_arr[];
111 extern const size_t uclogic_rdesc_pen_v1_template_size;
112
113
114 #define UCLOGIC_RDESC_PEN_V2_ID 0x08
115
116
117 extern const __u8 uclogic_rdesc_pen_v2_template_arr[];
118 extern const size_t uclogic_rdesc_pen_v2_template_size;
119
120
121 extern const __u8 uclogic_rdesc_buttonpad_v1_arr[];
122 extern const size_t uclogic_rdesc_buttonpad_v1_size;
123
124
125 #define UCLOGIC_RDESC_BUTTONPAD_V1_ID 0xf7
126
127
128 extern const __u8 uclogic_rdesc_buttonpad_v2_arr[];
129 extern const size_t uclogic_rdesc_buttonpad_v2_size;
130
131
132 #define UCLOGIC_RDESC_BUTTONPAD_V2_ID 0xf7
133
134
135 extern const __u8 uclogic_rdesc_ugee_ex07_buttonpad_arr[];
136 extern const size_t uclogic_rdesc_ugee_ex07_buttonpad_size;
137
138
139 extern const __u8 uclogic_rdesc_xppen_deco01_frame_arr[];
140 extern const size_t uclogic_rdesc_xppen_deco01_frame_size;
141
142
143 extern const __u8 uclogic_rdesc_ugee_g5_frame_arr[];
144 extern const size_t uclogic_rdesc_ugee_g5_frame_size;
145
146
147 #define UCLOGIC_RDESC_UGEE_G5_FRAME_ID 0x06
148
149
150 #define UCLOGIC_RDESC_UGEE_G5_FRAME_DEV_ID_BYTE 0x2
151
152
153 #define UCLOGIC_RDESC_UGEE_G5_FRAME_RE_LSB 38
154
155 #endif