modify coding style to pass ecc tool
[edk2.git] / Nt32Pkg / Nt32Pkg.fdf
blobb00fe77efda6afc3aa3460ad6ea19be67c0fa84c
1 # This is NT32 FDF file with UEFI HII features enabled\r
2 #\r
3 # Copyright (c) 2007, Intel Corporation\r
4 #\r
5 #  All rights reserved. This program and the accompanying materials\r
6 #    are licensed and made available under the terms and conditions of the BSD License\r
7 #    which accompanies this distribution. The full text of the license may be found at\r
8 #    http://opensource.org/licenses/bsd-license.php\r
9 #\r
10 #    THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 #    WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12 #\r
14 ################################################################################\r
15 #\r
16 # FD Section\r
17 # The [FD] Section is made up of the definition statements and a\r
18 # description of what goes into  the Flash Device Image.  Each FD section\r
19 # defines one flash "device" image.  A flash device image may be one of\r
20 # the following: Removable media bootable image (like a boot floppy\r
21 # image,) an Option ROM image (that would be "flashed" into an add-in\r
22 # card,) a System "Flash"  image (that would be burned into a system's\r
23 # flash) or an Update ("Capsule") image that will be used to update and\r
24 # existing system flash.\r
25 #\r
26 ################################################################################\r
27 [FD.Fv_Recovery]\r
28 BaseAddress   = 0x0|gEfiNt32PkgTokenSpaceGuid.PcdWinNtFdBaseAddress  #The base address of the FLASH Device.\r
29 Size          = 0x002a0000                                           #The size in bytes of the FLASH Device\r
30 ErasePolarity = 1\r
31 BlockSize     = 0x10000\r
32 NumBlocks     = 0x2a\r
34 ################################################################################\r
35 #\r
36 # Following are lists of FD Region layout which correspond to the locations of different\r
37 # images within the flash device.\r
38 #\r
39 # Regions must be defined in ascending order and may not overlap.\r
40 #\r
41 # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by\r
42 # the pipe "|" character, followed by the size of the region, also in hex with the leading\r
43 # "0x" characters. Like:\r
44 # Offset|Size\r
45 # PcdOffsetCName|PcdSizeCName\r
46 # RegionType <FV, DATA, or FILE>\r
47 #\r
48 ################################################################################\r
49 0x00000000|0x00280000\r
50 gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashFvRecoveryBase|gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashFvRecoverySize\r
51 FV = FvRecovery\r
53 0x00280000|0x0000c000\r
54 gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageVariableBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize\r
55 #NV_VARIABLE_STORE\r
56 DATA = {\r
57   ## This is the EFI_FIRMWARE_VOLUME_HEADER\r
58   # ZeroVector []\r
59   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r
60   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r
61   # FileSystemGuid: gEfiSystemNvDataFvGuid         =\r
62   #  { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}\r
63   0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,\r
64   0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,\r
65   # FvLength: 0x20000\r
66   0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,\r
67   #Signature "_FVH"       #Attributes\r
68   0x5f, 0x46, 0x56, 0x48, 0xff, 0xfe, 0x04, 0x00,\r
69   #HeaderLength #CheckSum #ExtHeaderOffset #Reserved #Revision\r
70   0x48, 0x00, 0x36, 0x09, 0x00, 0x00, 0x00, 0x02,\r
71   #Blockmap[0]: 2 Blocks * 0x10000 Bytes / Block\r
72   0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,\r
73   #Blockmap[1]: End\r
74   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r
75   ## This is the VARIABLE_STORE_HEADER\r
76   #Signature: "$VSS"      #Size: 0xc000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) - 0x48 (HeaderLength) = 0xBFB8\r
77                                 # This can speed up the Variable Dispatch a bit.\r
78   0x24, 0x56, 0x53, 0x53, 0xB8, 0xBF, 0x00, 0x00,\r
79   #FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32\r
80   0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00\r
81 }\r
83 0x0028c000|0x00002000\r
84 #NV_EVENT_LOG\r
85 gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageEventLogBase|gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageEventLogSize\r
87 0x0028e000|0x00002000\r
88 gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageFtwWorkingBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize\r
89 #NV_FTW_WORKING\r
90 DATA = {\r
91   # EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER->Signature = gEfiSystemNvDataFvGuid         =\r
92   #  { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}\r
93   0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,\r
94   0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,\r
95   # Crc:UINT32            #WorkingBlockValid:1, WorkingBlockInvalid:1, Reserved\r
96   0x77, 0x13, 0x9B, 0xD7, 0xFE, 0xFF, 0xFF, 0xFF,\r
97   # WriteQueueSize: UINT64\r
98   0xE0, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00\r
99 }\r
101 0x00290000|0x00010000\r
102 #NV_FTW_SPARE\r
103 gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageFtwSpareBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize\r
105 ################################################################################\r
107 # FV Section\r
109 # [FV] section is used to define what components or modules are placed within a flash\r
110 # device file.  This section also defines order the components and modules are positioned\r
111 # within the image.  The [FV] section consists of define statements, set statements and\r
112 # module statements.\r
114 ################################################################################\r
115 [FV.FvRecovery]\r
116 FvAlignment        = 16         #FV alignment and FV attributes setting.\r
117 ERASE_POLARITY     = 1\r
118 MEMORY_MAPPED      = TRUE\r
119 STICKY_WRITE       = TRUE\r
120 LOCK_CAP           = TRUE\r
121 LOCK_STATUS        = TRUE\r
122 WRITE_DISABLED_CAP = TRUE\r
123 WRITE_ENABLED_CAP  = TRUE\r
124 WRITE_STATUS       = TRUE\r
125 WRITE_LOCK_CAP     = TRUE\r
126 WRITE_LOCK_STATUS  = TRUE\r
127 READ_DISABLED_CAP  = TRUE\r
128 READ_ENABLED_CAP   = TRUE\r
129 READ_STATUS        = TRUE\r
130 READ_LOCK_CAP      = TRUE\r
131 READ_LOCK_STATUS   = TRUE\r
133 ################################################################################\r
135 # The INF statements point to EDK component and EDK II module INF files, which will be placed into this FV image.\r
136 # Parsing tools will scan the INF file to determine the type of component or module.\r
137 # The component or module type is used to reference the standard rules\r
138 # defined elsewhere in the FDF file.\r
140 # The format for INF statements is:\r
141 # INF $(PathAndInfFileName)\r
143 ################################################################################\r
144   ##\r
145   #  PEI Phase modules\r
146   ##\r
147   ##\r
148   #  PEI Apriori file example, more PEIM module added later.\r
149   ##\r
150 APRIORI PEI {\r
151   INF  MdeModulePkg/Universal/PCD/Pei/Pcd.inf\r
152   INF  IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.inf\r
153   }\r
154 APRIORI DXE {\r
155   INF  MdeModulePkg/Universal/PCD/Dxe/Pcd.inf\r
156   INF  Nt32Pkg/MetronomeDxe/MetronomeDxe.inf\r
157   }\r
159 INF  MdeModulePkg/Core/Pei/PeiMain.inf\r
160 INF  MdeModulePkg/Universal/PCD/Pei/Pcd.inf\r
161 INF  IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.inf\r
162 INF  Nt32Pkg/BootModePei/BootModePei.inf\r
163 INF  Nt32Pkg/WinNtFlashMapPei/WinNtFlashMapPei.inf\r
164 INF  MdeModulePkg/Universal/MemoryTest/BaseMemoryTestPei/BaseMemoryTestPei.inf\r
165 INF  Nt32Pkg/WinNtAutoScanPei/WinNtAutoScanPei.inf\r
166 INF  Nt32Pkg/WinNtFirmwareVolumePei/WinNtFirmwareVolumePei.inf\r
167 INF  MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r
168 INF  Nt32Pkg/WinNtThunkPPIToProtocolPei/WinNtThunkPPIToProtocolPei.inf\r
169 INF  MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf\r
171   ##\r
172   #  DXE Phase modules\r
173   ##\r
174 INF  MdeModulePkg/Core/Dxe/DxeMain.inf\r
175 INF  MdeModulePkg/Universal/PCD/Dxe/Pcd.inf\r
176 INF  Nt32Pkg/MetronomeDxe/MetronomeDxe.inf\r
177 INF  Nt32Pkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r
178 INF  Nt32Pkg/ResetRuntimeDxe/ResetRuntimeDxe.inf\r
179 INF  MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
180 INF  Nt32Pkg/FvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf\r
181 INF  MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
182 INF  IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf\r
183 INF  MdeModulePkg/Universal/EbcDxe/EbcDxe.inf\r
184 INF  MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf\r
185 INF  MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
186 INF  Nt32Pkg/WinNtThunkDxe/WinNtThunkDxe.inf\r
187 INF  Nt32Pkg/CpuRuntimeDxe/CpuRuntimeDxe.inf\r
188 INF  MdeModulePkg/Universal/BdsDxe/BdsDxe.inf\r
189 INF  MdeModulePkg/Universal/FirmwareVolume/FaultTolerantWriteDxe/FtwLite.inf\r
190 INF  IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErrDxe.inf\r
191 INF  Nt32Pkg/MiscSubClassPlatformDxe/MiscSubClassPlatformDxe.inf\r
192 INF  Nt32Pkg/TimerDxe/TimerDxe.inf\r
193 INF  IntelFrameworkModulePkg/Universal/StatusCode/Dxe/DxeStatusCode.inf\r
194 INF  MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf\r
195 INF  MdeModulePkg/Universal/WatchDogTimerDxe/WatchDogTimer.inf\r
196 INF  MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
197 INF  MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
198 INF  MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
199 INF  MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
200 INF  MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r
201 INF  MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
202 INF  MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r
203 INF  MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
204 INF  MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
205 INF  MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
206 INF  MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
207 INF  IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf\r
208 INF  MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf     ##This driver follows UEFI specification definition\r
209 INF  MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf    ##This driver follows UEFI specification definition\r
210 INF  IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf\r
211 INF  Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriverDxe.inf\r
212 INF  Nt32Pkg/WinNtBlockIoDxe/WinNtBlockIoDxe.inf\r
213 INF  Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIoDxe.inf\r
214 INF  Nt32Pkg/WinNtGopDxe/WinNtGopDxe.inf\r
215 INF  Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystemDxe.inf\r
216 INF  MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf\r
217 INF  MdeModulePkg/Application/HelloWorld/HelloWorld.inf\r
219 ################################################################################\r
221 # FILE statements are provided so that a platform integrator can include\r
222 # complete EFI FFS files, as well as a method for constructing FFS files\r
223 # using curly "{}" brace scoping. The following three FILEs are\r
224 # for binary shell, binary fat and logo module.\r
226 ################################################################################\r
227 FILE APPLICATION = c57ad6b7-0515-40a8-9d21-551652854e37 {\r
228     SECTION COMPRESS PI_STD {\r
229       SECTION GUIDED {\r
230         SECTION PE32 = EdkShellBinPkg/FullShell/ia32/Shell_Full.efi\r
231       }\r
232     }\r
233   }\r
234 FILE DRIVER = 961578FE-B6B7-44c3-AF35-6BC705CD2B1F {\r
235     SECTION COMPRESS PI_STD {\r
236       SECTION GUIDED {\r
237         SECTION PE32 = FatBinPkg/EnhancedFatDxe/Ia32/Fat.efi\r
238       }\r
239     }\r
240   }\r
241 FILE FREEFORM = 7BB28B99-61BB-11D5-9A5D-0090273FC14D {\r
242     SECTION COMPRESS PI_STD {\r
243       SECTION GUIDED {\r
244         SECTION RAW = MdeModulePkg/Logo/Logo.bmp\r
245       }\r
246     }\r
247   }\r
250 ################################################################################\r
252 # Rules are use with the [FV] section's module INF type to define\r
253 # how an FFS file is created for a given INF file. The following Rule are the default\r
254 # rules for the different module type. User can add the customized rules to define the\r
255 # content of the FFS file.\r
257 ################################################################################\r
260 ############################################################################\r
261 # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section   # \r
262 ############################################################################\r
264 #[Rule.Common.DXE_DRIVER]\r
265 #  FILE DRIVER = $(NAMED_GUID) {\r
266 #    DXE_DEPEX    DXE_DEPEX Optional      |.depex\r
267 #    COMPRESS PI_STD {\r
268 #      GUIDED {\r
269 #        PE32     PE32                    |.efi\r
270 #        UI       STRING="$(MODULE_NAME)" Optional\r
271 #        VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
272 #      }\r
273 #    }\r
274 #  }\r
276 ############################################################################\r
278 [Rule.Common.PEI_CORE]\r
279   FILE PEI_CORE = $(NAMED_GUID) {\r
280     PE32     PE32           |.efi\r
281     UI       STRING ="$(MODULE_NAME)" Optional         \r
282     VERSION  STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)    \r
283   }\r
285 [Rule.Common.PEIM]\r
286   FILE PEIM = $(NAMED_GUID) {\r
287      PEI_DEPEX PEI_DEPEX Optional        |.depex\r
288      PE32      PE32                      |.efi\r
289      UI       STRING="$(MODULE_NAME)" Optional         \r
290      VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)   \r
291   }\r
293 [Rule.Common.PEIM.TIANOCOMPRESSED]\r
294   FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {\r
295     PEI_DEPEX PEI_DEPEX Optional         |.depex\r
296     GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {\r
297       PE32      PE32                     |.efi\r
298       UI        STRING="$(MODULE_NAME)" Optional\r
299       VERSION   STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
300     }\r
301   }\r
303 [Rule.Common.DXE_CORE]\r
304   FILE DXE_CORE = $(NAMED_GUID) {\r
305     COMPRESS PI_STD {\r
306       PE32     PE32           |.efi\r
307       UI       STRING="$(MODULE_NAME)" Optional\r
308       VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
309     }\r
310   }\r
312 [Rule.Common.UEFI_DRIVER]\r
313   FILE DRIVER = $(NAMED_GUID) {\r
314     DXE_DEPEX    DXE_DEPEX Optional      |.depex\r
315     COMPRESS PI_STD {\r
316       GUIDED {\r
317         PE32     PE32                    |.efi\r
318         UI       STRING="$(MODULE_NAME)" Optional\r
319         VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
320       }\r
321     }\r
322   }\r
324 [Rule.Common.DXE_DRIVER]\r
325   FILE DRIVER = $(NAMED_GUID) {\r
326     DXE_DEPEX    DXE_DEPEX Optional      |.depex\r
327     COMPRESS PI_STD {\r
328       GUIDED {\r
329         PE32     PE32                    |.efi\r
330         UI       STRING="$(MODULE_NAME)" Optional\r
331         VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
332       }\r
333     }\r
334   }\r
336 [Rule.Common.DXE_RUNTIME_DRIVER]\r
337   FILE DRIVER = $(NAMED_GUID) {\r
338     DXE_DEPEX    DXE_DEPEX Optional      |.depex\r
339     COMPRESS PI_STD {\r
340       GUIDED {\r
341         PE32     PE32                    |.efi\r
342         UI       STRING="$(MODULE_NAME)" Optional\r
343         VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
344       }\r
345     }\r
346   }\r
348 [Rule.Common.UEFI_APPLICATION]\r
349   FILE APPLICATION = $(NAMED_GUID) {\r
350     COMPRESS PI_STD {\r
351       GUIDED {\r
352         PE32     PE32                    |.efi\r
353         UI       STRING="$(MODULE_NAME)" Optional\r
354         VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
355       }\r
356     }\r
357   }\r