aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-09-18 10:47:20 +0200
committerKevin O'Connor <kevin@koconnor.net>2017-09-22 11:13:22 -0400
commit90fa511527146dc098c39612478e61cdd3e1dc82 (patch)
tree82de4451419613adc514af7a5215171e24d9bf12 /src/util.h
parent44270bc1d285ff09981adef36ba1a2c525e79d09 (diff)
downloadseabios-90fa511527146dc098c39612478e61cdd3e1dc82.tar.gz
kbd: make enqueue_key public, add ascii_to_keycode
serial console wants queue key events and needs to map ascii chars to the keycode, so make enqueue_key public and also exports a helper function so sercon can use the scan_to_keycode mapping table. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 8269057f..da9059a9 100644
--- a/src/util.h
+++ b/src/util.h
@@ -186,6 +186,8 @@ int jpeg_show(struct jpeg_decdata *jpeg, unsigned char *pic, int width
void kbd_init(void);
void handle_15c2(struct bregs *regs);
void process_key(u8 key);
+u8 enqueue_key(u16 keycode);
+u16 ascii_to_keycode(u8 ascii);
// misc.c
extern int HaveRunPost;