]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: typedef efi_string_t text output protocol
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 5 Jan 2021 06:50:09 +0000 (07:50 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 13 Jan 2021 01:38:01 +0000 (02:38 +0100)
We do not want to use typedefs in U-Boot.

Do not use efi_string_t in the EFI_TEXT_OUTPUT_PROTOCOL.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/efi_api.h
lib/efi_loader/efi_console.c

index c635abe9a94fc5c4adad1e3bff67e345a6b6cb37..df9bee2ae43833ba26905a3c5b805dbd308c785a 100644 (file)
@@ -701,10 +701,10 @@ struct efi_simple_text_output_protocol {
                        char extended_verification);
        efi_status_t (EFIAPI *output_string)(
                        struct efi_simple_text_output_protocol *this,
-                       const efi_string_t str);
+                       const u16 *str);
        efi_status_t (EFIAPI *test_string)(
                        struct efi_simple_text_output_protocol *this,
-                       const efi_string_t str);
+                       const u16 *str);
        efi_status_t(EFIAPI *query_mode)(
                        struct efi_simple_text_output_protocol *this,
                        unsigned long mode_number, unsigned long *columns,
index 705109596eb214d5e8a807b6b39da38de6a76d69..edcfce7becbc5ee25c0d0ecddba0a361ed3703c9 100644 (file)
@@ -141,12 +141,12 @@ static int term_read_reply(int *n, int num, char end_char)
  */
 static efi_status_t EFIAPI efi_cout_output_string(
                        struct efi_simple_text_output_protocol *this,
-                       const efi_string_t string)
+                       const u16 *string)
 {
        struct simple_text_output_mode *con = &efi_con_mode;
        struct cout_mode *mode = &efi_cout_modes[con->mode];
        char *buf, *pos;
-       u16 *p;
+       const u16 *p;
        efi_status_t ret = EFI_SUCCESS;
 
        EFI_ENTRY("%p, %p", this, string);
@@ -230,7 +230,7 @@ out:
  */
 static efi_status_t EFIAPI efi_cout_test_string(
                        struct efi_simple_text_output_protocol *this,
-                       const efi_string_t string)
+                       const u16 *string)
 {
        EFI_ENTRY("%p, %p", this, string);
        return EFI_EXIT(EFI_SUCCESS);