summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
diff options
context:
space:
mode:
authorJiaqing Zhao <Zhao.Jiaqing@amd.com>2026-06-24 10:13:29 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-07-20 15:43:36 +0300
commitd0c42935e22c8678aa15a79e0fe80294a115fcd4 (patch)
treec0d31efd4da4e3496e69bddc6f617f90a5a732b2 /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
parent0fc04cff3b211b979cb3b5f1602d1c6c5aad3bfe (diff)
downloadedk2-d0c42935e22c8678aa15a79e0fe80294a115fcd4.tar.xz
OvmfPkg/VirtioInputDxe: Add keyboard capability detection
Current driver produces the EFI_SIMPLE_TEXT_INPUT[_EX]_PROTOCOL interfaces on every virtio-input device it binds. A virtio-input device may however be a pointer device (mouse or tablet) that reports no keyboard keys, in which case the keyboard protocols should not be installed. Add VirtioInputHasKeyboard() to check whether the virtio-input device implements a keyboard by scanning the EV_KEY capability bitmap to see if any keycodes between [0, MAX_KEYBOARD_CODE] is supported. A helper function VirtioInputConfigQuerySize() is also added for fetching the size of a virtio-input configuration sub-selection. VirtioInputInit() now stores the result in Dev->HasKeyboard and fails with EFI_UNSUPPORTED when no keyboard is present. Signed-off-by: Jiaqing Zhao <Zhao.Jiaqing@amd.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c')
0 files changed, 0 insertions, 0 deletions