]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiVfr.h
OvmfPkg: Copy the required CSM components from framework packages
[mirror_edk2.git] / OvmfPkg / Csm / LegacyBootMaintUiLib / LegacyBootMaintUiVfr.h
CommitLineData
b522c77b
HW
1/** @file\r
2 Legacy Boot Maintainence UI definition.\r
3\r
4Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
5SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
7**/\r
8\r
9\r
10#ifndef _EFI_LEGACY_BOOT_OPTION_VFR_H_\r
11#define _EFI_LEGACY_BOOT_OPTION_VFR_H_\r
12\r
13#include <Guid/HiiBootMaintenanceFormset.h>\r
14\r
15#define MAX_MENU_NUMBER 100\r
16\r
17#define LEGACY_BOOT_OPTION_FORMSET_GUID { 0x6bc75598, 0x89b4, 0x483d, { 0x91, 0x60, 0x7f, 0x46, 0x9a, 0x96, 0x35, 0x31 } }\r
18\r
19#define VARSTORE_ID_LEGACY_BOOT 0x0001\r
20\r
21\r
22#define LEGACY_BOOT_FORM_ID 0x1000\r
23#define LEGACY_ORDER_CHANGE_FORM_ID 0x1001\r
24\r
25\r
26#define FORM_FLOPPY_BOOT_ID 0x2000\r
27#define FORM_HARDDISK_BOOT_ID 0x2001\r
28#define FORM_CDROM_BOOT_ID 0x2002\r
29#define FORM_NET_BOOT_ID 0x2003\r
30#define FORM_BEV_BOOT_ID 0x2004\r
31\r
32\r
33\r
34#define FORM_BOOT_LEGACY_DEVICE_ID 0x9000\r
35#define FORM_BOOT_LEGACY_LABEL_END 0x9001\r
36\r
37\r
38#pragma pack(1)\r
39\r
40///\r
41/// This is the structure that will be used to store the\r
42/// question's current value. Use it at initialize time to\r
43/// set default value for each question. When using at run\r
44/// time, this map is returned by the callback function,\r
45/// so dynamically changing the question's value will be\r
46/// possible through this mechanism\r
47///\r
48typedef struct {\r
49 //\r
50 // Legacy Device Order Selection Storage\r
51 //\r
52 UINT16 LegacyFD[MAX_MENU_NUMBER];\r
53 UINT16 LegacyHD[MAX_MENU_NUMBER];\r
54 UINT16 LegacyCD[MAX_MENU_NUMBER];\r
55 UINT16 LegacyNET[MAX_MENU_NUMBER];\r
56 UINT16 LegacyBEV[MAX_MENU_NUMBER];\r
57} LEGACY_BOOT_NV_DATA;\r
58\r
59///\r
60/// This is the structure that will be used to store the\r
61/// question's current value. Use it at initialize time to\r
62/// set default value for each question. When using at run\r
63/// time, this map is returned by the callback function,\r
64/// so dynamically changing the question's value will be\r
65/// possible through this mechanism\r
66///\r
67typedef struct {\r
68 //\r
69 // Legacy Device Order Selection Storage\r
70 //\r
71 LEGACY_BOOT_NV_DATA InitialNvData;\r
72 LEGACY_BOOT_NV_DATA CurrentNvData;\r
73 LEGACY_BOOT_NV_DATA LastTimeNvData;\r
74 UINT8 DisableMap[32];\r
75} LEGACY_BOOT_MAINTAIN_DATA;\r
76\r
77#pragma pack()\r
78\r
79#endif\r