VarStore.fdf.inc 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. ## @file
  2. # FDF include file with Layout Regions that define an empty variable store.
  3. #
  4. # Copyright (C) 2014, Red Hat, Inc.
  5. # Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
  6. #
  7. # SPDX-License-Identifier: BSD-2-Clause-Patent
  8. #
  9. ##
  10. !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
  11. 0x00000000|0x0000e000
  12. !endif
  13. !if $(FD_SIZE_IN_KB) == 4096
  14. 0x00000000|0x00040000
  15. !endif
  16. #NV_VARIABLE_STORE
  17. DATA = {
  18. ## This is the EFI_FIRMWARE_VOLUME_HEADER
  19. # ZeroVector []
  20. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  21. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  22. # FileSystemGuid: gEfiSystemNvDataFvGuid =
  23. # { 0xFFF12B8D, 0x7696, 0x4C8B,
  24. # { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}
  25. 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,
  26. 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,
  27. !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
  28. # FvLength: 0x20000
  29. 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
  30. !endif
  31. !if $(FD_SIZE_IN_KB) == 4096
  32. # FvLength: 0x84000
  33. 0x00, 0x40, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
  34. !endif
  35. # Signature "_FVH" # Attributes
  36. 0x5f, 0x46, 0x56, 0x48, 0xff, 0xfe, 0x04, 0x00,
  37. # HeaderLength
  38. 0x48, 0x00,
  39. !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
  40. # CheckSum
  41. 0x19, 0xF9,
  42. !endif
  43. !if $(FD_SIZE_IN_KB) == 4096
  44. # CheckSum
  45. 0xAF, 0xB8,
  46. !endif
  47. # ExtHeaderOffset #Reserved #Revision
  48. 0x00, 0x00, 0x00, 0x02,
  49. !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
  50. # Blockmap[0]: 0x20 Blocks * 0x1000 Bytes / Block
  51. 0x20, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00,
  52. !endif
  53. !if $(FD_SIZE_IN_KB) == 4096
  54. # Blockmap[0]: 0x84 Blocks * 0x1000 Bytes / Block
  55. 0x84, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00,
  56. !endif
  57. # Blockmap[1]: End
  58. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  59. ## This is the VARIABLE_STORE_HEADER
  60. # It is compatible with SECURE_BOOT_ENABLE == FALSE as well.
  61. # Signature: gEfiAuthenticatedVariableGuid =
  62. # { 0xaaf32c78, 0x947b, 0x439a,
  63. # { 0xa1, 0x80, 0x2e, 0x14, 0x4e, 0xc3, 0x77, 0x92 }}
  64. 0x78, 0x2c, 0xf3, 0xaa, 0x7b, 0x94, 0x9a, 0x43,
  65. 0xa1, 0x80, 0x2e, 0x14, 0x4e, 0xc3, 0x77, 0x92,
  66. !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
  67. # Size: 0xe000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) -
  68. # 0x48 (size of EFI_FIRMWARE_VOLUME_HEADER) = 0xdfb8
  69. # This can speed up the Variable Dispatch a bit.
  70. 0xB8, 0xDF, 0x00, 0x00,
  71. !endif
  72. !if $(FD_SIZE_IN_KB) == 4096
  73. # Size: 0x40000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) -
  74. # 0x48 (size of EFI_FIRMWARE_VOLUME_HEADER) = 0x3ffb8
  75. # This can speed up the Variable Dispatch a bit.
  76. 0xB8, 0xFF, 0x03, 0x00,
  77. !endif
  78. # FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32
  79. 0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  80. }
  81. !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
  82. 0x0000e000|0x00001000
  83. !endif
  84. !if $(FD_SIZE_IN_KB) == 4096
  85. 0x00040000|0x00001000
  86. !endif
  87. #NV_EVENT_LOG
  88. !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
  89. 0x0000f000|0x00001000
  90. !endif
  91. !if $(FD_SIZE_IN_KB) == 4096
  92. 0x00041000|0x00001000
  93. !endif
  94. #NV_FTW_WORKING
  95. DATA = {
  96. # EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER->Signature = gEdkiiWorkingBlockSignatureGuid =
  97. # { 0x9e58292b, 0x7c68, 0x497d, { 0xa0, 0xce, 0x65, 0x0, 0xfd, 0x9f, 0x1b, 0x95 }}
  98. 0x2b, 0x29, 0x58, 0x9e, 0x68, 0x7c, 0x7d, 0x49,
  99. 0xa0, 0xce, 0x65, 0x0, 0xfd, 0x9f, 0x1b, 0x95,
  100. # Crc:UINT32 #WorkingBlockValid:1, WorkingBlockInvalid:1, Reserved
  101. 0x2c, 0xaf, 0x2c, 0x64, 0xFE, 0xFF, 0xFF, 0xFF,
  102. # WriteQueueSize: UINT64
  103. 0xE0, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  104. }
  105. !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
  106. 0x00010000|0x00010000
  107. !endif
  108. !if $(FD_SIZE_IN_KB) == 4096
  109. 0x00042000|0x00042000
  110. !endif
  111. #NV_FTW_SPARE