]> xenbits.xensource.com Git - xenclient/ioemu.git/commitdiff
Restore xenfb.h and atkbd_ translation tables for xenfbfront
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 27 Jan 2009 12:06:19 +0000 (12:06 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 27 Jan 2009 12:06:19 +0000 (12:06 +0000)
Commit ef21d5fda2be46163d9bc3f65d64a6bfd97dd06e removed xenfb.h but
this broke the stubdom build.  Necessary changes to get the build
working again:
  * un-#if-0 atkbd_set2_keycode and atkbd_unxlate_table in xenfb.c
  * make those two tables not `static'
  * restore xenfb.h, with their declarations
  * adjust the comment in the new xenfb.c

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
hw/xenfb.c
hw/xenfb.h [new file with mode: 0644]

index 3f1bf4a5a6eacd96b77e596c49687ba6c3e6e76c..699f76da3e2fe03b1e83fb5e36645a8827bcc67d 100644 (file)
@@ -130,17 +130,16 @@ static void common_unbind(struct common *c)
 
 /* -------------------------------------------------------------------- */
 
-#if 0
 /*
- * These two tables are not needed any more, but left in here
- * intentionally as documentation, to show how scancode2linux[]
- * was generated.
+ * These two tables are not needed any more here, but left in here
+ * intentionally as documentation, to show how scancode2linux[] was
+ * generated, and also because xenfbfront needs them.
  *
  * Tables to map from scancode to Linux input layer keycode.
  * Scancodes are hardware-specific.  These maps assumes a
  * standard AT or PS/2 keyboard which is what QEMU feeds us.
  */
-static const unsigned char atkbd_set2_keycode[512] = {
+const unsigned char atkbd_set2_keycode[512] = {
 
      0, 67, 65, 63, 61, 59, 60, 88,  0, 68, 66, 64, 62, 15, 41,117,
      0, 56, 42, 93, 29, 16,  2,  0,  0,  0, 44, 31, 30, 17,  3,  0,
@@ -162,7 +161,7 @@ static const unsigned char atkbd_set2_keycode[512] = {
 
 };
 
-static const unsigned char atkbd_unxlate_table[128] = {
+const unsigned char atkbd_unxlate_table[128] = {
 
       0,118, 22, 30, 38, 37, 46, 54, 61, 62, 70, 69, 78, 85,102, 13,
      21, 29, 36, 45, 44, 53, 60, 67, 68, 77, 84, 91, 90, 20, 28, 27,
@@ -174,7 +173,6 @@ static const unsigned char atkbd_unxlate_table[128] = {
      19, 25, 57, 81, 83, 92, 95, 98, 99,100,101,103,104,106,109,110
 
 };
-#endif
 
 /*
  * for (i = 0; i < 128; i++) {
diff --git a/hw/xenfb.h b/hw/xenfb.h
new file mode 100644 (file)
index 0000000..ef055ff
--- /dev/null
@@ -0,0 +1,11 @@
+#ifndef _XENFB_H_
+#define _XENFB_H_
+
+#include "hw.h"
+#include <stdbool.h>
+#include <sys/types.h>
+
+extern const unsigned char atkbd_set2_keycode[512];
+extern const unsigned char atkbd_unxlate_table[128];
+
+#endif