[SeaBIOS] [PATCH 06/10] kbd: Move checking for special keys in __process_keys() into switch

2016-09-05 Thread Kevin O'Connor
Signed-off-by: Kevin O'Connor --- src/kbd.c | 136 -- 1 file changed, 71 insertions(+), 65 deletions(-) diff --git a/src/kbd.c b/src/kbd.c index 7ab440e..a75adc3 100644 --- a/src/kbd.c +++ b/src/kbd.c @@ -398,34

[SeaBIOS] [PATCH 01/10] kbd: Implement 101-key keyboard keycode mapping

2016-09-05 Thread Kevin O'Connor
The current keyboard code only supports the keycode mappings for 83-key keyboards (plus handling for alt-esc and f11/f12). Add a more complete mapping of keycodes for 101-key keyboards. This adds more alt key and ctrl key mappings. Signed-off-by: Kevin O'Connor ---

[SeaBIOS] [PATCH 02/10] kbd: Implement extended keycode mappings for keypad-enter and keypad-/

2016-09-05 Thread Kevin O'Connor
On a 101-key keyboard the keypad enter and keypad '/' keys have unique BIOS keycodes that are distinct from the main keyboard enter and '/' keys. Signed-off-by: Kevin O'Connor --- src/kbd.c | 17 + 1 file changed, 17 insertions(+) diff --git a/src/kbd.c

[SeaBIOS] [PATCH 09/10] kbd: Generate interrupt events for SysReq, PrtScr, and Break

2016-09-05 Thread Kevin O'Connor
Generate the appropriate interrupt events for the given keys. Signed-off-by: Kevin O'Connor --- src/kbd.c | 55 ++- src/romlayout.S | 2 ++ 2 files changed, 52 insertions(+), 5 deletions(-) diff --git a/src/kbd.c

[SeaBIOS] [PATCH 04/10] kbd: Merge bda->kbd_flag0 and bda->kbd_flag1

2016-09-05 Thread Kevin O'Connor
Merge the two consecutive u8 fields into a single u16 field. Signed-off-by: Kevin O'Connor --- src/kbd.c | 87 +-- src/std/bda.h | 26 +++--- 2 files changed, 54 insertions(+), 59 deletions(-) diff

[SeaBIOS] [PATCH 08/10] usb-hid: Generate Ctrl+Break and Alt+SysReq keys

2016-09-05 Thread Kevin O'Connor
Detect the sequences for generating Ctrl+Break and Alt+SysReq on USB keyboards and produce the appropriate legacy scancodes. Signed-off-by: Kevin O'Connor --- src/hw/usb-hid.c | 50 ++ 1 file changed, 30 insertions(+), 20

[SeaBIOS] [PATCH 05/10] kbd: Extract out shift flag setting into new function

2016-09-05 Thread Kevin O'Connor
Signed-off-by: Kevin O'Connor --- src/kbd.c | 105 +- 1 file changed, 43 insertions(+), 62 deletions(-) diff --git a/src/kbd.c b/src/kbd.c index c45e8ea..7ab440e 100644 --- a/src/kbd.c +++ b/src/kbd.c @@ -377,21

[SeaBIOS] [PATCH 10/10] post: Map int 0x05 to entry point

2016-09-05 Thread Kevin O'Connor
int 0x05 was not assigned in the interrupt table - fix that. Signed-off-by: Kevin O'Connor --- src/post.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/post.c b/src/post.c index 2c4f12b..2a06d44 100644 --- a/src/post.c +++ b/src/post.c @@ -47,6 +47,7 @@

[SeaBIOS] [PATCH 03/10] kbd: Suppress keys without mappings

2016-09-05 Thread Kevin O'Connor
Don't warn if a key without a mapping is pressed - it's known that some keys aren't mapped to keycodes. Suppress these keys instead of sending 0x to the keyboard buffer - as 0x can confuse some programs. Signed-off-by: Kevin O'Connor --- src/kbd.c | 5 ++--- 1 file