diff options
author | Vladimir Kondratyev <wulf@FreeBSD.org> | 2021-04-11 23:08:36 +0000 |
---|---|---|
committer | Vladimir Kondratyev <wulf@FreeBSD.org> | 2021-04-11 23:14:12 +0000 |
commit | e4643aa4c4ffd385a5be635a488cf10fb6d6cf68 (patch) | |
tree | 15840103085ef278a922f813c24f6ae778add3ee /sys/dev/hyperv/input/hv_kbdc.h | |
parent | c2a159286c7694306fde8c161af47a220e1a76f2 (diff) | |
download | src-e4643aa4c4ffd385a5be635a488cf10fb6d6cf68.tar.gz src-e4643aa4c4ffd385a5be635a488cf10fb6d6cf68.zip |
hv_kbd: Add support for K_XLATE and K_CODE modes for gen 2 VMs
That fixes disabled keyboard input after Xorg server has been stopped.
Reviewed by: whu
MFC after: 1 month
Differential revision: https://reviews.freebsd.org/D28171
Diffstat (limited to 'sys/dev/hyperv/input/hv_kbdc.h')
-rw-r--r-- | sys/dev/hyperv/input/hv_kbdc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/hyperv/input/hv_kbdc.h b/sys/dev/hyperv/input/hv_kbdc.h index 562009df9a94..7effa6b8a49b 100644 --- a/sys/dev/hyperv/input/hv_kbdc.h +++ b/sys/dev/hyperv/input/hv_kbdc.h @@ -90,6 +90,9 @@ typedef struct hv_kbd_sc_t { keyboard_t sc_kbd; int sc_mode; int sc_state; + uint32_t sc_accents; /* accent key index (> 0) */ + uint32_t sc_composed_char; /* composed char code */ + uint8_t sc_prefix; /* AT scan code prefix */ int sc_polling; /* polling recursion count */ uint32_t sc_flags; int debug; |