dragon: make the keyboard maps external so we can load them from apps
authorAlan Cox <alan@linux.intel.com>
Sun, 4 Jan 2015 17:35:16 +0000 (17:35 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 4 Jan 2015 17:35:16 +0000 (17:35 +0000)
Kernel/platform-dragon/devtty.c

index 05d326b..f778923 100644 (file)
@@ -135,7 +135,7 @@ static void keyproc(void)
        }
 }
 
-static uint8_t keyboard[8][7] = {
+uint8_t keyboard[8][7] = {
        { '0', '8', '@', 'h', 'p', 'x', 10 },
        { '1', '9', 'a', 'i', 'q', 'y', 0 /* clear - used as ctrl*/ },
        { '2', ':', 'b', 'j', 'r', 'z', 27 /* break (used for esc) */ },
@@ -146,7 +146,7 @@ static uint8_t keyboard[8][7] = {
        { '7', '/', 'g', 'o', 'w', ' ', 0 /* shift */ },
 };
 
-static uint8_t shiftkeyboard[8][7] = {
+uint8_t shiftkeyboard[8][7] = {
        { '_', '(', '\\', 'H', 'P', 'X', 10 },
        { '!', ')', 'A', 'I', 'Q', 'Y', 0 /* clear */ },
        { '"', '*', 'B', 'J', 'R', 'Z', 3 /* break */ },