projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-sh
[platform/kernel/u-boot.git]
/
include
/
efi_selftest.h
diff --git
a/include/efi_selftest.h
b/include/efi_selftest.h
index
08dd8e4
..
eaee188
100644
(file)
--- a/
include/efi_selftest.h
+++ b/
include/efi_selftest.h
@@
-1,9
+1,8
@@
+/* SPDX-License-Identifier: GPL-2.0+ */
/*
* EFI application loader
*
* Copyright (c) 2017 Heinrich Schuchardt <xypron.glpk@gmx.de>
/*
* EFI application loader
*
* Copyright (c) 2017 Heinrich Schuchardt <xypron.glpk@gmx.de>
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#ifndef _EFI_SELFTEST_H
*/
#ifndef _EFI_SELFTEST_H
@@
-17,7
+16,7
@@
#define EFI_ST_SUCCESS 0
#define EFI_ST_FAILURE 1
#define EFI_ST_SUCCESS 0
#define EFI_ST_FAILURE 1
-
+#define EFI_ST_SUCCESS_STR L"SUCCESS"
/*
* Prints a message.
*/
/*
* Prints a message.
*/
@@
-54,7
+53,7
@@
enum efi_test_phase {
};
extern struct efi_simple_text_output_protocol *con_out;
};
extern struct efi_simple_text_output_protocol *con_out;
-extern struct efi_simple_
input_interface
*con_in;
+extern struct efi_simple_
text_input_protocol
*con_in;
/*
* Exit the boot services.
/*
* Exit the boot services.
@@
-77,16
+76,21
@@
void efi_st_exit_boot_services(void);
void efi_st_printc(int color, const char *fmt, ...)
__attribute__ ((format (__printf__, 2, 3)));
void efi_st_printc(int color, const char *fmt, ...)
__attribute__ ((format (__printf__, 2, 3)));
-/*
- * Compare memory.
- * We cannot use lib/string.c due to different CFLAGS values.
+/**
+ * efi_st_translate_char() - translate a unicode character to a string
*
*
- * @buf1: first buffer
- * @buf2: second buffer
- * @length: number of bytes to compare
- * @return: 0 if both buffers contain the same bytes
+ * @code: unicode character
+ * Return: string
+ */
+u16 *efi_st_translate_char(u16 code);
+
+/**
+ * efi_st_translate_code() - translate a scan code to a human readable string
+ *
+ * @code: unicode character
+ * Return: string
*/
*/
-
int efi_st_memcmp(const void *buf1, const void *buf2, size_t length
);
+
u16 *efi_st_translate_code(u16 code
);
/*
* Compare an u16 string to a char string.
/*
* Compare an u16 string to a char string.