summaryrefslogtreecommitdiff
path: root/include/efi_loader.h
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2017-09-13 18:05:30 -0400
committerAlexander Graf <agraf@suse.de>2017-09-20 10:32:54 +0200
commitadae4313cdd891e5ab76c407134b69bd825220e4 (patch)
tree55b58b55cf7d6117eceb04f10a448a28f468bd4d /include/efi_loader.h
parent9309a1b76ce4f18fe1d9fe48f2b1356ebc58b62f (diff)
efi_loader: flesh out device-path to text
It needs to handle more device-path node types, and also multiple levels of path hierarchy. To simplify this, initially construct utf8 string to a temporary buffer, and then allocate the real utf16 buffer that is returned. This should be mostly for debugging or at least not critical- path so an extra copy won't hurt, and is saner than the alternative. Signed-off-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r--include/efi_loader.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 29701af319..784257bc1f 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -80,6 +80,8 @@ extern struct efi_simple_input_interface efi_con_in;
extern const struct efi_console_control_protocol efi_console_control;
extern const struct efi_device_path_to_text_protocol efi_device_path_to_text;
+uint16_t *efi_dp_str(struct efi_device_path *dp);
+
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;