nc100: add vt/kbd ioctls
authorAlan Cox <alan@linux.intel.com>
Tue, 30 Dec 2014 19:06:10 +0000 (19:06 +0000)
committerAlan Cox <alan@linux.intel.com>
Tue, 30 Dec 2014 19:06:10 +0000 (19:06 +0000)
Kernel/platform-nc100/devices.c
Kernel/platform-nc100/devtty.c
Kernel/platform-nc100/devtty.h

index 3c7ad1c..bad73e1 100644 (file)
@@ -5,6 +5,7 @@
 #include <devsys.h>
 #include <devlpr.h>
 #include <tty.h>
+#include <vt.h>
 #include <devtty.h>
 
 struct devsw dev_tab[] =  /* The device driver switch table */
@@ -14,7 +15,7 @@ struct devsw dev_tab[] =  /* The device driver switch table */
   /* 1: /dev/hd                Hard disc block devices (Really PCMCIA) */
   {  rd_open,     no_close,    rd_read,   rd_write,   no_ioctl },
   /* 2: /dev/tty       TTY devices */
-  {  nc100_tty_open,     nc100_tty_close,   tty_read,  tty_write,  tty_ioctl },
+  {  nc100_tty_open,     nc100_tty_close,   tty_read,  tty_write,  vt_ioctl },
   /* 3: /dev/lpr       Printer devices */
   {  lpr_open,     lpr_close,   no_rdwr,   lpr_write,  no_ioctl  },
   /* 4: /dev/mem etc   System devices (one offs) */
index 3e030a7..89a8515 100644 (file)
@@ -147,7 +147,7 @@ void nc100_tty_init(void)
   uarta;
 }
 
-static uint8_t keymap[10];
+uint8_t keymap[10];
 static uint8_t keyin[10];
 static uint8_t keybyte, keybit;
 static uint8_t newkey;
index 948cc29..9c94fc9 100644 (file)
@@ -4,4 +4,9 @@
 extern int nc100_tty_open(uint8_t minor, uint16_t flag);
 extern int nc100_tty_close(uint8_t minor);
 extern void nc100_tty_init(void);
+
+extern uint8_t keymap[10];
+#define KEY_ROWS       10
+#define KEY_COLS       8
+
 #endif