Changed the group names VpdGroup and HiiGroup to HiiEnable and VpdEnable. Changed...
[mirror_edk2.git] / Tools / XMLSchema / FrameworkPlatformDataElements.xsd
CommitLineData
878ddf1f 1<?xml version="1.0" encoding="UTF-8"?>\r
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns="http://www.TianoCore.org/2006/Edk2.0" targetNamespace="http://www.TianoCore.org/2006/Edk2.0">\r
3 <!--\r
4 Filename: FrameworkPlatformDataElements.xsd\r
5 \r
6 Copyright (c) 2006, Intel Corp.\r
7 All rights reserved. This program and the accompanying materials\r
8 are licensed and made available under the terms and conditions of the BSD License\r
9 which may be found at http://opensource.org/licenses/bsd-license.php\r
10 \r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13 \r
14 -->\r
15 <xs:annotation>\r
16 <xs:documentation xml:lang="en"> This schema defines EFI and Framework Platform Data Elements that are specific to platform creation.</xs:documentation>\r
17 </xs:annotation>\r
18 <xs:include schemaLocation="NamingConvention.xsd"/>\r
92e805e9 19 <xs:include schemaLocation="FrameworkDataAttributes.xsd"/>\r
878ddf1f 20 <xs:include schemaLocation="FrameworkDataTypes.xsd"/>\r
21 <xs:include schemaLocation="FrameworkDataElements.xsd"/>\r
22 <xs:element name="Capsule">\r
23 <xs:complexType>\r
24 <xs:sequence>\r
25 <xs:element minOccurs="1" maxOccurs="1" name="CapsuleId" type="xs:string"/>\r
26 <xs:element minOccurs="0" maxOccurs="1" ref="CapsuleOptions"/>\r
27 <xs:element minOccurs="0" maxOccurs="1" ref="CapsuleAttributes"/>\r
28 </xs:sequence>\r
29 </xs:complexType>\r
30 </xs:element>\r
31 <xs:element name="CapsuleAttributes">\r
32 <xs:annotation>\r
33 <xs:documentation xml:lang="en">This element is used specify different name value pairs.</xs:documentation>\r
34 </xs:annotation>\r
35 <xs:complexType>\r
36 <xs:sequence>\r
37 <xs:element minOccurs="0" maxOccurs="unbounded" ref="NameValue"/>\r
38 <xs:element minOccurs="0" maxOccurs="unbounded" ref="Enable"/>\r
39 <xs:element minOccurs="0" maxOccurs="unbounded" ref="Disable"/>\r
40 </xs:sequence>\r
41 </xs:complexType>\r
42 </xs:element>\r
43 <xs:element name="CapsuleOptions">\r
44 <xs:annotation>\r
45 <xs:documentation xml:lang="en">This element is used specify different name value pairs.</xs:documentation>\r
46 </xs:annotation>\r
47 <xs:complexType>\r
48 <xs:sequence>\r
49 <xs:element minOccurs="0" maxOccurs="unbounded" ref="NameValue"/>\r
50 <xs:element minOccurs="0" maxOccurs="unbounded" ref="Enable"/>\r
51 <xs:element minOccurs="0" maxOccurs="unbounded" ref="Disable"/>\r
52 </xs:sequence>\r
53 </xs:complexType>\r
54 </xs:element>\r
55 <xs:element name="Capsules">\r
56 <xs:annotation>\r
57 <xs:documentation xml:lang="en">Permit multiple Capsule Sections</xs:documentation>\r
58 </xs:annotation>\r
59 <xs:complexType>\r
60 <xs:sequence minOccurs="1" maxOccurs="unbounded">\r
61 <xs:element ref="Capsule"/>\r
62 </xs:sequence>\r
63 </xs:complexType>\r
64 </xs:element>\r
65 <xs:element name="Disable" type="xs:string"/>\r
66 <xs:element name="Enable" type="xs:string"/>\r
67 <xs:element name="Flash">\r
68 <xs:complexType>\r
69 <xs:annotation>\r
70 <xs:documentation xml:lang="en">We allow specifying the Flash layout in this directory, or we allow specifying a flashmap filename</xs:documentation>\r
71 </xs:annotation>\r
72 <xs:sequence>\r
73 <xs:choice>\r
74 <xs:element name="FlashDefinition" type="FlashData"/>\r
75 <xs:element name="FlashDefinitionFile" type="FileNameConvention"/>\r
76 </xs:choice>\r
be05f523 77 <xs:element minOccurs="0" maxOccurs="1" ref="FvImages"/>\r
78 <xs:element minOccurs="0" maxOccurs="1" ref="Capsules"/>\r
878ddf1f 79 </xs:sequence>\r
80 <xs:attribute name="MicrocodeFile" type="FileNameConvention" use="optional"/>\r
81 </xs:complexType>\r
82 </xs:element>\r
83 <xs:element name="FlashDeviceImage">\r
84 <xs:annotation>\r
85 <xs:documentation xml:lang="en">Define contents of the regions in flash. The files and data are placed in the output image in the order they are encountered in this definition. Multiple FlashDeviceImage sections may be defined. Which one the tool should use is specified by Name on the command line.</xs:documentation>\r
86 </xs:annotation>\r
87 <xs:complexType>\r
818de870 88 <xs:all>\r
89 <xs:element minOccurs="0" maxOccurs="1" name="RawData">\r
90 <xs:complexType>\r
91 <xs:sequence minOccurs="0" maxOccurs="1">\r
92 <xs:element name="Data" type="xs:string"/>\r
93 </xs:sequence>\r
94 <xs:attributeGroup ref="RawDataAttributes"/>\r
95 </xs:complexType>\r
96 </xs:element>\r
97 <xs:element minOccurs="0" maxOccurs="1" name="File">\r
98 <xs:complexType>\r
99 <xs:attributeGroup ref="FlashDeviceImageFileAttributes"/>\r
100 </xs:complexType>\r
101 </xs:element>\r
102 </xs:all>\r
103 <xs:attributeGroup ref="FlashDeviceImageAttributes"/>\r
878ddf1f 104 </xs:complexType>\r
105 </xs:element>\r
106 <xs:element name="FlashDeviceInfo">\r
107 <xs:annotation>\r
108 <xs:documentation xml:lang="en">This is the Flash Devcie definition List</xs:documentation>\r
109 </xs:annotation>\r
110 <xs:complexType>\r
111 <xs:sequence>\r
818de870 112 <xs:element name="Blocks">\r
113 <xs:complexType>\r
114 <xs:sequence>\r
115 <xs:element minOccurs="1" maxOccurs="255" name="Block">\r
116 <xs:complexType>\r
117 <xs:simpleContent>\r
118 <xs:extension base="BlockNameType">\r
119 <xs:attributeGroup ref="BlockAttributes"/>\r
120 </xs:extension>\r
121 </xs:simpleContent>\r
122 </xs:complexType>\r
123 </xs:element>\r
124 </xs:sequence>\r
125 </xs:complexType>\r
126 </xs:element>\r
127 <xs:element name="Regions">\r
128 <xs:complexType>\r
129 <xs:sequence>\r
130 <xs:element minOccurs="1" maxOccurs="unbounded" name="Region">\r
131 <xs:complexType>\r
132 <xs:all>\r
133 <xs:element name="SubRegions">\r
134 <xs:complexType>\r
135 <xs:sequence minOccurs="0" maxOccurs="unbounded">\r
136 <xs:element name="SubRegion">\r
137 <xs:complexType>\r
138 <xs:simpleContent>\r
139 <xs:extension base="xs:string">\r
140 <xs:attributeGroup ref="SubRegionAttributes"/>\r
141 </xs:extension>\r
142 </xs:simpleContent>\r
143 </xs:complexType>\r
144 </xs:element>\r
145 </xs:sequence>\r
146 </xs:complexType>\r
147 </xs:element>\r
148 </xs:all>\r
149 <xs:attributeGroup ref="RegionAttributes"/>\r
150 </xs:complexType>\r
151 </xs:element>\r
152 </xs:sequence>\r
153 </xs:complexType>\r
154 </xs:element>\r
878ddf1f 155 </xs:sequence>\r
f29b8a33 156 <xs:attributeGroup ref="FlashDeviceInfoAttributes"/>\r
878ddf1f 157 </xs:complexType>\r
158 </xs:element>\r
159 <xs:element name="FlashDeviceOverrideImage">\r
160 <xs:annotation>\r
161 <xs:documentation xml:lang="en">Define OVERRIDE contents of the regions in flash. Only what is different here from what may defined in other areas (or files) is needed </xs:documentation>\r
162 </xs:annotation>\r
163 <xs:complexType>\r
164 <xs:sequence>\r
165 <xs:element minOccurs="0" maxOccurs="1" name="Name" type="NameConvention"/>\r
166 <xs:element minOccurs="0" maxOccurs="unbounded" name="File" type="FvImageOverrideFileType"/>\r
167 </xs:sequence>\r
168 </xs:complexType>\r
169 </xs:element>\r
170 <xs:element name="FlashDeviceOverrideInfo">\r
171 <xs:annotation>\r
172 <xs:documentation xml:lang="en">This is the Flash Devcie Override Definition list. Only what is different from the previously defined stuff needs to be included.</xs:documentation>\r
173 </xs:annotation>\r
174 <xs:complexType>\r
175 <xs:sequence>\r
176 <xs:element minOccurs="0" maxOccurs="1" name="Name" type="UCNameType"/>\r
177 <xs:element default="512KB" minOccurs="0" maxOccurs="1" name="FlashSize" type="FlashSize"/>\r
178 <xs:element minOccurs="0" maxOccurs="1" name="BaseAddress" type="HexAddressType"/>\r
179 <xs:element minOccurs="0" maxOccurs="1" name="OutputDirectory" type="DirectoryNamingConvention"/>\r
180 <xs:element minOccurs="0" maxOccurs="1" name="MicrocodeFile" type="FileNameConvention"/>\r
181 <xs:element minOccurs="0" maxOccurs="255" name="Block" type="BlockNameType"/>\r
182 <xs:element minOccurs="0" maxOccurs="unbounded" name="Region" type="RegionDataType"/>\r
183 </xs:sequence>\r
184 </xs:complexType>\r
185 </xs:element>\r
186 <xs:element name="FvImage">\r
187 <xs:complexType>\r
188 <xs:sequence>\r
189 <xs:element minOccurs="1" maxOccurs="unbounded" ref="FvImageNames"/>\r
190 <xs:element minOccurs="0" maxOccurs="1" ref="FvImageOptions"/>\r
191 </xs:sequence>\r
fb6d4eb2 192 <xs:attribute name="Type" type="FvImageTypes" use="optional"/>\r
878ddf1f 193 </xs:complexType>\r
194 </xs:element>\r
195 <xs:element name="FvImageName">\r
196 <xs:complexType>\r
197 <xs:sequence>\r
198 <xs:element ref="FvImageOptions"/>\r
199 </xs:sequence>\r
200 <xs:attribute name="Name" type="FvRegionTypes" use="required"/>\r
201 </xs:complexType>\r
202 </xs:element>\r
fb6d4eb2 203 <xs:element name="FvImageNames" type="xs:NCName"/>\r
878ddf1f 204 <xs:element name="FvImageOptions">\r
205 <xs:annotation>\r
206 <xs:documentation xml:lang="en">This element is used specify different name value pairs.</xs:documentation>\r
207 </xs:annotation>\r
208 <xs:complexType>\r
209 <xs:sequence>\r
210 <xs:element minOccurs="0" maxOccurs="unbounded" ref="NameValue"/>\r
211 <xs:element minOccurs="0" maxOccurs="unbounded" ref="Enable"/>\r
212 <xs:element minOccurs="0" maxOccurs="unbounded" ref="Disable"/>\r
213 </xs:sequence>\r
214 </xs:complexType>\r
215 </xs:element>\r
216 <xs:element name="FvImages">\r
217 <xs:annotation>\r
218 <xs:documentation xml:lang="en">This section allows the user to define specific information regarding the FvImage</xs:documentation>\r
219 </xs:annotation>\r
220 <xs:complexType>\r
221 <xs:sequence>\r
222 <xs:element minOccurs="0" maxOccurs="unbounded" ref="NameValue"/>\r
223 <xs:element minOccurs="0" maxOccurs="unbounded" ref="FvImage"/>\r
224 <xs:element minOccurs="0" maxOccurs="unbounded" ref="FvImageName"/>\r
225 </xs:sequence>\r
226 </xs:complexType>\r
227 </xs:element>\r
228 <xs:element name="ModuleSA">\r
229 <xs:annotation>\r
230 <xs:documentation xml:lang="en">This element is used to specify information in the Platform Description File.</xs:documentation>\r
231 <xs:documentation xml:lang="en">This is a mixed element, allowing the user to specify the name of the MSA file, as well as to optionally specify additional override information.</xs:documentation>\r
232 </xs:annotation>\r
233 <xs:complexType>\r
234 <xs:sequence minOccurs="1">\r
e4ecc06e 235 <!-- DO NOT USE! REMOVE SourceFiles in FINAL -->\r
236 <xs:element minOccurs="0" maxOccurs="1" ref="SourceFiles"/>\r
237 <!-- DO NOT USE! REMOVE Includes in FINAL -->\r
238 <xs:element minOccurs="0" maxOccurs="1" ref="Includes"/>\r
239 <!-- Libraries stays in FINAL -->\r
878ddf1f 240 <xs:element minOccurs="0" maxOccurs="1" ref="Libraries"/>\r
e4ecc06e 241 <!-- DO NOT USE! REMOVE Protocols in FINAL -->\r
242 <xs:element minOccurs="0" maxOccurs="1" ref="Protocols"/>\r
243 <!-- DO NOT USE! REMOVE Events in FINAL -->\r
244 <xs:element minOccurs="0" maxOccurs="1" ref="Events"/>\r
245 <!-- DO NOT USE! REMOVE Hobs in FINAL -->\r
246 <xs:element minOccurs="0" maxOccurs="1" ref="Hobs"/>\r
247 <!-- DO NOT USE! REMOVE PPIs in FINAL -->\r
248 <xs:element minOccurs="0" maxOccurs="1" ref="PPIs"/>\r
249 <!-- DO NOT USE! REMOVE Variables in FINAL -->\r
250 <xs:element minOccurs="0" maxOccurs="1" ref="Variables"/>\r
251 <!-- DO NOT USE! REMOVE BootModes in FINAL -->\r
252 <xs:element minOccurs="0" maxOccurs="1" ref="BootModes"/>\r
253 <!-- DO NOT USE! REMOVE SystemTables in FINAL -->\r
254 <xs:element minOccurs="0" maxOccurs="1" ref="SystemTables"/>\r
255 <!-- DO NOT USE! REMOVE DataHubs in FINAL -->\r
256 <xs:element minOccurs="0" maxOccurs="1" ref="DataHubs"/>\r
257 <!-- DO NOT USE! REMOVE Formsets in FINAL -->\r
258 <xs:element minOccurs="0" maxOccurs="1" ref="Formsets"/>\r
259 <!-- DO NOT USE! REMOVE Guids in FINAL -->\r
260 <xs:element minOccurs="0" maxOccurs="1" ref="Guids"/>\r
261 <!-- EXTERNS stays in FINAL -->\r
878ddf1f 262 <xs:element minOccurs="0" maxOccurs="1" ref="Externs"/>\r
e4ecc06e 263 <xs:choice>\r
264 <!-- DO NOT USE! REMOVE PcdBuildDeclarations in FINAL -->\r
265 <xs:element minOccurs="0" maxOccurs="1" ref="PcdBuildDeclarations"/>\r
266 <!-- PcdBuildDefinition stays in FINAL -->\r
267 <xs:element minOccurs="0" maxOccurs="1" ref="PcdBuildDefinition"/>\r
268 </xs:choice>\r
269 <!-- BuildOptions stays in FINAL -->\r
f23ffa8e 270 <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>\r
878ddf1f 271 </xs:sequence>\r
272 <xs:attributeGroup ref="MsaAttributes"/>\r
273 </xs:complexType>\r
274 </xs:element>\r
275 <xs:element name="NameValue">\r
276 <xs:complexType>\r
277 <xs:simpleContent>\r
278 <xs:extension base="xs:string">\r
279 <xs:attribute name="Name" type="xs:string" use="required"/>\r
280 <xs:attribute name="Value" type="xs:string" use="required"/>\r
281 </xs:extension>\r
282 </xs:simpleContent>\r
283 </xs:complexType>\r
284 </xs:element>\r
285 <xs:element name="Overrides">\r
2558d455 286 <xs:annotation>\r
287 <xs:documentation xml:lang="en">DO NOT USE! - Removing this from Schema</xs:documentation>\r
288 </xs:annotation>\r
878ddf1f 289 <xs:complexType>\r
290 <xs:sequence>\r
291 <xs:element minOccurs="0" maxOccurs="1" ref="FlashDeviceOverrideInfo"/>\r
292 <xs:element minOccurs="0" maxOccurs="1" ref="FlashDeviceOverrideImage"/>\r
293 </xs:sequence>\r
294 </xs:complexType>\r
295 </xs:element>\r
296 <xs:element name="PlatformDescriptions">\r
2558d455 297 <xs:annotation>\r
298 <xs:documentation xml:lang="en">DO NOT USE! - Use PlatformList instead</xs:documentation>\r
299 </xs:annotation>\r
300 <xs:complexType>\r
301 <xs:sequence maxOccurs="unbounded">\r
302 <xs:element ref="Platform"/>\r
303 </xs:sequence>\r
304 </xs:complexType>\r
305 </xs:element>\r
306 <xs:element name="PlatformList">\r
307 <xs:annotation>\r
308 <xs:documentation xml:lang="en">This is used in the Framework Database file</xs:documentation>\r
309 </xs:annotation>\r
878ddf1f 310 <xs:complexType>\r
311 <xs:sequence maxOccurs="unbounded">\r
312 <xs:element ref="Platform"/>\r
313 </xs:sequence>\r
314 </xs:complexType>\r
315 </xs:element>\r
2558d455 316 <xs:element name="FrameworkModules">\r
317 <xs:annotation>\r
318 <xs:documentation xml:lang="en">This is used in a Framework Platform Description (FPD) file</xs:documentation>\r
319 </xs:annotation>\r
320 <xs:complexType>\r
321 <xs:sequence>\r
322 <xs:element minOccurs="0" maxOccurs="1" name="SEC" type="Components"/>\r
323 <xs:element minOccurs="0" maxOccurs="1" name="PEI_CORE" type="Components"/>\r
324 <xs:element minOccurs="0" maxOccurs="1" name="PEIM" type="Components"/>\r
325 <xs:element minOccurs="0" maxOccurs="1" name="DXE_CORE" type="Components"/>\r
326 <xs:element minOccurs="0" maxOccurs="1" name="DXE_DRIVERS" type="Components"/>\r
327 <xs:element minOccurs="0" maxOccurs="1" name="OTHER_COMPONENTS" type="Components"/>\r
328 </xs:sequence>\r
329 </xs:complexType>\r
330 </xs:element>\r
878ddf1f 331 <xs:element name="TianoImage">\r
332 <xs:annotation>\r
2558d455 333 <xs:documentation xml:lang="en">DO NOT USE - Use FrameworkModules Instead.</xs:documentation>\r
878ddf1f 334 </xs:annotation>\r
335 <xs:complexType>\r
336 <xs:sequence>\r
4895d0f0 337 <xs:element minOccurs="0" maxOccurs="1" name="SEC" type="Components"/>\r
338 <xs:element minOccurs="0" maxOccurs="1" name="PEI_CORE" type="Components"/>\r
339 <xs:element minOccurs="0" maxOccurs="1" name="PEIM" type="Components"/>\r
340 <xs:element minOccurs="0" maxOccurs="1" name="DXE_CORE" type="Components"/>\r
341 <xs:element minOccurs="0" maxOccurs="1" name="DXE_DRIVERS" type="Components"/>\r
878ddf1f 342 <xs:element minOccurs="0" maxOccurs="1" name="OTHER_COMPONENTS" type="Components"/>\r
343 </xs:sequence>\r
344 </xs:complexType>\r
345 </xs:element>\r
346 <xs:simpleType name="EfiFvAttributeType">\r
347 <xs:annotation>\r
348 <xs:documentation xml:lang="en">The list of EFI_FLASH_AREA Attributes</xs:documentation>\r
349 </xs:annotation>\r
350 <xs:restriction base="UCNameType">\r
351 <xs:enumeration value="EFI_FLASH_AREA_FV"/>\r
352 <xs:enumeration value="EFI_FLASH_AREA_MEMMAPPED_FV"/>\r
353 <xs:enumeration value="EFI_FLASH_AREA_SUBFV"/>\r
354 </xs:restriction>\r
355 </xs:simpleType>\r
356 <xs:simpleType name="EfiFvAreaType">\r
357 <xs:annotation>\r
358 <xs:documentation xml:lang="en">The list of valid EFI Area Types</xs:documentation>\r
359 </xs:annotation>\r
360 <xs:restriction base="UCNameType">\r
361 <xs:enumeration value="EFI_FLASH_AREA_EFI_VARIABLES"/>\r
362 <xs:enumeration value="EFI_FLASH_AREA_UNUSED"/>\r
363 <xs:enumeration value="EFI_FLASH_AREA_MAIN_BIOS"/>\r
364 <xs:enumeration value="EFI_FLASH_AREA_GUID_DEFINED"/>\r
365 <xs:enumeration value="EFI_FLASH_AREA_FTW_STATE"/>\r
366 <xs:enumeration value="EFI_FLASH_AREA_FTW_BACKUP"/>\r
367 <xs:enumeration value="EFI_FLASH_AREA_RECOVERY_BIOS"/>\r
368 </xs:restriction>\r
369 </xs:simpleType>\r
370 <xs:simpleType name="EfiNameGuidType">\r
371 <xs:annotation>\r
372 <xs:documentation xml:lang="en">Right now, only EFI_FLASH_MAP_HOB_GUID is defined</xs:documentation>\r
373 </xs:annotation>\r
374 <xs:restriction base="UCNameType">\r
375 <xs:enumeration value="EFI_FLASH_MAP_HOB_GUID"/>\r
376 </xs:restriction>\r
377 </xs:simpleType>\r
378 <xs:simpleType name="FlashSize">\r
379 <xs:restriction base="xs:string">\r
380 <xs:enumeration value="256KB"/>\r
381 <xs:enumeration value="512KB"/>\r
382 <xs:enumeration value="1MB"/>\r
383 <xs:enumeration value="2MB"/>\r
384 <xs:enumeration value="4MB"/>\r
385 </xs:restriction>\r
386 </xs:simpleType>\r
fb6d4eb2 387 <xs:simpleType name="FvImageTypes">\r
388 <xs:restriction base="xs:NCName">\r
389 <xs:enumeration value="Attributes"/>\r
390 <xs:enumeration value="Options"/>\r
391 <xs:enumeration value="Components"/>\r
0a94a7d9 392 <xs:enumeration value="ValidImageNames"/>\r
fb6d4eb2 393 </xs:restriction>\r
394 </xs:simpleType>\r
878ddf1f 395 <xs:simpleType name="FvSubRegionTypes">\r
396 <xs:restriction base="UCNameType">\r
397 <xs:enumeration value="NV_VARIABLE_STORE"/>\r
398 <xs:enumeration value="MICROCODE"/>\r
399 <xs:enumeration value="NV_FTW_WORKING"/>\r
400 </xs:restriction>\r
401 </xs:simpleType>\r
402 <xs:complexType name="Components">\r
403 <xs:sequence minOccurs="1" maxOccurs="unbounded">\r
404 <xs:element ref="ModuleSA"/>\r
405 </xs:sequence>\r
406 </xs:complexType>\r
407 <xs:complexType name="FlashData">\r
408 <xs:sequence>\r
409 <xs:element minOccurs="0" maxOccurs="unbounded" name="UserDefinedFvRegion" type="NameConvention"/>\r
410 <xs:choice minOccurs="0" maxOccurs="1">\r
411 <xs:sequence>\r
412 <xs:element minOccurs="1" maxOccurs="1" ref="FlashDeviceInfo"/>\r
413 <xs:element minOccurs="1" maxOccurs="1" ref="FlashDeviceImage"/>\r
414 </xs:sequence>\r
415 </xs:choice>\r
416 <xs:element minOccurs="0" maxOccurs="1" ref="Overrides"/>\r
417 </xs:sequence>\r
418 </xs:complexType>\r
419 <xs:complexType name="FvImageFileType">\r
420 <xs:sequence>\r
421 <xs:element minOccurs="1" maxOccurs="1" name="Name" type="FileNameConvention"/>\r
422 <xs:element minOccurs="1" maxOccurs="1" name="Region" type="FvRegionTypes"/>\r
423 <xs:element minOccurs="1" maxOccurs="unbounded" name="RawData" type="RawDataType"/>\r
424 </xs:sequence>\r
425 </xs:complexType>\r
426 <xs:complexType name="FvImageOverrideFileType">\r
427 <xs:sequence>\r
428 <xs:element minOccurs="0" maxOccurs="1" name="Name" type="FileNameConvention"/>\r
429 <xs:element minOccurs="0" maxOccurs="1" name="Region" type="FvRegionTypes"/>\r
430 <xs:element minOccurs="0" maxOccurs="1" name="UserDefinedFvRegion" type="NameConvention"/>\r
431 <xs:element minOccurs="0" maxOccurs="unbounded" name="RawData" type="RawDataType"/>\r
432 </xs:sequence>\r
433 </xs:complexType>\r
434 <xs:complexType name="RawDataType">\r
435 <xs:sequence>\r
436 <xs:element minOccurs="1" maxOccurs="1" name="Name" type="NameConvention"/>\r
437 <xs:element minOccurs="0" maxOccurs="1" name="Region" type="FvRegionTypes"/>\r
438 <xs:element minOccurs="0" maxOccurs="1" name="UserDefinedFvRegion" type="NameConvention"/>\r
439 <xs:element minOccurs="1" maxOccurs="1" name="SubRegion" type="FvSubRegionTypes"/>\r
440 <xs:element minOccurs="1" maxOccurs="1" name="Data" type="HexDataType"/>\r
441 </xs:sequence>\r
442 </xs:complexType>\r
443 <xs:complexType name="RegionDataType">\r
444 <xs:annotation>\r
445 <xs:documentation xml:lang="en">Define the regions and their uses for the device</xs:documentation>\r
446 </xs:annotation>\r
447 <xs:sequence>\r
448 <xs:element minOccurs="1" maxOccurs="1" name="Name" type="UCNameType"/>\r
449 <xs:element minOccurs="1" maxOccurs="1" name="Size" type="HexAddressType"/>\r
450 <xs:element minOccurs="1" maxOccurs="unbounded" name="Attributes" type="EfiFvAttributeType"/>\r
451 <xs:element minOccurs="1" maxOccurs="1" name="AreaType" type="EfiFvAreaType"/>\r
452 <xs:element minOccurs="0" maxOccurs="unbounded" name="SubRegion" type="SubRegionType"/>\r
453 </xs:sequence>\r
454 </xs:complexType>\r
455 <xs:complexType name="SubRegionType">\r
456 <xs:annotation>\r
457 <xs:documentation xml:lang="en">Define the regions and their uses for the device</xs:documentation>\r
458 </xs:annotation>\r
459 <xs:sequence>\r
460 <xs:element default="true" minOccurs="1" maxOccurs="1" name="CreateHob" type="xs:boolean"/>\r
461 <xs:element minOccurs="1" maxOccurs="1" name="Name" type="UCNameType"/>\r
462 <xs:element minOccurs="1" maxOccurs="1" name="Size" type="HexAddressType"/>\r
463 <xs:element minOccurs="1" maxOccurs="unbounded" name="Attributes" type="EfiFvAttributeType"/>\r
464 <xs:element minOccurs="1" maxOccurs="1" name="AreaType" type="EfiFvAreaType"/>\r
465 <xs:element minOccurs="1" maxOccurs="1" name="NameGuid" type="EfiNameGuidType"/>\r
466 </xs:sequence>\r
467 </xs:complexType>\r
818de870 468 <xs:attributeGroup name="BlockAttributes">\r
469 <xs:attribute name="Name" type="BlockNameType" use="required"/>\r
470 <xs:attribute name="Size" type="HexAddressType" use="required"/>\r
471 <xs:attribute name="Flags" type="HexAddressType" use="optional"/>\r
472 </xs:attributeGroup>\r
473 <xs:attributeGroup name="FlashDeviceImageAttributes">\r
474 <xs:attribute name="Name" type="xs:string" use="required"/>\r
475 </xs:attributeGroup>\r
476 <xs:attributeGroup name="FlashDeviceImageFileAttributes">\r
477 <xs:attribute name="Name" type="xs:string" use="required"/>\r
478 <xs:attribute name="Region" type="xs:string" use="required"/>\r
479 <xs:attribute name="SubRegion" type="xs:string" use="optional"/>\r
480 <xs:attribute name="Optional" type="xs:boolean" use="optional"/>\r
481 </xs:attributeGroup>\r
482 <xs:attributeGroup name="FlashDeviceInfoAttributes">\r
483 <xs:attribute name="Name" type="xs:string" use="required"/>\r
484 <xs:attribute name="Size" type="HexAddressType" use="required"/>\r
485 <xs:attribute name="BaseAddress" type="HexAddressType" use="required"/>\r
92e805e9 486 <xs:attribute name="ErasePolarity" type="Polarity" use="required"/>\r
818de870 487 </xs:attributeGroup>\r
488 <xs:attributeGroup name="RawDataAttributes">\r
489 <xs:attribute name="Name" type="xs:string" use="required"/>\r
490 <xs:attribute name="Region" type="xs:string" use="required"/>\r
491 <xs:attribute name="SubRegion" type="xs:string" use="required"/>\r
492 </xs:attributeGroup>\r
493 <xs:attributeGroup name="RegionAttributes">\r
494 <xs:attribute name="Name" type="xs:string" use="required"/>\r
495 <xs:attribute name="Size" type="HexAddressType" use="required"/>\r
496 <xs:attribute name="Flags" type="HexAddressType" use="optional"/>\r
497 <xs:attribute name="Alignment" type="HexAddressType" use="optional"/>\r
498 <xs:attribute name="Attributes" type="xs:string" use="required"/>\r
499 <xs:attribute name="AreaType" type="EfiFvAreaType" use="required"/>\r
500 </xs:attributeGroup>\r
501 <xs:attributeGroup name="SubRegionAttributes">\r
502 <xs:attribute name="CreateHob" type="xs:boolean" use="required"/>\r
503 <xs:attribute name="Name" type="xs:string" use="required"/>\r
504 <xs:attribute name="Size" type="HexAddressType" use="required"/>\r
505 <xs:attribute name="Attributes" type="xs:string" use="required"/>\r
506 <xs:attribute name="AreaType" type="EfiFvAreaType" use="required"/>\r
507 <xs:attribute name="NameGuid" type="xs:string" use="required"/>\r
508 <xs:attribute name="AreaTypeGuid" type="xs:string" use="optional"/>\r
509 <xs:attribute name="FileSystemGuid" type="xs:string" use="optional"/>\r
510 </xs:attributeGroup>\r
878ddf1f 511</xs:schema>\r