X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fefi_selftest.h;h=eaee188de7ef60db32784f3f3d7a9fbe26fac95d;hb=0e78c9181c6460d10255bfb6dc6d1f2d6912717e;hp=59b3c080bde60f9930f7675e07ceeec9b495fdc7;hpb=3e603ec757bee9ce84c7bbc861c7b0fe2f4d9bef;p=oweals%2Fu-boot.git diff --git a/include/efi_selftest.h b/include/efi_selftest.h index 59b3c080bd..eaee188de7 100644 --- a/include/efi_selftest.h +++ b/include/efi_selftest.h @@ -16,7 +16,7 @@ #define EFI_ST_SUCCESS 0 #define EFI_ST_FAILURE 1 - +#define EFI_ST_SUCCESS_STR L"SUCCESS" /* * Prints a message. */ @@ -76,16 +76,21 @@ void efi_st_exit_boot_services(void); 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. @@ -113,7 +118,6 @@ u16 efi_st_get_key(void); * @setup: set up the unit test * @teardown: tear down the unit test * @execute: execute the unit test - * @setup_ok: setup was successful (set at runtime) * @on_request: test is only executed on request */ struct efi_unit_test { @@ -123,7 +127,6 @@ struct efi_unit_test { const struct efi_system_table *systable); int (*execute)(void); int (*teardown)(void); - int setup_ok; bool on_request; };