]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Application/UiApp/Ui.h
IntelSiliconPkg: 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
143f0b1d
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 _BDS_MODULE_H_\r
17#define _BDS_MODULE_H_\r
18\r
143f0b1d
ED
19#include <IndustryStandard/SmBios.h>\r
20\r
21#include <Guid/MdeModuleHii.h>\r
143f0b1d 22#include <Guid/StatusCodeDataTypeId.h>\r
143f0b1d 23\r
143f0b1d 24#include <Protocol/Smbios.h>\r
143f0b1d 25#include <Protocol/HiiConfigAccess.h>\r
ce7690e2 26\r
143f0b1d
ED
27#include <Library/PrintLib.h>\r
28#include <Library/DebugLib.h>\r
29#include <Library/BaseMemoryLib.h>\r
30#include <Library/UefiBootServicesTableLib.h>\r
31#include <Library/UefiLib.h>\r
32#include <Library/MemoryAllocationLib.h>\r
143f0b1d
ED
33#include <Library/ReportStatusCodeLib.h>\r
34#include <Library/UefiRuntimeServicesTableLib.h>\r
143f0b1d
ED
35#include <Library/HiiLib.h>\r
36#include <Library/DevicePathLib.h>\r
143f0b1d 37#include <Library/UefiHiiServicesLib.h>\r
143f0b1d
ED
38#include <Library/UefiBootManagerLib.h>\r
39\r
40#pragma pack(1)\r
41\r
42///\r
43/// HII specific Vendor Device Path definition.\r
44///\r
45typedef struct {\r
46 VENDOR_DEVICE_PATH VendorDevicePath;\r
47 EFI_DEVICE_PATH_PROTOCOL End;\r
48} HII_VENDOR_DEVICE_PATH;\r
49\r
50#pragma pack()\r
51\r
52\r
53//\r
54//The interface functions related to the Setup Browser Reset Reminder feature\r
55//\r
143f0b1d 56\r
143f0b1d
ED
57\r
58/**\r
59 Record the info that a reset is required.\r
60 A module boolean variable is used to record whether a reset is required.\r
61\r
62**/\r
63VOID\r
64EFIAPI\r
65EnableResetRequired (\r
66 VOID\r
67 );\r
68\r
69\r
143f0b1d
ED
70\r
71/**\r
72 Check whether platform policy enables the reset reminder feature. The default is enabled.\r
73\r
74**/\r
75BOOLEAN\r
76EFIAPI\r
77IsResetReminderFeatureEnable (\r
78 VOID\r
79 );\r
80\r
81/**\r
82 Check if the user changed any option setting that needs a system reset to be effective.\r
83\r
84**/\r
85BOOLEAN\r
86EFIAPI\r
87IsResetRequired (\r
88 VOID\r
89 );\r
90\r
91/**\r
92 Check whether a reset is needed, and finish the reset reminder feature.\r
93 If a reset is needed, pop up a menu to notice user, and finish the feature\r
94 according to the user selection.\r
95\r
96**/\r
97VOID\r
98EFIAPI\r
99SetupResetReminder (\r
100 VOID\r
101 );\r
102\r
143f0b1d 103#endif\r