Added More Comments and started doing data type checking so that if a ModuleName...
[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
77 <xs:element minOccurs="0" maxOccurs="unbounded" ref="FvImages"/>\r
78 <xs:element minOccurs="0" maxOccurs="unbounded" ref="Capsules"/>\r
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
f23ffa8e 235 <xs:element minOccurs="0" maxOccurs="1" ref="SourceFiles"/> <!-- DO NOT USE! REMOVE in FINAL -->\r
236 <xs:element minOccurs="0" maxOccurs="1" ref="Includes"/> <!-- DO NOT USE! REMOVE in FINAL -->\r
878ddf1f 237 <xs:element minOccurs="0" maxOccurs="1" ref="Libraries"/>\r
f23ffa8e 238 <xs:element minOccurs="0" maxOccurs="1" ref="Protocols"/> <!-- DO NOT USE! REMOVE in FINAL -->\r
239 <xs:element minOccurs="0" maxOccurs="1" ref="Events"/> <!-- DO NOT USE! REMOVE in FINAL -->\r
240 <xs:element minOccurs="0" maxOccurs="1" ref="Hobs"/> <!-- DO NOT USE! REMOVE in FINAL -->\r
241 <xs:element minOccurs="0" maxOccurs="1" ref="PPIs"/> <!-- DO NOT USE! REMOVE in FINAL -->\r
242 <xs:element minOccurs="0" maxOccurs="1" ref="Variables"/> <!-- DO NOT USE! REMOVE in FINAL -->\r
243 <xs:element minOccurs="0" maxOccurs="1" ref="BootModes"/> <!-- DO NOT USE! REMOVE in FINAL -->\r
244 <xs:element minOccurs="0" maxOccurs="1" ref="SystemTables"/> <!-- DO NOT USE! REMOVE in FINAL -->\r
245 <xs:element minOccurs="0" maxOccurs="1" ref="DataHubs"/> <!-- DO NOT USE! REMOVE in FINAL -->\r
246 <xs:element minOccurs="0" maxOccurs="1" ref="Formsets"/> <!-- DO NOT USE! REMOVE in FINAL -->\r
247 <xs:element minOccurs="0" maxOccurs="1" ref="Guids"/> <!-- DO NOT USE! REMOVE in FINAL -->\r
878ddf1f 248 <xs:element minOccurs="0" maxOccurs="1" ref="Externs"/>\r
f23ffa8e 249 <xs:element minOccurs="0" maxOccurs="1" ref="PcdBuildDeclarations"/>\r
250 <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>\r
878ddf1f 251 </xs:sequence>\r
252 <xs:attributeGroup ref="MsaAttributes"/>\r
253 </xs:complexType>\r
254 </xs:element>\r
255 <xs:element name="NameValue">\r
256 <xs:complexType>\r
257 <xs:simpleContent>\r
258 <xs:extension base="xs:string">\r
259 <xs:attribute name="Name" type="xs:string" use="required"/>\r
260 <xs:attribute name="Value" type="xs:string" use="required"/>\r
261 </xs:extension>\r
262 </xs:simpleContent>\r
263 </xs:complexType>\r
264 </xs:element>\r
265 <xs:element name="Overrides">\r
2558d455 266 <xs:annotation>\r
267 <xs:documentation xml:lang="en">DO NOT USE! - Removing this from Schema</xs:documentation>\r
268 </xs:annotation>\r
878ddf1f 269 <xs:complexType>\r
270 <xs:sequence>\r
271 <xs:element minOccurs="0" maxOccurs="1" ref="FlashDeviceOverrideInfo"/>\r
272 <xs:element minOccurs="0" maxOccurs="1" ref="FlashDeviceOverrideImage"/>\r
273 </xs:sequence>\r
274 </xs:complexType>\r
275 </xs:element>\r
276 <xs:element name="PlatformDescriptions">\r
2558d455 277 <xs:annotation>\r
278 <xs:documentation xml:lang="en">DO NOT USE! - Use PlatformList instead</xs:documentation>\r
279 </xs:annotation>\r
280 <xs:complexType>\r
281 <xs:sequence maxOccurs="unbounded">\r
282 <xs:element ref="Platform"/>\r
283 </xs:sequence>\r
284 </xs:complexType>\r
285 </xs:element>\r
286 <xs:element name="PlatformList">\r
287 <xs:annotation>\r
288 <xs:documentation xml:lang="en">This is used in the Framework Database file</xs:documentation>\r
289 </xs:annotation>\r
878ddf1f 290 <xs:complexType>\r
291 <xs:sequence maxOccurs="unbounded">\r
292 <xs:element ref="Platform"/>\r
293 </xs:sequence>\r
294 </xs:complexType>\r
295 </xs:element>\r
2558d455 296 <xs:element name="FrameworkModules">\r
297 <xs:annotation>\r
298 <xs:documentation xml:lang="en">This is used in a Framework Platform Description (FPD) file</xs:documentation>\r
299 </xs:annotation>\r
300 <xs:complexType>\r
301 <xs:sequence>\r
302 <xs:element minOccurs="0" maxOccurs="1" name="SEC" type="Components"/>\r
303 <xs:element minOccurs="0" maxOccurs="1" name="PEI_CORE" type="Components"/>\r
304 <xs:element minOccurs="0" maxOccurs="1" name="PEIM" type="Components"/>\r
305 <xs:element minOccurs="0" maxOccurs="1" name="DXE_CORE" type="Components"/>\r
306 <xs:element minOccurs="0" maxOccurs="1" name="DXE_DRIVERS" type="Components"/>\r
307 <xs:element minOccurs="0" maxOccurs="1" name="OTHER_COMPONENTS" type="Components"/>\r
308 </xs:sequence>\r
309 </xs:complexType>\r
310 </xs:element>\r
878ddf1f 311 <xs:element name="TianoImage">\r
312 <xs:annotation>\r
2558d455 313 <xs:documentation xml:lang="en">DO NOT USE - Use FrameworkModules Instead.</xs:documentation>\r
878ddf1f 314 </xs:annotation>\r
315 <xs:complexType>\r
316 <xs:sequence>\r
4895d0f0 317 <xs:element minOccurs="0" maxOccurs="1" name="SEC" type="Components"/>\r
318 <xs:element minOccurs="0" maxOccurs="1" name="PEI_CORE" type="Components"/>\r
319 <xs:element minOccurs="0" maxOccurs="1" name="PEIM" type="Components"/>\r
320 <xs:element minOccurs="0" maxOccurs="1" name="DXE_CORE" type="Components"/>\r
321 <xs:element minOccurs="0" maxOccurs="1" name="DXE_DRIVERS" type="Components"/>\r
878ddf1f 322 <xs:element minOccurs="0" maxOccurs="1" name="OTHER_COMPONENTS" type="Components"/>\r
323 </xs:sequence>\r
324 </xs:complexType>\r
325 </xs:element>\r
326 <xs:simpleType name="EfiFvAttributeType">\r
327 <xs:annotation>\r
328 <xs:documentation xml:lang="en">The list of EFI_FLASH_AREA Attributes</xs:documentation>\r
329 </xs:annotation>\r
330 <xs:restriction base="UCNameType">\r
331 <xs:enumeration value="EFI_FLASH_AREA_FV"/>\r
332 <xs:enumeration value="EFI_FLASH_AREA_MEMMAPPED_FV"/>\r
333 <xs:enumeration value="EFI_FLASH_AREA_SUBFV"/>\r
334 </xs:restriction>\r
335 </xs:simpleType>\r
336 <xs:simpleType name="EfiFvAreaType">\r
337 <xs:annotation>\r
338 <xs:documentation xml:lang="en">The list of valid EFI Area Types</xs:documentation>\r
339 </xs:annotation>\r
340 <xs:restriction base="UCNameType">\r
341 <xs:enumeration value="EFI_FLASH_AREA_EFI_VARIABLES"/>\r
342 <xs:enumeration value="EFI_FLASH_AREA_UNUSED"/>\r
343 <xs:enumeration value="EFI_FLASH_AREA_MAIN_BIOS"/>\r
344 <xs:enumeration value="EFI_FLASH_AREA_GUID_DEFINED"/>\r
345 <xs:enumeration value="EFI_FLASH_AREA_FTW_STATE"/>\r
346 <xs:enumeration value="EFI_FLASH_AREA_FTW_BACKUP"/>\r
347 <xs:enumeration value="EFI_FLASH_AREA_RECOVERY_BIOS"/>\r
348 </xs:restriction>\r
349 </xs:simpleType>\r
350 <xs:simpleType name="EfiNameGuidType">\r
351 <xs:annotation>\r
352 <xs:documentation xml:lang="en">Right now, only EFI_FLASH_MAP_HOB_GUID is defined</xs:documentation>\r
353 </xs:annotation>\r
354 <xs:restriction base="UCNameType">\r
355 <xs:enumeration value="EFI_FLASH_MAP_HOB_GUID"/>\r
356 </xs:restriction>\r
357 </xs:simpleType>\r
358 <xs:simpleType name="FlashSize">\r
359 <xs:restriction base="xs:string">\r
360 <xs:enumeration value="256KB"/>\r
361 <xs:enumeration value="512KB"/>\r
362 <xs:enumeration value="1MB"/>\r
363 <xs:enumeration value="2MB"/>\r
364 <xs:enumeration value="4MB"/>\r
365 </xs:restriction>\r
366 </xs:simpleType>\r
fb6d4eb2 367 <xs:simpleType name="FvImageTypes">\r
368 <xs:restriction base="xs:NCName">\r
369 <xs:enumeration value="Attributes"/>\r
370 <xs:enumeration value="Options"/>\r
371 <xs:enumeration value="Components"/>\r
0a94a7d9 372 <xs:enumeration value="ValidImageNames"/>\r
fb6d4eb2 373 </xs:restriction>\r
374 </xs:simpleType>\r
878ddf1f 375 <xs:simpleType name="FvSubRegionTypes">\r
376 <xs:restriction base="UCNameType">\r
377 <xs:enumeration value="NV_VARIABLE_STORE"/>\r
378 <xs:enumeration value="MICROCODE"/>\r
379 <xs:enumeration value="NV_FTW_WORKING"/>\r
380 </xs:restriction>\r
381 </xs:simpleType>\r
382 <xs:complexType name="Components">\r
383 <xs:sequence minOccurs="1" maxOccurs="unbounded">\r
384 <xs:element ref="ModuleSA"/>\r
385 </xs:sequence>\r
386 </xs:complexType>\r
387 <xs:complexType name="FlashData">\r
388 <xs:sequence>\r
389 <xs:element minOccurs="0" maxOccurs="unbounded" name="UserDefinedFvRegion" type="NameConvention"/>\r
390 <xs:choice minOccurs="0" maxOccurs="1">\r
391 <xs:sequence>\r
392 <xs:element minOccurs="1" maxOccurs="1" ref="FlashDeviceInfo"/>\r
393 <xs:element minOccurs="1" maxOccurs="1" ref="FlashDeviceImage"/>\r
394 </xs:sequence>\r
395 </xs:choice>\r
396 <xs:element minOccurs="0" maxOccurs="1" ref="Overrides"/>\r
397 </xs:sequence>\r
398 </xs:complexType>\r
399 <xs:complexType name="FvImageFileType">\r
400 <xs:sequence>\r
401 <xs:element minOccurs="1" maxOccurs="1" name="Name" type="FileNameConvention"/>\r
402 <xs:element minOccurs="1" maxOccurs="1" name="Region" type="FvRegionTypes"/>\r
403 <xs:element minOccurs="1" maxOccurs="unbounded" name="RawData" type="RawDataType"/>\r
404 </xs:sequence>\r
405 </xs:complexType>\r
406 <xs:complexType name="FvImageOverrideFileType">\r
407 <xs:sequence>\r
408 <xs:element minOccurs="0" maxOccurs="1" name="Name" type="FileNameConvention"/>\r
409 <xs:element minOccurs="0" maxOccurs="1" name="Region" type="FvRegionTypes"/>\r
410 <xs:element minOccurs="0" maxOccurs="1" name="UserDefinedFvRegion" type="NameConvention"/>\r
411 <xs:element minOccurs="0" maxOccurs="unbounded" name="RawData" type="RawDataType"/>\r
412 </xs:sequence>\r
413 </xs:complexType>\r
414 <xs:complexType name="RawDataType">\r
415 <xs:sequence>\r
416 <xs:element minOccurs="1" maxOccurs="1" name="Name" type="NameConvention"/>\r
417 <xs:element minOccurs="0" maxOccurs="1" name="Region" type="FvRegionTypes"/>\r
418 <xs:element minOccurs="0" maxOccurs="1" name="UserDefinedFvRegion" type="NameConvention"/>\r
419 <xs:element minOccurs="1" maxOccurs="1" name="SubRegion" type="FvSubRegionTypes"/>\r
420 <xs:element minOccurs="1" maxOccurs="1" name="Data" type="HexDataType"/>\r
421 </xs:sequence>\r
422 </xs:complexType>\r
423 <xs:complexType name="RegionDataType">\r
424 <xs:annotation>\r
425 <xs:documentation xml:lang="en">Define the regions and their uses for the device</xs:documentation>\r
426 </xs:annotation>\r
427 <xs:sequence>\r
428 <xs:element minOccurs="1" maxOccurs="1" name="Name" type="UCNameType"/>\r
429 <xs:element minOccurs="1" maxOccurs="1" name="Size" type="HexAddressType"/>\r
430 <xs:element minOccurs="1" maxOccurs="unbounded" name="Attributes" type="EfiFvAttributeType"/>\r
431 <xs:element minOccurs="1" maxOccurs="1" name="AreaType" type="EfiFvAreaType"/>\r
432 <xs:element minOccurs="0" maxOccurs="unbounded" name="SubRegion" type="SubRegionType"/>\r
433 </xs:sequence>\r
434 </xs:complexType>\r
435 <xs:complexType name="SubRegionType">\r
436 <xs:annotation>\r
437 <xs:documentation xml:lang="en">Define the regions and their uses for the device</xs:documentation>\r
438 </xs:annotation>\r
439 <xs:sequence>\r
440 <xs:element default="true" minOccurs="1" maxOccurs="1" name="CreateHob" type="xs:boolean"/>\r
441 <xs:element minOccurs="1" maxOccurs="1" name="Name" type="UCNameType"/>\r
442 <xs:element minOccurs="1" maxOccurs="1" name="Size" type="HexAddressType"/>\r
443 <xs:element minOccurs="1" maxOccurs="unbounded" name="Attributes" type="EfiFvAttributeType"/>\r
444 <xs:element minOccurs="1" maxOccurs="1" name="AreaType" type="EfiFvAreaType"/>\r
445 <xs:element minOccurs="1" maxOccurs="1" name="NameGuid" type="EfiNameGuidType"/>\r
446 </xs:sequence>\r
447 </xs:complexType>\r
818de870 448 <xs:attributeGroup name="BlockAttributes">\r
449 <xs:attribute name="Name" type="BlockNameType" use="required"/>\r
450 <xs:attribute name="Size" type="HexAddressType" use="required"/>\r
451 <xs:attribute name="Flags" type="HexAddressType" use="optional"/>\r
452 </xs:attributeGroup>\r
453 <xs:attributeGroup name="FlashDeviceImageAttributes">\r
454 <xs:attribute name="Name" type="xs:string" use="required"/>\r
455 </xs:attributeGroup>\r
456 <xs:attributeGroup name="FlashDeviceImageFileAttributes">\r
457 <xs:attribute name="Name" type="xs:string" use="required"/>\r
458 <xs:attribute name="Region" type="xs:string" use="required"/>\r
459 <xs:attribute name="SubRegion" type="xs:string" use="optional"/>\r
460 <xs:attribute name="Optional" type="xs:boolean" use="optional"/>\r
461 </xs:attributeGroup>\r
462 <xs:attributeGroup name="FlashDeviceInfoAttributes">\r
463 <xs:attribute name="Name" type="xs:string" use="required"/>\r
464 <xs:attribute name="Size" type="HexAddressType" use="required"/>\r
465 <xs:attribute name="BaseAddress" type="HexAddressType" use="required"/>\r
92e805e9 466 <xs:attribute name="ErasePolarity" type="Polarity" use="required"/>\r
818de870 467 </xs:attributeGroup>\r
468 <xs:attributeGroup name="RawDataAttributes">\r
469 <xs:attribute name="Name" type="xs:string" use="required"/>\r
470 <xs:attribute name="Region" type="xs:string" use="required"/>\r
471 <xs:attribute name="SubRegion" type="xs:string" use="required"/>\r
472 </xs:attributeGroup>\r
473 <xs:attributeGroup name="RegionAttributes">\r
474 <xs:attribute name="Name" type="xs:string" use="required"/>\r
475 <xs:attribute name="Size" type="HexAddressType" use="required"/>\r
476 <xs:attribute name="Flags" type="HexAddressType" use="optional"/>\r
477 <xs:attribute name="Alignment" type="HexAddressType" use="optional"/>\r
478 <xs:attribute name="Attributes" type="xs:string" use="required"/>\r
479 <xs:attribute name="AreaType" type="EfiFvAreaType" use="required"/>\r
480 </xs:attributeGroup>\r
481 <xs:attributeGroup name="SubRegionAttributes">\r
482 <xs:attribute name="CreateHob" type="xs:boolean" use="required"/>\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="Attributes" type="xs:string" use="required"/>\r
486 <xs:attribute name="AreaType" type="EfiFvAreaType" use="required"/>\r
487 <xs:attribute name="NameGuid" type="xs:string" use="required"/>\r
488 <xs:attribute name="AreaTypeGuid" type="xs:string" use="optional"/>\r
489 <xs:attribute name="FileSystemGuid" type="xs:string" use="optional"/>\r
490 </xs:attributeGroup>\r
878ddf1f 491</xs:schema>\r