]> git.sur5r.net Git - u-boot/commit
efi_loader: Add console interface
authorAlexander Graf <agraf@suse.de>
Fri, 4 Mar 2016 00:10:00 +0000 (01:10 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 15 Mar 2016 22:03:09 +0000 (18:03 -0400)
commitc1311ad4e0d1759788601513fac0f65620d40472
tree1f7b252b32bebf338b03eb626b68cb71f01ebe08
parentbee91169f5b258bd8e61c3b902c07bf0e9b18c01
efi_loader: Add console interface

One of the basic EFI interfaces is the console interface. Using it an EFI
application can interface with the user. This patch implements an EFI console
interface using getc() and putc().

Today, we only implement text based consoles. We also convert the EFI Unicode
characters to UTF-8 on the fly, hoping that everyone managed to jump on the
train by now.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
include/efi_loader.h
lib/efi_loader/efi_console.c [new file with mode: 0644]