[console] Generalise bios_keymap() as key_remap()

Allow the keyboard remapping functionality to be exposed to consoles
other than the BIOS console.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2022-02-09 15:54:39 +00:00
parent 64113751c3
commit f51a62bc3f
3 changed files with 55 additions and 17 deletions

View File

@@ -27,4 +27,6 @@ struct key_mapping {
/** Define a keyboard mapping */
#define __keymap __table_entry ( KEYMAP, 01 )
extern unsigned int key_remap ( unsigned int character );
#endif /* _IPXE_KEYMAP_H */