From c1311ad4e0d1759788601513fac0f65620d40472 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Fri, 4 Mar 2016 01:10:00 +0100 Subject: 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 Reviewed-by: Simon Glass Tested-by: Simon Glass --- include/efi_loader.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/efi_loader.h') 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; -- cgit v1.2.1