]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[bios] Add support for injecting keypresses
authorMichael Brown <mcb30@ipxe.org>
Fri, 18 Dec 2015 10:05:58 +0000 (10:05 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 23 Dec 2015 11:47:17 +0000 (11:47 +0000)
commit0f67f2edb7688d8f874239928b3c4e0446d252bd
tree0ed858cd3d5c931f420f7a08ecedb18e371a2982
parent91dd5524b762e2438cc6a949dd1440ee0998f5ef
[bios] Add support for injecting keypresses

When USB network card drivers are used, the BIOS' legacy USB
capability is necessarily disabled since there is no way to share the
host controller between the BIOS and iPXE.

Commit 3726722 ("[usb] Add basic support for USB keyboards") added
support allowing a USB keyboard to be used within iPXE.  However,
external code such as a PXE NBP has no way to utilise this support,
and so a USB keyboard cannot be used to control a PXE NBP loaded from
a USB network card.

Add support for injecting keypresses from any iPXE console into the
BIOS keyboard buffer.  This allows external code such as a PXE NBP to
function with a USB keyboard even after the BIOS' legacy USB
capability has been disabled.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/firmware/pcbios/bios_console.c