LegacyBootMaintUiVfr.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /** @file
  2. Legacy Boot Maintenance UI definition.
  3. Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _EFI_LEGACY_BOOT_OPTION_VFR_H_
  7. #define _EFI_LEGACY_BOOT_OPTION_VFR_H_
  8. #include <Guid/HiiBootMaintenanceFormset.h>
  9. #define MAX_MENU_NUMBER 100
  10. #define LEGACY_BOOT_OPTION_FORMSET_GUID { 0x6bc75598, 0x89b4, 0x483d, { 0x91, 0x60, 0x7f, 0x46, 0x9a, 0x96, 0x35, 0x31 } }
  11. #define VARSTORE_ID_LEGACY_BOOT 0x0001
  12. #define LEGACY_BOOT_FORM_ID 0x1000
  13. #define LEGACY_ORDER_CHANGE_FORM_ID 0x1001
  14. #define FORM_FLOPPY_BOOT_ID 0x2000
  15. #define FORM_HARDDISK_BOOT_ID 0x2001
  16. #define FORM_CDROM_BOOT_ID 0x2002
  17. #define FORM_NET_BOOT_ID 0x2003
  18. #define FORM_BEV_BOOT_ID 0x2004
  19. #define FORM_BOOT_LEGACY_DEVICE_ID 0x9000
  20. #define FORM_BOOT_LEGACY_LABEL_END 0x9001
  21. #pragma pack(1)
  22. ///
  23. /// This is the structure that will be used to store the
  24. /// question's current value. Use it at initialize time to
  25. /// set default value for each question. When using at run
  26. /// time, this map is returned by the callback function,
  27. /// so dynamically changing the question's value will be
  28. /// possible through this mechanism
  29. ///
  30. typedef struct {
  31. //
  32. // Legacy Device Order Selection Storage
  33. //
  34. UINT16 LegacyFD[MAX_MENU_NUMBER];
  35. UINT16 LegacyHD[MAX_MENU_NUMBER];
  36. UINT16 LegacyCD[MAX_MENU_NUMBER];
  37. UINT16 LegacyNET[MAX_MENU_NUMBER];
  38. UINT16 LegacyBEV[MAX_MENU_NUMBER];
  39. } LEGACY_BOOT_NV_DATA;
  40. ///
  41. /// This is the structure that will be used to store the
  42. /// question's current value. Use it at initialize time to
  43. /// set default value for each question. When using at run
  44. /// time, this map is returned by the callback function,
  45. /// so dynamically changing the question's value will be
  46. /// possible through this mechanism
  47. ///
  48. typedef struct {
  49. //
  50. // Legacy Device Order Selection Storage
  51. //
  52. LEGACY_BOOT_NV_DATA InitialNvData;
  53. LEGACY_BOOT_NV_DATA CurrentNvData;
  54. LEGACY_BOOT_NV_DATA LastTimeNvData;
  55. UINT8 DisableMap[32];
  56. } LEGACY_BOOT_MAINTAIN_DATA;
  57. #pragma pack()
  58. #endif