CloudHvDefines.fdf.inc 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ## @file
  2. # FDF include file that defines the main macros and sets the dependent PCDs.
  3. #
  4. # Copyright (C) 2014, Red Hat, Inc.
  5. # Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
  6. #
  7. # SPDX-License-Identifier: BSD-2-Clause-Patent
  8. #
  9. ##
  10. DEFINE BLOCK_SIZE = 0x1000
  11. DEFINE VARS_OFFSET = 0
  12. DEFINE VARS_SIZE = 0x84000
  13. DEFINE VARS_BLOCKS = 0x84
  14. DEFINE VARS_LIVE_SIZE = 0x40000
  15. DEFINE VARS_SPARE_SIZE = 0x42000
  16. DEFINE FW_BASE_ADDRESS = 0x004FFFD0
  17. DEFINE FW_SIZE = 0x00400000
  18. DEFINE FW_BLOCKS = 0x400
  19. DEFINE CODE_BASE_ADDRESS = 0x00583FD0
  20. DEFINE CODE_SIZE = 0x0037C000
  21. DEFINE CODE_BLOCKS = 0x37C
  22. DEFINE FVMAIN_SIZE = 0x00348000
  23. DEFINE SECFV_OFFSET = 0x003CC000
  24. DEFINE SECFV_SIZE = 0x34000
  25. SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFdBaseAddress = $(FW_BASE_ADDRESS)
  26. SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFirmwareFdSize = $(FW_SIZE)
  27. SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFirmwareBlockSize = $(BLOCK_SIZE)
  28. SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageVariableBase = $(FW_BASE_ADDRESS)
  29. SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize = $(VARS_LIVE_SIZE)
  30. SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageVariableBase + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
  31. SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogSize = $(BLOCK_SIZE)
  32. SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwWorkingBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogBase + gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogSize
  33. SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize = $(BLOCK_SIZE)
  34. SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwSpareBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwWorkingBase + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
  35. SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize = $(VARS_SPARE_SIZE)
  36. # The OVMF WorkArea contains a fixed size header followed by the actual data.
  37. # The size of header is accessed through a fixed PCD in the reset vector code.
  38. # The value need to be kept in sync with the any changes to the Confidential
  39. # Computing Work Area header defined in the Include/WorkArea.h
  40. SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfConfidentialComputingWorkAreaHeader = 4
  41. SET gUefiOvmfPkgTokenSpaceGuid.PcdCfvBase = $(FW_BASE_ADDRESS)
  42. SET gUefiOvmfPkgTokenSpaceGuid.PcdCfvRawDataOffset = $(VARS_OFFSET)
  43. SET gUefiOvmfPkgTokenSpaceGuid.PcdCfvRawDataSize = $(VARS_SIZE)
  44. SET gUefiOvmfPkgTokenSpaceGuid.PcdBfvBase = $(CODE_BASE_ADDRESS)
  45. SET gUefiOvmfPkgTokenSpaceGuid.PcdBfvRawDataOffset = $(VARS_SIZE)
  46. SET gUefiOvmfPkgTokenSpaceGuid.PcdBfvRawDataSize = $(CODE_SIZE)
  47. !if $(SMM_REQUIRE) == TRUE
  48. SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64 = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageVariableBase
  49. SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwWorkingBase
  50. SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwSpareBase
  51. !endif
  52. DEFINE MEMFD_BASE_ADDRESS = 0x800000