summaryrefslogtreecommitdiff
path: root/linux-input
diff options
context:
space:
mode:
Diffstat (limited to 'linux-input')
-rw-r--r--linux-input/makefile.patch12
-rw-r--r--linux-input/serio.h62
-rw-r--r--linux-input/snes232.patch10
3 files changed, 84 insertions, 0 deletions
diff --git a/linux-input/makefile.patch b/linux-input/makefile.patch
index e69de29bb2..ca605a3e5b 100644
--- a/linux-input/makefile.patch
+++ b/linux-input/makefile.patch
@@ -0,0 +1,12 @@
+--- Makefile.old 2004-10-09 22:58:10.000000000 +0100
++++ Makefile 2004-10-09 22:58:27.000000000 +0100
+@@ -32,8 +32,7 @@
+ CC = gcc
+ CFLAGS = -g -O2 -Wall -I../linux/include
+
+-PROGRAMS = evtest inputattach jstest jscal fftest ffmvforce ffset \
+- ffcfstress acceltest
++PROGRAMS = evtest inputattach jstest jscal fftest
+
+ compile: $(PROGRAMS)
+
diff --git a/linux-input/serio.h b/linux-input/serio.h
index e69de29bb2..82670ed3f5 100644
--- a/linux-input/serio.h
+++ b/linux-input/serio.h
@@ -0,0 +1,62 @@
+#ifndef _SERIO_H
+#define _SERIO_H
+
+/*
+ * Copyright (C) 1999-2002 Vojtech Pavlik
+*
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published by
+ * the Free Software Foundation.
+ */
+
+#include <linux/ioctl.h>
+
+#define SPIOCSTYPE _IOW('q', 0x01, unsigned long)
+
+/*
+ * bit masks for use in "interrupt" flags (3rd argument)
+ */
+#define SERIO_TIMEOUT 1
+#define SERIO_PARITY 2
+#define SERIO_FRAME 4
+
+#define SERIO_TYPE 0xff000000UL
+#define SERIO_XT 0x00000000UL
+#define SERIO_8042 0x01000000UL
+#define SERIO_RS232 0x02000000UL
+#define SERIO_HIL_MLC 0x03000000UL
+#define SERIO_PS_PSTHRU 0x05000000UL
+#define SERIO_8042_XL 0x06000000UL
+
+#define SERIO_PROTO 0xFFUL
+#define SERIO_MSC 0x01
+#define SERIO_SUN 0x02
+#define SERIO_MS 0x03
+#define SERIO_MP 0x04
+#define SERIO_MZ 0x05
+#define SERIO_MZP 0x06
+#define SERIO_MZPP 0x07
+#define SERIO_VSXXXAA 0x08
+#define SERIO_SUNKBD 0x10
+#define SERIO_WARRIOR 0x18
+#define SERIO_SPACEORB 0x19
+#define SERIO_MAGELLAN 0x1a
+#define SERIO_SPACEBALL 0x1b
+#define SERIO_GUNZE 0x1c
+#define SERIO_IFORCE 0x1d
+#define SERIO_STINGER 0x1e
+#define SERIO_NEWTON 0x1f
+#define SERIO_STOWAWAY 0x20
+#define SERIO_H3600 0x21
+#define SERIO_PS2SER 0x22
+#define SERIO_TWIDKBD 0x23
+#define SERIO_TWIDJOY 0x24
+#define SERIO_HIL 0x25
+#define SERIO_SNES232 0x26
+#define SERIO_SEMTECH 0x27
+#define SERIO_LKKBD 0x28
+
+#define SERIO_ID 0xff00UL
+#define SERIO_EXTRA 0xff0000UL
+
+#endif
diff --git a/linux-input/snes232.patch b/linux-input/snes232.patch
index e69de29bb2..95523e4569 100644
--- a/linux-input/snes232.patch
+++ b/linux-input/snes232.patch
@@ -0,0 +1,10 @@
+--- inputattach.c.old 2004-10-09 23:17:27.000000000 +0100
++++ inputattach.c 2004-10-09 23:17:37.000000000 +0100
+@@ -369,6 +369,7 @@
+ { "--ps2serkbd", "-ps2ser", B1200, CS8, SERIO_PS2SER, 0x00, 1, NULL },
+ { "--twiddler", "-twid", B2400, CS8, SERIO_TWIDKBD, 0x00, 0, twiddler_init },
+ { "--twiddler-joy", "-twidjoy", B2400, CS8, SERIO_TWIDJOY, 0x00, 0, twiddler_init },
++{ "--snes232", "-pad", B115200, CS8, SERIO_SNES232, 0x00, 0, NULL },
+ { "--dump", "-dump", B2400, CS8, 0, 0x00, 0, dump_init },
+ { "", "", 0, 0 }
+