summaryrefslogtreecommitdiff
path: root/include/efi_api.h
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2017-07-24 14:39:01 (GMT)
committerAlexander Graf <agraf@suse.de>2017-07-25 08:58:07 (GMT)
commita17e62cc533b8eb59616fc21001be90685770a06 (patch)
treeec6f1a07cdbf41d201dd11118a07be009e220790 /include/efi_api.h
parent641833db4a3bc417e991e7d37ce7cb99657beee0 (diff)
downloadu-boot-fsl-qoriq-a17e62cc533b8eb59616fc21001be90685770a06.tar.xz
efi_loader: expose protocols via GUID
shim.efi (or rather gnu-efi's LibLocateProtocol() which shim.efi uses) resolves protocols via efi_locate_handle() so the console protocols need to be added to the efi object list. Signed-off-by: Rob Clark <robdclark@gmail.com> [agraf: whitespace fixes] Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/efi_api.h')
-rw-r--r--include/efi_api.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/efi_api.h b/include/efi_api.h
index 8f881d2..ec1b321 100644
--- a/include/efi_api.h
+++ b/include/efi_api.h
@@ -349,6 +349,11 @@ struct simple_text_output_mode {
bool cursor_visible;
};
+
+#define EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL_GUID \
+ EFI_GUID(0x387477c2, 0x69c7, 0x11d2, \
+ 0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b)
+
struct efi_simple_text_output_protocol {
void *reset;
efi_status_t (EFIAPI *output_string)(
@@ -383,6 +388,10 @@ struct efi_input_key {
s16 unicode_char;
};
+#define EFI_SIMPLE_TEXT_INPUT_PROTOCOL_GUID \
+ EFI_GUID(0x387477c1, 0x69c7, 0x11d2, \
+ 0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b)
+
struct efi_simple_input_interface {
efi_status_t(EFIAPI *reset)(struct efi_simple_input_interface *this,
bool ExtendedVerification);