Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate entry for protocol5 in inputattach, also sets higher baudrate
- Loading branch information
Showing
2 changed files
with
65 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,78 @@ | ||
diff -u joystick-1.4.1/utils/inputattach.c joystick-patched/utils/inputattach.c | ||
--- joystick-1.4.1/utils/inputattach.c 2011-06-25 09:16:58.000000000 -0400 | ||
+++ joystick-patched/utils/inputattach.c 2011-07-01 13:48:15.000000000 -0400 | ||
@@ -588,6 +588,9 @@ | ||
diff -rupN linuxconsoletools-1.4.1-original/inputattach.patch linuxconsoletools-1.4.1/inputattach.patch | ||
--- linuxconsoletools-1.4.1-original/inputattach.patch 1970-01-01 01:00:00.000000000 +0100 | ||
+++ linuxconsoletools-1.4.1/inputattach.patch 2011-07-11 12:06:30.331999922 +0200 | ||
@@ -0,0 +1,25 @@ | ||
+diff -u joystick-1.4.1/utils/inputattach.c joystick-patched/utils/inputattach.c | ||
+--- joystick-1.4.1/utils/inputattach.c 2011-06-25 09:16:58.000000000 -0400 | ||
++++ joystick-patched/utils/inputattach.c 2011-07-01 13:48:15.000000000 -0400 | ||
+@@ -588,6 +588,9 @@ | ||
+ { "--w8001", "-w8001", "Wacom W8001", | ||
+ B38400, CS8, | ||
+ SERIO_W8001, 0x00, 0x00, 0, NULL }, | ||
++{ "--wacom_iv", "-wacom_iv", "Wacom protocol 4 tablet", | ||
++ B9600, CS8, | ||
++ SERIO_WACOM_IV, 0x00, 0x00, 0, NULL }, | ||
+ { NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL } | ||
+ }; | ||
+ | ||
+diff -u joystick-1.4.1/utils/serio-ids.h joystick-patched/utils/serio-ids.h | ||
+--- joystick-1.4.1/utils/serio-ids.h 2010-11-04 02:15:02.000000000 -0400 | ||
++++ joystick-patched/utils/serio-ids.h 2011-07-01 13:48:33.000000000 -0400 | ||
+@@ -125,5 +125,8 @@ | ||
+ #ifndef SERIO_PSMULT | ||
+ # define SERIO_PS2MULT 0x3c | ||
+ #endif | ||
++#ifndef SERIO_WACOM_IV | ||
++# define SERIO_WACOM_IV 0x3d | ||
++#endif | ||
+ | ||
+ #endif | ||
diff -rupN linuxconsoletools-1.4.1-original/utils/inputattach.c linuxconsoletools-1.4.1/utils/inputattach.c | ||
--- linuxconsoletools-1.4.1-original/utils/inputattach.c 2011-06-25 15:16:58.000000000 +0200 | ||
+++ linuxconsoletools-1.4.1/utils/inputattach.c 2011-07-13 13:15:37.231000078 +0200 | ||
@@ -459,6 +459,17 @@ static int dump_init(int fd, unsigned lo | ||
} | ||
} | ||
|
||
+static int wacom_v_init(int fd, unsigned long *id, unsigned long *extra) | ||
+{ | ||
+ if (write(fd, "BA19\r", 5) != 5) | ||
+ return -1; | ||
+ | ||
+ usleep(100 * 1000); | ||
+ | ||
+ setline(fd, CS8, B19200); | ||
+ return 0; | ||
+} | ||
+ | ||
struct input_types { | ||
const char *name; | ||
const char *name2; | ||
@@ -588,6 +599,12 @@ static struct input_types input_types[] | ||
{ "--w8001", "-w8001", "Wacom W8001", | ||
B38400, CS8, | ||
SERIO_W8001, 0x00, 0x00, 0, NULL }, | ||
+{ "--wacom_iv", "-wacom_iv", "Wacom protocol 4 tablet", | ||
+ B9600, CS8, | ||
+ SERIO_WACOM_IV, 0x00, 0x00, 0, NULL }, | ||
+{ "--wacom_v", "-wacom_v", "Wacom protocol 5 tablet", | ||
+ B9600, CS8, | ||
+ SERIO_WACOM_V, 0x00, 0x00, 0, wacom_v_init }, | ||
{ NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL } | ||
}; | ||
|
||
diff -u joystick-1.4.1/utils/serio-ids.h joystick-patched/utils/serio-ids.h | ||
--- joystick-1.4.1/utils/serio-ids.h 2010-11-04 02:15:02.000000000 -0400 | ||
+++ joystick-patched/utils/serio-ids.h 2011-07-01 13:48:33.000000000 -0400 | ||
@@ -125,5 +125,8 @@ | ||
diff -rupN linuxconsoletools-1.4.1-original/utils/serio-ids.h linuxconsoletools-1.4.1/utils/serio-ids.h | ||
--- linuxconsoletools-1.4.1-original/utils/serio-ids.h 2010-11-04 07:15:02.000000000 +0100 | ||
+++ linuxconsoletools-1.4.1/utils/serio-ids.h 2011-07-13 13:11:55.223000078 +0200 | ||
@@ -125,5 +125,11 @@ | ||
#ifndef SERIO_PSMULT | ||
# define SERIO_PS2MULT 0x3c | ||
#endif | ||
+#ifndef SERIO_WACOM_IV | ||
+# define SERIO_WACOM_IV 0x3d | ||
+#endif | ||
+#ifndef SERIO_WACOM_V | ||
+# define SERIO_WACOM_V 0x3e | ||
+#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters