summaryrefslogtreecommitdiffstats
path: root/include/efi_loader.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2016-03-04 01:10:00 +0100
committerTom Rini <trini@konsulko.com>2016-03-15 18:03:09 -0400
commitc1311ad4e0d1759788601513fac0f65620d40472 (patch)
tree1f7b252b32bebf338b03eb626b68cb71f01ebe08 /include/efi_loader.h
parentbee91169f5b258bd8e61c3b902c07bf0e9b18c01 (diff)
downloadtalos-obmc-uboot-c1311ad4e0d1759788601513fac0f65620d40472.tar.gz
talos-obmc-uboot-c1311ad4e0d1759788601513fac0f65620d40472.zip
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/efi_loader.h')
-rw-r--r--include/efi_loader.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index adb3315cd8..d9e9d8fa7b 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;
OpenPOWER on IntegriCloud