]>
Commit | Line | Data |
---|---|---|
1c50db8a LE |
1 | ## @file\r |
2 | # FDF include file that defines the main macros and sets the dependent PCDs.\r | |
3 | #\r | |
4 | # Copyright (C) 2014, Red Hat, Inc.\r | |
5 | # Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r | |
6 | #\r | |
7 | # This program and the accompanying materials are licensed and made available\r | |
8 | # under the terms and conditions of the BSD License which accompanies this\r | |
9 | # distribution. The full text of the license may be found at\r | |
10 | # http://opensource.org/licenses/bsd-license.php\r | |
11 | #\r | |
12 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR\r | |
14 | # IMPLIED.\r | |
15 | #\r | |
16 | ##\r | |
17 | \r | |
18 | DEFINE BLOCK_SIZE = 0x1000\r | |
b24fca05 LE |
19 | \r |
20 | #\r | |
21 | # A firmware binary built with FD_SIZE_IN_KB=1024, and a firmware binary built\r | |
22 | # with FD_SIZE_IN_KB=2048, use the same variable store layout.\r | |
23 | #\r | |
24 | # Setting FD_SIZE_IN_KB to 4096 results in a different (much larger) variable\r | |
25 | # store structure that is incompatible with both of the above-mentioned\r | |
26 | # firmware binaries.\r | |
27 | #\r | |
28 | !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)\r | |
1c50db8a LE |
29 | DEFINE VARS_SIZE = 0x20000\r |
30 | DEFINE VARS_BLOCKS = 0x20\r | |
636cda51 LE |
31 | DEFINE VARS_LIVE_SIZE = 0xE000\r |
32 | DEFINE VARS_SPARE_SIZE = 0x10000\r | |
b24fca05 | 33 | !endif\r |
1c50db8a | 34 | \r |
21027073 | 35 | !if $(FD_SIZE_IN_KB) == 1024\r |
1c50db8a LE |
36 | DEFINE FW_BASE_ADDRESS = 0xFFF00000\r |
37 | DEFINE FW_SIZE = 0x00100000\r | |
38 | DEFINE FW_BLOCKS = 0x100\r | |
39 | DEFINE CODE_BASE_ADDRESS = 0xFFF20000\r | |
40 | DEFINE CODE_SIZE = 0x000E0000\r | |
41 | DEFINE CODE_BLOCKS = 0xE0\r | |
42 | DEFINE FVMAIN_SIZE = 0x000CC000\r | |
43 | DEFINE SECFV_OFFSET = 0x000EC000\r | |
44 | DEFINE SECFV_SIZE = 0x14000\r | |
21027073 | 45 | !endif\r |
1c50db8a | 46 | \r |
21027073 | 47 | !if $(FD_SIZE_IN_KB) == 2048\r |
1c50db8a LE |
48 | DEFINE FW_BASE_ADDRESS = 0xFFE00000\r |
49 | DEFINE FW_SIZE = 0x00200000\r | |
50 | DEFINE FW_BLOCKS = 0x200\r | |
51 | DEFINE CODE_BASE_ADDRESS = 0xFFE20000\r | |
52 | DEFINE CODE_SIZE = 0x001E0000\r | |
53 | DEFINE CODE_BLOCKS = 0x1E0\r | |
54 | DEFINE FVMAIN_SIZE = 0x001AC000\r | |
55 | DEFINE SECFV_OFFSET = 0x001CC000\r | |
56 | DEFINE SECFV_SIZE = 0x34000\r | |
1c50db8a LE |
57 | !endif\r |
58 | \r | |
b24fca05 LE |
59 | !if $(FD_SIZE_IN_KB) == 4096\r |
60 | DEFINE VARS_SIZE = 0x84000\r | |
61 | DEFINE VARS_BLOCKS = 0x84\r | |
62 | DEFINE VARS_LIVE_SIZE = 0x40000\r | |
63 | DEFINE VARS_SPARE_SIZE = 0x42000\r | |
64 | \r | |
65 | DEFINE FW_BASE_ADDRESS = 0xFFC00000\r | |
66 | DEFINE FW_SIZE = 0x00400000\r | |
67 | DEFINE FW_BLOCKS = 0x400\r | |
68 | DEFINE CODE_BASE_ADDRESS = 0xFFC84000\r | |
69 | DEFINE CODE_SIZE = 0x0037C000\r | |
70 | DEFINE CODE_BLOCKS = 0x37C\r | |
71 | DEFINE FVMAIN_SIZE = 0x00348000\r | |
72 | DEFINE SECFV_OFFSET = 0x003CC000\r | |
73 | DEFINE SECFV_SIZE = 0x34000\r | |
74 | !endif\r | |
75 | \r | |
1c50db8a LE |
76 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFdBaseAddress = $(FW_BASE_ADDRESS)\r |
77 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFirmwareFdSize = $(FW_SIZE)\r | |
78 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFirmwareBlockSize = $(BLOCK_SIZE)\r | |
79 | \r | |
80 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageVariableBase = $(FW_BASE_ADDRESS)\r | |
636cda51 | 81 | SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize = $(VARS_LIVE_SIZE)\r |
1c50db8a LE |
82 | \r |
83 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageVariableBase + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize\r | |
84 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogSize = $(BLOCK_SIZE)\r | |
85 | \r | |
86 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwWorkingBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogBase + gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogSize\r | |
87 | SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize = $(BLOCK_SIZE)\r | |
88 | \r | |
89 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwSpareBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwWorkingBase + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize\r | |
636cda51 | 90 | SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize = $(VARS_SPARE_SIZE)\r |
9beac0d8 LE |
91 | \r |
92 | DEFINE MEMFD_BASE_ADDRESS = 0x800000\r |