aboutsummaryrefslogtreecommitdiffstats
path: root/UefiLessonsPkg/HIIFormDataElementsWithKeywords/Data.h
diff options
context:
space:
mode:
authorKonstantin Aladyshev <aladyshev22@gmail.com>2022-09-23 18:03:02 +0300
committerKonstantin Aladyshev <aladyshev22@gmail.com>2022-09-23 18:03:02 +0300
commit31f41214bdeebda26e39daf776be8cb646d66666 (patch)
tree9b683dc408ea26b29fc5cc5dff4c0dcf5c184bce /UefiLessonsPkg/HIIFormDataElementsWithKeywords/Data.h
parentcd5821d17e5988fcc214f34e71bf1c89ffc85e6d (diff)
downloadUEFI-Lessons-31f41214bdeebda26e39daf776be8cb646d66666.tar.gz
UEFI-Lessons-31f41214bdeebda26e39daf776be8cb646d66666.tar.bz2
UEFI-Lessons-31f41214bdeebda26e39daf776be8cb646d66666.zip
Add source code for UEFI Configuration language lessons
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Diffstat (limited to 'UefiLessonsPkg/HIIFormDataElementsWithKeywords/Data.h')
-rw-r--r--UefiLessonsPkg/HIIFormDataElementsWithKeywords/Data.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/UefiLessonsPkg/HIIFormDataElementsWithKeywords/Data.h b/UefiLessonsPkg/HIIFormDataElementsWithKeywords/Data.h
new file mode 100644
index 0000000..eb9f369
--- /dev/null
+++ b/UefiLessonsPkg/HIIFormDataElementsWithKeywords/Data.h
@@ -0,0 +1,25 @@
+#ifndef _DATA_H_
+#define _DATA_H_
+
+#define FORMSET_GUID {0x531bc507, 0x9191, 0x4fa2, {0x94, 0x46, 0xb8, 0x44, 0xe3, 0x5d, 0xd1, 0x2a}}
+#define DATAPATH_GUID {0xc299f575, 0xf1dd, 0x4d7d, {0xb7, 0xaa, 0xe5, 0x06, 0x4b, 0x3e, 0xcb, 0xd7}}
+#define STORAGE_GUID {0xd2ae39c7, 0xe8dd, 0x4ab8, {0xad, 0x83, 0x7a, 0x57, 0xfe, 0x0e, 0x7e, 0xa8}}
+
+#define UEFI_VARIABLE_STRUCTURE_NAME L"FormData"
+
+#pragma pack(1)
+typedef struct {
+ UINT8 CheckboxValue;
+ UINT16 NumericValue;
+ CHAR16 StringValue[11];
+ EFI_HII_DATE DateValue;
+ EFI_HII_TIME TimeValue;
+ UINT8 OneOfValue;
+ UINT8 OrderedListValue[3];
+} UEFI_VARIABLE_STRUCTURE;
+#pragma pack()
+
+#define LABEL_START 0x1111
+#define LABEL_END 0x2222
+
+#endif