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