]>
Commit | Line | Data |
---|---|---|
143f0b1d ED |
1 | /** @file\r |
2 | FrontPage routines to handle the callbacks and browser calls\r | |
3 | \r | |
afc244a5 | 4 | Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>\r |
143f0b1d ED |
5 | This program and the accompanying materials\r |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT 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 | |
45 | typedef 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 | |
56 | /**\r | |
57 | Enable the setup browser reset reminder feature.\r | |
58 | This routine is used in a platform tip. If the platform policy needs the feature, use the routine to enable it.\r | |
59 | \r | |
60 | **/\r | |
61 | VOID\r | |
62 | EFIAPI\r | |
63 | EnableResetReminderFeature (\r | |
64 | VOID\r | |
65 | );\r | |
66 | \r | |
67 | /**\r | |
68 | Disable the setup browser reset reminder feature.\r | |
69 | This routine is used in a platform tip. If the platform policy does not want the feature, use the routine to disable it.\r | |
70 | \r | |
71 | **/\r | |
72 | VOID\r | |
73 | EFIAPI\r | |
74 | DisableResetReminderFeature (\r | |
75 | VOID\r | |
76 | );\r | |
77 | \r | |
78 | /**\r | |
79 | Record the info that a reset is required.\r | |
80 | A module boolean variable is used to record whether a reset is required.\r | |
81 | \r | |
82 | **/\r | |
83 | VOID\r | |
84 | EFIAPI\r | |
85 | EnableResetRequired (\r | |
86 | VOID\r | |
87 | );\r | |
88 | \r | |
89 | \r | |
90 | /**\r | |
91 | Record the info that no reset is required.\r | |
92 | A module boolean variable is used to record whether a reset is required.\r | |
93 | \r | |
94 | **/\r | |
95 | VOID\r | |
96 | EFIAPI\r | |
97 | DisableResetRequired (\r | |
98 | VOID\r | |
99 | );\r | |
100 | \r | |
101 | /**\r | |
102 | Check whether platform policy enables the reset reminder feature. The default is enabled.\r | |
103 | \r | |
104 | **/\r | |
105 | BOOLEAN\r | |
106 | EFIAPI\r | |
107 | IsResetReminderFeatureEnable (\r | |
108 | VOID\r | |
109 | );\r | |
110 | \r | |
111 | /**\r | |
112 | Check if the user changed any option setting that needs a system reset to be effective.\r | |
113 | \r | |
114 | **/\r | |
115 | BOOLEAN\r | |
116 | EFIAPI\r | |
117 | IsResetRequired (\r | |
118 | VOID\r | |
119 | );\r | |
120 | \r | |
121 | /**\r | |
122 | Check whether a reset is needed, and finish the reset reminder feature.\r | |
123 | If a reset is needed, pop up a menu to notice user, and finish the feature\r | |
124 | according to the user selection.\r | |
125 | \r | |
126 | **/\r | |
127 | VOID\r | |
128 | EFIAPI\r | |
129 | SetupResetReminder (\r | |
130 | VOID\r | |
131 | );\r | |
132 | \r | |
143f0b1d | 133 | #endif\r |