]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiVfr.h
OvmfPkg: Copy the required CSM components from framework packages
[mirror_edk2.git] / OvmfPkg / Csm / LegacyBootMaintUiLib / LegacyBootMaintUiVfr.h
diff --git a/OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiVfr.h b/OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiVfr.h
new file mode 100644 (file)
index 0000000..e16fc39
--- /dev/null
@@ -0,0 +1,79 @@
+/** @file\r
+  Legacy Boot Maintainence UI definition.\r
+\r
+Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+**/\r
+\r
+\r
+#ifndef _EFI_LEGACY_BOOT_OPTION_VFR_H_\r
+#define _EFI_LEGACY_BOOT_OPTION_VFR_H_\r
+\r
+#include <Guid/HiiBootMaintenanceFormset.h>\r
+\r
+#define MAX_MENU_NUMBER 100\r
+\r
+#define LEGACY_BOOT_OPTION_FORMSET_GUID  { 0x6bc75598, 0x89b4, 0x483d, { 0x91, 0x60, 0x7f, 0x46, 0x9a, 0x96, 0x35, 0x31 } }\r
+\r
+#define VARSTORE_ID_LEGACY_BOOT      0x0001\r
+\r
+\r
+#define LEGACY_BOOT_FORM_ID          0x1000\r
+#define LEGACY_ORDER_CHANGE_FORM_ID  0x1001\r
+\r
+\r
+#define FORM_FLOPPY_BOOT_ID          0x2000\r
+#define FORM_HARDDISK_BOOT_ID        0x2001\r
+#define FORM_CDROM_BOOT_ID           0x2002\r
+#define FORM_NET_BOOT_ID             0x2003\r
+#define FORM_BEV_BOOT_ID             0x2004\r
+\r
+\r
+\r
+#define FORM_BOOT_LEGACY_DEVICE_ID   0x9000\r
+#define FORM_BOOT_LEGACY_LABEL_END   0x9001\r
+\r
+\r
+#pragma pack(1)\r
+\r
+///\r
+/// This is the structure that will be used to store the\r
+/// question's current value. Use it at initialize time to\r
+/// set default value for each question. When using at run\r
+/// time, this map is returned by the callback function,\r
+/// so dynamically changing the question's value will be\r
+/// possible through this mechanism\r
+///\r
+typedef struct {\r
+  //\r
+  // Legacy Device Order Selection Storage\r
+  //\r
+  UINT16   LegacyFD[MAX_MENU_NUMBER];\r
+  UINT16   LegacyHD[MAX_MENU_NUMBER];\r
+  UINT16   LegacyCD[MAX_MENU_NUMBER];\r
+  UINT16   LegacyNET[MAX_MENU_NUMBER];\r
+  UINT16   LegacyBEV[MAX_MENU_NUMBER];\r
+} LEGACY_BOOT_NV_DATA;\r
+\r
+///\r
+/// This is the structure that will be used to store the\r
+/// question's current value. Use it at initialize time to\r
+/// set default value for each question. When using at run\r
+/// time, this map is returned by the callback function,\r
+/// so dynamically changing the question's value will be\r
+/// possible through this mechanism\r
+///\r
+typedef struct {\r
+  //\r
+  // Legacy Device Order Selection Storage\r
+  //\r
+  LEGACY_BOOT_NV_DATA   InitialNvData;\r
+  LEGACY_BOOT_NV_DATA   CurrentNvData;\r
+  LEGACY_BOOT_NV_DATA   LastTimeNvData;\r
+  UINT8                 DisableMap[32];\r
+} LEGACY_BOOT_MAINTAIN_DATA;\r
+\r
+#pragma pack()\r
+\r
+#endif\r