summaryrefslogtreecommitdiffstats
path: root/meta/packages/linux-libc-headers/files/keyboard.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/linux-libc-headers/files/keyboard.patch')
-rw-r--r--meta/packages/linux-libc-headers/files/keyboard.patch78
1 files changed, 78 insertions, 0 deletions
diff --git a/meta/packages/linux-libc-headers/files/keyboard.patch b/meta/packages/linux-libc-headers/files/keyboard.patch
new file mode 100644
index 0000000000..7df00418b1
--- /dev/null
+++ b/meta/packages/linux-libc-headers/files/keyboard.patch
@@ -0,0 +1,78 @@
1--- kernel/include/linux/keyboard.h 2004-01-17 23:04:30.000000000 +0000
2+++ kernel/include/linux/keyboard.h 2004-08-30 12:49:41.000000000 +0100
3@@ -37,6 +44,8 @@
4 #define KT_ASCII 9
5 #define KT_LOCK 10
6 #define KT_SLOCK 12
7+#define KT_X 13 /* A few useful symbols from the base X Keysym set, that go with... */
8+#define KT_XF 14 /* The XFree86 Internet multimedia and PDA keyboard symbols */
9
10 #define K(t,v) (((t)<<8)|(v))
11 #define KTYP(x) ((x) >> 8)
12@@ -421,4 +430,66 @@
13 #define NR_LOCK 8
14
15 #define MAX_DIACR 256
16+
17+/*
18+ * modifications to this section of this list should be coordinated with
19+ * the X Window System keysym list; life is much easier that way
20+ *
21+ */
22+
23+/* These don't correspond identically. */
24+#define K_XMENU K(KT_X, 0x1)
25+#define K_XTELEPHONE K(KT_X, 0x2)
26+
27+/*
28+ * XFree86 vendor specific keysyms.
29+ *
30+ * These map to XFree86 X keysym range is 0x1008FF01 - 0x1008FFFF;
31+ * for simplicity's sake, we'll define a simple identity mapping for these.
32+ *
33+ * Please coordinate changes here with XFree86.org, so this simple
34+ * identity mapping can be maintained (and old code "just works").
35+ *
36+ * Keys found on some "Internet" keyboards.
37+ */
38+#define K_XFSTANDBY K(KT_XF,0x10)
39+#define K_XFAUDIOLOWERVOLUME K(KT_XF,0x11)
40+#define K_XFAUDIOMUTE K(KT_XF,0x12)
41+#define K_XFAUDIORAISEVOLUME K(KT_XF,0x13)
42+#define K_XFAUDIOPLAY K(KT_XF,0x14)
43+#define K_XFAUDIOSTOP K(KT_XF,0x15)
44+#define K_XFAUDIOPREV K(KT_XF,0x16)
45+#define K_XFAUDIONEXT K(KT_XF,0x17)
46+#define K_XFHOMEPAGE K(KT_XF,0x18)
47+#define K_XFMAIL K(KT_XF,0x19)
48+#define K_XFSTART K(KT_XF,0x1A)
49+#define K_XFSEARCH K(KT_XF,0x1B)
50+#define K_XFAUDIORECORD K(KT_XF,0x1C)
51+
52+/* These are sometimes found on PDA's (e.g. Palm, PocketPC or elsewhere) */
53+#define K_XFCALCULATOR K(KT_XF,0x1D)
54+#define K_XFMEMO K(KT_XF,0x1E)
55+#define K_XFTODOLIST K(KT_XF,0x1F)
56+#define K_XFCALENDAR K(KT_XF,0x20)
57+#define K_XFPOWERDOWN K(KT_XF,0x21)
58+#define K_XFCONTRASTADJUST K(KT_XF,0x22)
59+#define K_XFROCKERUP K(KT_XF,0x23)
60+#define K_XFROCKERDOWN K(KT_XF,0x24)
61+#define K_XFROCKERENTER K(KT_XF,0x25)
62+
63+/* Some more "Internet" keyboard symbols */
64+#define K_XFBACK K(KT_XF,0x26)
65+#define K_XFFORWARD K(KT_XF,0x27)
66+#define K_XFSTOP K(KT_XF,0x28)
67+#define K_XFREFRESH K(KT_XF,0x29)
68+
69+/* Some more ... */
70+#define K_XFFAVORITES K(KT_XF,0x30)
71+#define K_XFAUDIOPAUSE K(KT_XF,0x31)
72+#define K_XFAUDIOMEDIA K(KT_XF,0x32)
73+#define K_XFMYCOMPUTER K(KT_XF,0x33)
74+#define K_XFVENDORHOME K(KT_XF,0x34)
75+#define K_XFLIGHTBULB K(KT_XF,0x35)
76+#define K_XFSHOP K(KT_XF,0x36)
77+
78 #endif