Ui.h 2.0 KB

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