aboutsummaryrefslogtreecommitdiff
path: root/lib/efi_loader/efi_console.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-03-13 11:39:21 -0400
committerTom Rini <trini@konsulko.com>2023-03-13 11:39:21 -0400
commit218cf0e09672ac7c2f650ff0d9ab87669224bf50 (patch)
treef891991d65ce74cbf1b0c790e5cbf6a01b8f3576 /lib/efi_loader/efi_console.c
parent1247fc7de81d8106cdfa64ecf18aba47a6e587f3 (diff)
parentd3970e04e7125e37ea8c4f3f056b6f5ba868e5f7 (diff)
Merge tag 'efi-2023-04-rc4' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2023-04-rc4 Documentation: * man-page for panic command UEFI: * Correct parameter check for SetVariable() Other: * Provide unit test for crc8
Diffstat (limited to 'lib/efi_loader/efi_console.c')
-rw-r--r--lib/efi_loader/efi_console.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c
index 4317630907..a2d137d7a9 100644
--- a/lib/efi_loader/efi_console.c
+++ b/lib/efi_loader/efi_console.c
@@ -77,6 +77,14 @@ static struct simple_text_output_mode efi_con_mode = {
.cursor_visible = 1,
};
+/**
+ * term_get_char() - read a character from the console
+ *
+ * Wait for up to 100 ms to read a character from the console.
+ *
+ * @c: pointer to the buffer to receive the character
+ * Return: 0 on success, 1 otherwise
+ */
static int term_get_char(s32 *c)
{
u64 timeout;