--- /dev/null
+## @file\r
+# FDF include file that defines the main macros and sets the dependent PCDs.\r
+#\r
+# Copyright (C) 2014, Red Hat, Inc.\r
+# Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
+#\r
+# This program and the accompanying materials are licensed and made available\r
+# under the terms and conditions of the BSD License which accompanies this\r
+# distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR\r
+# IMPLIED.\r
+#\r
+##\r
+\r
+DEFINE BLOCK_SIZE = 0x1000\r
+DEFINE VARS_SIZE = 0x20000\r
+DEFINE VARS_BLOCKS = 0x20\r
+\r
+!ifdef $(FD_SIZE_1MB)\r
+\r
+DEFINE FW_BASE_ADDRESS = 0xFFF00000\r
+DEFINE FW_SIZE = 0x00100000\r
+DEFINE FW_BLOCKS = 0x100\r
+DEFINE CODE_BASE_ADDRESS = 0xFFF20000\r
+DEFINE CODE_SIZE = 0x000E0000\r
+DEFINE CODE_BLOCKS = 0xE0\r
+DEFINE FVMAIN_SIZE = 0x000CC000\r
+DEFINE SECFV_OFFSET = 0x000EC000\r
+DEFINE SECFV_SIZE = 0x14000\r
+\r
+!else\r
+\r
+DEFINE FW_BASE_ADDRESS = 0xFFE00000\r
+DEFINE FW_SIZE = 0x00200000\r
+DEFINE FW_BLOCKS = 0x200\r
+DEFINE CODE_BASE_ADDRESS = 0xFFE20000\r
+DEFINE CODE_SIZE = 0x001E0000\r
+DEFINE CODE_BLOCKS = 0x1E0\r
+DEFINE FVMAIN_SIZE = 0x001AC000\r
+DEFINE SECFV_OFFSET = 0x001CC000\r
+DEFINE SECFV_SIZE = 0x34000\r
+\r
+!endif\r
+\r
+SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFdBaseAddress = $(FW_BASE_ADDRESS)\r
+SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFirmwareFdSize = $(FW_SIZE)\r
+SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFirmwareBlockSize = $(BLOCK_SIZE)\r
+\r
+SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageVariableBase = $(FW_BASE_ADDRESS)\r
+SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize = 0xE000\r
+\r
+SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageVariableBase + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize\r
+SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogSize = $(BLOCK_SIZE)\r
+\r
+SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwWorkingBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogBase + gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogSize\r
+SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize = $(BLOCK_SIZE)\r
+\r
+SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwSpareBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwWorkingBase + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize\r
+SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize = 0x10000\r