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