Vishal Bhoj | 82c8071 | 2015-12-15 21:13:33 +0530 | [diff] [blame^] | 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 - 2013, Intel Corporation. All rights reserved.<BR>
|
| 6 | #
|
| 7 | # This program and the accompanying materials are licensed and made available
|
| 8 | # under the terms and conditions of the BSD License which accompanies this
|
| 9 | # distribution. The full text of the license may be found at
|
| 10 | # http://opensource.org/licenses/bsd-license.php
|
| 11 | #
|
| 12 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
| 13 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR
|
| 14 | # IMPLIED.
|
| 15 | #
|
| 16 | ##
|
| 17 |
|
| 18 | DEFINE BLOCK_SIZE = 0x1000
|
| 19 | DEFINE VARS_SIZE = 0x20000
|
| 20 | DEFINE VARS_BLOCKS = 0x20
|
| 21 |
|
| 22 | !ifdef $(FD_SIZE_1MB)
|
| 23 |
|
| 24 | DEFINE FW_BASE_ADDRESS = 0xFFF00000
|
| 25 | DEFINE FW_SIZE = 0x00100000
|
| 26 | DEFINE FW_BLOCKS = 0x100
|
| 27 | DEFINE CODE_BASE_ADDRESS = 0xFFF20000
|
| 28 | DEFINE CODE_SIZE = 0x000E0000
|
| 29 | DEFINE CODE_BLOCKS = 0xE0
|
| 30 | DEFINE FVMAIN_SIZE = 0x000CC000
|
| 31 | DEFINE SECFV_OFFSET = 0x000EC000
|
| 32 | DEFINE SECFV_SIZE = 0x14000
|
| 33 |
|
| 34 | !else
|
| 35 |
|
| 36 | DEFINE FW_BASE_ADDRESS = 0xFFE00000
|
| 37 | DEFINE FW_SIZE = 0x00200000
|
| 38 | DEFINE FW_BLOCKS = 0x200
|
| 39 | DEFINE CODE_BASE_ADDRESS = 0xFFE20000
|
| 40 | DEFINE CODE_SIZE = 0x001E0000
|
| 41 | DEFINE CODE_BLOCKS = 0x1E0
|
| 42 | DEFINE FVMAIN_SIZE = 0x001AC000
|
| 43 | DEFINE SECFV_OFFSET = 0x001CC000
|
| 44 | DEFINE SECFV_SIZE = 0x34000
|
| 45 |
|
| 46 | !endif
|
| 47 |
|
| 48 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFdBaseAddress = $(FW_BASE_ADDRESS)
|
| 49 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFirmwareFdSize = $(FW_SIZE)
|
| 50 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFirmwareBlockSize = $(BLOCK_SIZE)
|
| 51 |
|
| 52 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageVariableBase = $(FW_BASE_ADDRESS)
|
| 53 | SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize = 0xE000
|
| 54 |
|
| 55 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageVariableBase + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
|
| 56 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogSize = $(BLOCK_SIZE)
|
| 57 |
|
| 58 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwWorkingBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogBase + gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogSize
|
| 59 | SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize = $(BLOCK_SIZE)
|
| 60 |
|
| 61 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwSpareBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwWorkingBase + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
|
| 62 | SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize = 0x10000
|