]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Library/LegacyBootMaintUiLib/LegacyBootMaintUiVfr.h
LegacyBootMaintUi: Update copyright info, cover old code existed in old BdsDxe driver.
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / LegacyBootMaintUiLib / LegacyBootMaintUiVfr.h
CommitLineData
5a673ab2
ED
1/** @file\r
2 Legacy Boot Maintainence UI definition.\r
3\r
67b55c92 4Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
5a673ab2
ED
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15\r
16#ifndef _EFI_LEGACY_BOOT_OPTION_VFR_H_\r
17#define _EFI_LEGACY_BOOT_OPTION_VFR_H_\r
18\r
19#include <Guid/HiiBootMaintenanceFormset.h>\r
20\r
21#define MAX_MENU_NUMBER 100\r
22\r
e5632f3d 23#define LEGACY_BOOT_OPTION_FORMSET_GUID { 0x6bc75598, 0x89b4, 0x483d, { 0x91, 0x60, 0x7f, 0x46, 0x9a, 0x96, 0x35, 0x31 } }\r
5a673ab2
ED
24\r
25#define VARSTORE_ID_LEGACY_BOOT 0x0001\r
26\r
27\r
28#define LEGACY_BOOT_FORM_ID 0x1000\r
29#define LEGACY_ORDER_CHANGE_FORM_ID 0x1001\r
30\r
31\r
32#define FORM_FLOPPY_BOOT_ID 0x2000\r
33#define FORM_HARDDISK_BOOT_ID 0x2001\r
34#define FORM_CDROM_BOOT_ID 0x2002\r
35#define FORM_NET_BOOT_ID 0x2003\r
36#define FORM_BEV_BOOT_ID 0x2004\r
37\r
38\r
39\r
40#define FORM_BOOT_LEGACY_DEVICE_ID 0x9000\r
41#define FORM_BOOT_LEGACY_LABEL_END 0x9001\r
42\r
43\r
44#pragma pack(1)\r
45\r
46///\r
47/// This is the structure that will be used to store the\r
48/// question's current value. Use it at initialize time to\r
49/// set default value for each question. When using at run\r
50/// time, this map is returned by the callback function,\r
51/// so dynamically changing the question's value will be\r
52/// possible through this mechanism\r
53///\r
54typedef struct {\r
55 //\r
56 // Legacy Device Order Selection Storage\r
57 //\r
58 UINT16 LegacyFD[MAX_MENU_NUMBER];\r
59 UINT16 LegacyHD[MAX_MENU_NUMBER];\r
60 UINT16 LegacyCD[MAX_MENU_NUMBER];\r
61 UINT16 LegacyNET[MAX_MENU_NUMBER];\r
62 UINT16 LegacyBEV[MAX_MENU_NUMBER];\r
63} LEGACY_BOOT_NV_DATA;\r
64\r
65///\r
66/// This is the structure that will be used to store the\r
67/// question's current value. Use it at initialize time to\r
68/// set default value for each question. When using at run\r
69/// time, this map is returned by the callback function,\r
70/// so dynamically changing the question's value will be\r
71/// possible through this mechanism\r
72///\r
73typedef struct {\r
74 //\r
75 // Legacy Device Order Selection Storage\r
76 //\r
77 LEGACY_BOOT_NV_DATA InitialNvData;\r
78 LEGACY_BOOT_NV_DATA CurrentNvData;\r
79 LEGACY_BOOT_NV_DATA LastTimeNvData;\r
80 UINT8 DisableMap[32];\r
81} LEGACY_BOOT_MAINTAIN_DATA;\r
82\r
83#pragma pack()\r
84\r
85#endif\r