summaryrefslogtreecommitdiffstats
path: root/tools/4.11/microwindows/microwindows-0.93-dev.diff
blob: 5960fe0aa2dd75ff1e3d1fafd5d5b1f4a15c8f6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
diff --git a/src/drivers/kbd_rtems.c b/src/drivers/kbd_rtems.c
--- a/src/drivers/kbd_rtems.c
+++ b/src/drivers/kbd_rtems.c
@@ -30,9 +30,12 @@
 #include <fcntl.h>
 #include <sys/ioctl.h>
 #include <errno.h>
+#include <string.h>

 #include <rtems/mw_uid.h>
+#include <bsp/keyboard.h>
 #include "device.h"
+#include "keymap_standard.h"

 extern int close (int fd); /* RTEMS does not include close() in stdio.h */

@@ -45,6 +48,9 @@ void    MWKbd_Close (void);
 void MWKbd_GetModifierInfo (MWKEYMOD *modifiers, MWKEYMOD *curmodifiers);
 int  MWKbd_Read (MWKEY *buf, MWKEYMOD *modifiers, MWSCANCODE *scancode);

+static MWKEY TranslateScancode(int scancode, MWKEYMOD modstate);
+static void LoadKernelKeymaps(int fd);
+
 KBDDEVICE kbddev = {
         MWKbd_Open,
  MWKbd_Close,
diff --git a/src/Configs/config.rtems b/src/Configs/config.rtems
index 129860f..0872d8c 100644
--- a/src/Configs/config.rtems
+++ b/src/Configs/config.rtems
@@ -67,8 +67,8 @@ OBJFRAMEWORK             = N
 # Demos to build
 #
 ####################################################################
-MICROWINDEMO             = Y
-NANOXDEMO                = Y
+MICROWINDEMO             = N
+NANOXDEMO                = N

 ####################################################################
 #
diff --git a/src/rtems/rtems_init.c b/src/rtems/rtems_init.c
index 70a4639..1a4f8f2 100644
--- a/src/rtems/rtems_init.c
+++ b/src/rtems/rtems_init.c
@@ -38,7 +38,7 @@
 /* TBD: Find better way than this to deal with BSPs which do not have
  *      these driver entries.  This is a hacky cover up.
  */
-#if 0
+#if 1

 #ifndef PAUX_DRIVER_TABLE_ENTRY
   #define PAUX_DRIVER_TABLE_ENTRY NULL_DRIVER_TABLE_ENTRY