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