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