summaryrefslogtreecommitdiff
path: root/gnu-efi/inc/efiui.h
diff options
context:
space:
mode:
authorSteve McIntyre <steve@einval.com>2021-03-23 23:49:46 +0000
committerSteve McIntyre <steve@einval.com>2021-03-23 23:49:46 +0000
commit1251a7ba86fc40a6aad8b4fecdbca2b61808d9fa (patch)
tree2125fda549aaca55cb49a48d54be77dec7fbf3df /gnu-efi/inc/efiui.h
parent85b409232ce89b34626df9d72abedf5d4f5ccef6 (diff)
parent031e5cce385d3f96b1caa1d53495332a7eb03749 (diff)
downloadefi-boot-shim-debian/15.3-1.tar.gz
efi-boot-shim-debian/15.3-1.zip
Update upstream source from tag 'upstream/15.3'debian/15.3-1
Update to upstream version '15.3' with Debian dir 1b484f1c1ac270604a5a1451b34de4b0865c6211
Diffstat (limited to 'gnu-efi/inc/efiui.h')
-rw-r--r--gnu-efi/inc/efiui.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/gnu-efi/inc/efiui.h b/gnu-efi/inc/efiui.h
new file mode 100644
index 00000000..37569361
--- /dev/null
+++ b/gnu-efi/inc/efiui.h
@@ -0,0 +1,58 @@
+#ifndef _EFI_UI_H
+#define _EFI_UI_H
+
+/*++
+
+Copyright (c) 200 Intel Corporation
+
+Module Name:
+
+ EfiUi.h
+
+Abstract:
+ Protocol used to build User Interface (UI) stuff.
+
+ This protocol is just data. It is a multi dimentional array.
+ For each string there is an array of UI_STRING_ENTRY. Each string
+ is for a different language translation of the same string. The list
+ is terminated by a NULL UiString. There can be any number of
+ UI_STRING_ENTRY arrays. A NULL array terminates the list. A NULL array
+ entry contains all zeros.
+
+ Thus the shortest possible EFI_UI_PROTOCOL has three UI_STRING_ENTRY.
+ The String, it's NULL terminator, and the NULL terminator for the entire
+ thing.
+
+
+Revision History
+
+--*/
+
+#define EFI_UI_INTERFACE_PROTOCOL_GUID \
+ { 0x32dd7981, 0x2d27, 0x11d4, {0xbc, 0x8b, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81} }
+#define EFI_UI_PROTOCOL EFI_UI_INTERFACE_PROTOCOL_GUID
+
+
+typedef enum {
+ UiDeviceString,
+ UiVendorString,
+ UiMaxString
+} UI_STRING_TYPE;
+
+typedef struct {
+ ISO_639_2 *LangCode;
+ CHAR16 *UiString;
+} UI_STRING_ENTRY;
+
+#define EFI_UI_INTERFACE_PROTOCOL_VERSION 0x00010000
+#define EFI_UI_VERSION EFI_UI_INTERFACE_PROTOCOL_VERSION
+
+typedef struct _EFI_UI_INTERFACE_PROTOCOL {
+ UINT32 Version;
+ UI_STRING_ENTRY *Entry;
+} EFI_UI_INTERFACE_PROTOCOL;
+
+typedef struct _EFI_UI_INTERFACE_PROTOCOL _UI_INTERFACE;
+typedef EFI_UI_INTERFACE_PROTOCOL UI_INTERFACE;
+
+#endif