TianoCore EDK2 master
Loading...
Searching...
No Matches
CloudHvDefines.fdf.inc
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
11DEFINE BLOCK_SIZE = 0x1000
12DEFINE VARS_OFFSET = 0
13
14DEFINE VARS_SIZE = 0x84000
15DEFINE VARS_BLOCKS = 0x84
16DEFINE VARS_LIVE_SIZE = 0x40000
17DEFINE VARS_SPARE_SIZE = 0x42000
18
19DEFINE FW_BASE_ADDRESS = 0x004FFFD0
20DEFINE FW_SIZE = 0x00400000
21DEFINE FW_BLOCKS = 0x400
22DEFINE CODE_BASE_ADDRESS = 0x00583FD0
23DEFINE CODE_SIZE = 0x0037C000
24DEFINE CODE_BLOCKS = 0x37C
25DEFINE FVMAIN_SIZE = 0x00348000
26DEFINE SECFV_OFFSET = 0x003CC000
27DEFINE SECFV_SIZE = 0x34000
28
29SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFdBaseAddress = $(FW_BASE_ADDRESS)
30SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFirmwareFdSize = $(FW_SIZE)
31SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFirmwareBlockSize = $(BLOCK_SIZE)
32
33SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageVariableBase = $(FW_BASE_ADDRESS)
34SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize = $(VARS_LIVE_SIZE)
35
36SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageVariableBase + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
37SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogSize = $(BLOCK_SIZE)
38
39SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwWorkingBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogBase + gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogSize
40SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize = $(BLOCK_SIZE)
41
42SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwSpareBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwWorkingBase + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
43SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize = $(VARS_SPARE_SIZE)
44
45# The OVMF WorkArea contains a fixed size header followed by the actual data.
46# The size of header is accessed through a fixed PCD in the reset vector code.
47# The value need to be kept in sync with the any changes to the Confidential
48# Computing Work Area header defined in the Include/WorkArea.h
49SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfConfidentialComputingWorkAreaHeader = 4
50
51SET gUefiOvmfPkgTokenSpaceGuid.PcdCfvBase = $(FW_BASE_ADDRESS)
52SET gUefiOvmfPkgTokenSpaceGuid.PcdCfvRawDataOffset = $(VARS_OFFSET)
53SET gUefiOvmfPkgTokenSpaceGuid.PcdCfvRawDataSize = $(VARS_SIZE)
54
55SET gUefiOvmfPkgTokenSpaceGuid.PcdBfvBase = $(CODE_BASE_ADDRESS)
56SET gUefiOvmfPkgTokenSpaceGuid.PcdBfvRawDataOffset = $(VARS_SIZE)
57SET gUefiOvmfPkgTokenSpaceGuid.PcdBfvRawDataSize = $(CODE_SIZE)
58
59!if $(SMM_REQUIRE) == TRUE
60SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64 = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageVariableBase
61SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwWorkingBase
62SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwSpareBase
63!endif
64
65DEFINE MEMFD_BASE_ADDRESS = 0x800000
#define TRUE
Definition: Base.h:301