]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Application/UiApp/Ui.h
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Application / UiApp / Ui.h
CommitLineData
143f0b1d
ED
1/** @file\r
2 FrontPage routines to handle the callbacks and browser calls\r
3\r
afc244a5 4Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>\r
9d510e61 5SPDX-License-Identifier: BSD-2-Clause-Patent\r
143f0b1d
ED
6\r
7**/\r
8\r
9\r
10#ifndef _BDS_MODULE_H_\r
11#define _BDS_MODULE_H_\r
12\r
143f0b1d
ED
13#include <IndustryStandard/SmBios.h>\r
14\r
15#include <Guid/MdeModuleHii.h>\r
143f0b1d 16#include <Guid/StatusCodeDataTypeId.h>\r
143f0b1d 17\r
143f0b1d 18#include <Protocol/Smbios.h>\r
143f0b1d 19#include <Protocol/HiiConfigAccess.h>\r
ce7690e2 20\r
143f0b1d
ED
21#include <Library/PrintLib.h>\r
22#include <Library/DebugLib.h>\r
23#include <Library/BaseMemoryLib.h>\r
24#include <Library/UefiBootServicesTableLib.h>\r
25#include <Library/UefiLib.h>\r
26#include <Library/MemoryAllocationLib.h>\r
143f0b1d
ED
27#include <Library/ReportStatusCodeLib.h>\r
28#include <Library/UefiRuntimeServicesTableLib.h>\r
143f0b1d
ED
29#include <Library/HiiLib.h>\r
30#include <Library/DevicePathLib.h>\r
143f0b1d 31#include <Library/UefiHiiServicesLib.h>\r
143f0b1d
ED
32#include <Library/UefiBootManagerLib.h>\r
33\r
34#pragma pack(1)\r
35\r
36///\r
37/// HII specific Vendor Device Path definition.\r
38///\r
39typedef struct {\r
40 VENDOR_DEVICE_PATH VendorDevicePath;\r
41 EFI_DEVICE_PATH_PROTOCOL End;\r
42} HII_VENDOR_DEVICE_PATH;\r
43\r
44#pragma pack()\r
45\r
46\r
47//\r
48//The interface functions related to the Setup Browser Reset Reminder feature\r
49//\r
143f0b1d 50\r
143f0b1d
ED
51\r
52/**\r
53 Record the info that a reset is required.\r
54 A module boolean variable is used to record whether a reset is required.\r
55\r
56**/\r
57VOID\r
58EFIAPI\r
59EnableResetRequired (\r
60 VOID\r
61 );\r
62\r
63\r
143f0b1d
ED
64\r
65/**\r
66 Check whether platform policy enables the reset reminder feature. The default is enabled.\r
67\r
68**/\r
69BOOLEAN\r
70EFIAPI\r
71IsResetReminderFeatureEnable (\r
72 VOID\r
73 );\r
74\r
75/**\r
76 Check if the user changed any option setting that needs a system reset to be effective.\r
77\r
78**/\r
79BOOLEAN\r
80EFIAPI\r
81IsResetRequired (\r
82 VOID\r
83 );\r
84\r
85/**\r
86 Check whether a reset is needed, and finish the reset reminder feature.\r
87 If a reset is needed, pop up a menu to notice user, and finish the feature\r
88 according to the user selection.\r
89\r
90**/\r
91VOID\r
92EFIAPI\r
93SetupResetReminder (\r
94 VOID\r
95 );\r
96\r
143f0b1d 97#endif\r