diff options
author | Alexander Graf <agraf@suse.de> | 2016-03-04 00:10:00 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-03-15 22:03:09 (GMT) |
commit | c1311ad4e0d1759788601513fac0f65620d40472 (patch) | |
tree | 1f7b252b32bebf338b03eb626b68cb71f01ebe08 /include | |
parent | bee91169f5b258bd8e61c3b902c07bf0e9b18c01 (diff) | |
download | u-boot-c1311ad4e0d1759788601513fac0f65620d40472.tar.xz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/efi_loader.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index adb3315..d9e9d8f 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -32,6 +32,11 @@ extern struct efi_system_table systab; +extern const struct efi_simple_text_output_protocol efi_con_out; +extern const struct efi_simple_input_interface efi_con_in; +extern const struct efi_console_control_protocol efi_console_control; + +extern const efi_guid_t efi_guid_console_control; extern const efi_guid_t efi_guid_device_path; extern const efi_guid_t efi_guid_loaded_image; |