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