359af815ace29db75e4c4b282b9cfbfd9d04bfcd
[mirror_edk2.git] / Tools / XMLSchema / FrameworkDataElements.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: FrameworkDataElements.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 Data Elements </xs:documentation>
17 </xs:annotation>
18 <xs:include schemaLocation="NamingConvention.xsd"/>
19 <xs:include schemaLocation="FrameworkDataTypes.xsd"/>
20 <xs:include schemaLocation="FrameworkPlatformDataTypes.xsd"/>
21 <xs:include schemaLocation="FrameworkDataAttributes.xsd"/>
22 <xs:element name="Abstract">
23 <xs:annotation>
24 <xs:documentation xml:lang="en">Abstract is valid for all Description Files</xs:documentation>
25 <xs:documentation xml:lang="en">This section is required. This is a single sentence to describe the module and will be used in sample files as the abstract data in the header comment section.</xs:documentation>
26 </xs:annotation>
27 <xs:complexType>
28 <xs:simpleContent>
29 <xs:extension base="Sentence">
30 <xs:attribute name="URL" type="xs:anyURI" use="optional"/>
31 </xs:extension>
32 </xs:simpleContent>
33 </xs:complexType>
34 </xs:element>
35 <xs:element name="AntCmd">
36 <xs:annotation>
37 <xs:documentation xml:lang="en">This is a sub-element of AntTask</xs:documentation>
38 <xs:documentation xml:lang="en">This is an ant command that will be inserted into a biuld sequence. Since ant commands are valid XML statements, special care must be taken to use the correct tokens for reserved words and escape quote characters.</xs:documentation>
39 </xs:annotation>
40 <xs:complexType>
41 <xs:sequence>
42 <xs:element minOccurs="0" name="Id" type="xs:int"/>
43 <xs:element name="ExecutionOrder">
44 <xs:simpleType>
45 <xs:list itemType="xs:normalizedString"/>
46 </xs:simpleType>
47 </xs:element>
48 </xs:sequence>
49 <xs:attributeGroup ref="SectionAttributes"/>
50 </xs:complexType>
51 </xs:element>
52 <xs:element name="AntTask">
53 <xs:annotation>
54 <xs:documentation xml:lang="en">This is a sub-element of UserDefinedAntTasks</xs:documentation>
55 <xs:documentation xml:lang="en">Define a file that contains one or more ant tasks that are to be added into or replacing of sequences of build steps. These files will be called using the ant-call task on a file name. These files must be valid apache-ant formatted task files.</xs:documentation>
56 </xs:annotation>
57 <xs:complexType>
58 <xs:choice>
59 <xs:element ref="AntCmd"/>
60 <xs:element ref="Filename"/>
61 </xs:choice>
62 <xs:attribute name="Id" type="xs:int" use="required"/>
63 </xs:complexType>
64 </xs:element>
65 <xs:element name="BaseName">
66 <xs:annotation>
67 <xs:documentation xml:lang="en">BaseName is valid for all Description Files</xs:documentation>
68 <xs:documentation xml:lang="en"> We need to be able to permit different attributes for every basename </xs:documentation>
69 </xs:annotation>
70 <xs:complexType>
71 <xs:simpleContent>
72 <xs:extension base="BaseNameConvention">
73 <xs:attributeGroup ref="BaseNameAttributes"/>
74 </xs:extension>
75 </xs:simpleContent>
76 </xs:complexType>
77 </xs:element>
78 <xs:element name="BootModes">
79 <xs:annotation>
80 <xs:documentation xml:lang="en">BootModes is valid for all Description Files</xs:documentation>
81 <xs:documentation xml:lang="en">This is a list of BootModes Supported by the Module</xs:documentation>
82 </xs:annotation>
83 <xs:complexType>
84 <xs:sequence minOccurs="1" maxOccurs="unbounded">
85 <xs:element name="BootMode">
86 <xs:complexType>
87 <xs:attributeGroup ref="BootModeAttributes"/>
88 </xs:complexType>
89 </xs:element>
90 </xs:sequence>
91 </xs:complexType>
92 </xs:element>
93 <xs:element name="BuildOptions">
94 <xs:annotation>
95 <xs:documentation xml:lang="en">BuildOptions is valid for MBD and FPD files.</xs:documentation>
96 <xs:documentation xml:lang="en">Specific Build Options, by Tool Chain, than should be applied, overriding any global options</xs:documentation>
97 </xs:annotation>
98 <xs:complexType>
99 <xs:sequence>
100 <xs:element minOccurs="0" maxOccurs="1" ref="UserDefinedAntTasks"/>
101 <xs:element minOccurs="0" maxOccurs="unbounded" ref="ImageEntryPoint"/>
102 <xs:element minOccurs="0" maxOccurs="1" ref="OutputDirectory"/>
103 <xs:element minOccurs="0" maxOccurs="unbounded" ref="Ffs"/>
104 <xs:element minOccurs="0" maxOccurs="1" ref="Sections"/>
105 <xs:element minOccurs="0" maxOccurs="unbounded" ref="Filenames"/>
106 <xs:element ref="Options" minOccurs="0" maxOccurs="1"/>
107 <xs:sequence minOccurs="0">
108 <xs:element minOccurs="0" maxOccurs="unbounded" name="Option">
109 <xs:complexType>
110 <xs:simpleContent>
111 <xs:extension base="xs:normalizedString">
112 <xs:attributeGroup ref="OptionAttributes"/>
113 </xs:extension>
114 </xs:simpleContent>
115 </xs:complexType>
116 </xs:element>
117 <!-- Arch element should be removed - use Arch attributes to the above instead. -->
118 <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
119 <xs:complexType>
120 <xs:sequence minOccurs="1">
121 <xs:element maxOccurs="unbounded" name="Option">
122 <xs:complexType>
123 <xs:simpleContent>
124 <xs:extension base="xs:normalizedString">
125 <xs:attributeGroup ref="OptionAttributes"/>
126 </xs:extension>
127 </xs:simpleContent>
128 </xs:complexType>
129 </xs:element>
130 </xs:sequence>
131 <xs:attribute name="ArchType" type="SupportedArchitectures"/>
132 </xs:complexType>
133 </xs:element>
134 </xs:sequence>
135 <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>
136 </xs:sequence>
137 <xs:attribute name="ToolChain" type="ToolChains"/>
138 </xs:complexType>
139 </xs:element>
140 <xs:element name="Options">
141 <xs:complexType>
142 <xs:sequence>
143 <xs:element minOccurs="1" maxOccurs="unbounded" ref="Option"/>
144 </xs:sequence>
145 </xs:complexType>
146 </xs:element>
147 <xs:element name="Option">
148 <!-- This element is used to store flags from the Tools -->
149 <xs:complexType>
150 <xs:simpleContent>
151 <xs:extension base="xs:normalizedString">
152 <xs:attributeGroup ref="OptionAttributes"/>
153 </xs:extension>
154 </xs:simpleContent>
155 </xs:complexType>
156 </xs:element>
157 <xs:element name="ModuleBuildOptions">
158 <xs:complexType>
159 <xs:sequence>
160 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax" namespace="##local"/>
161 </xs:sequence>
162 </xs:complexType>
163 </xs:element>
164 <xs:element name="ModuleSaBuildOptions">
165 <xs:complexType>
166 <xs:sequence>
167 <xs:element minOccurs="0" maxOccurs="1" name="FvBinding" type="FfsNameType"/>
168 <!-- The FfsFileNameGuid allows the Platform Integrator to specify a GUID for the FFS File Name GUID -->
169 <xs:element minOccurs="0" maxOccurs="1" name="FfsFileNameGuid" type="GuidType"/>
170 <!-- If binding is specified, you MUST specify the FfsFormatKey -->
171 <xs:element minOccurs="0" maxOccurs="1" name="FfsFormatKey" type="FfsNameType"/>
172 <xs:element minOccurs="0" maxOccurs="1" ref="Options"/>
173 </xs:sequence>
174 </xs:complexType>
175 </xs:element>
176 <xs:element name="ModuleDefinitions">
177 <xs:complexType>
178 <xs:sequence>
179 <xs:element minOccurs="1" maxOccurs="1" name="SupportedArchitectures" type="ArchListType"/>
180 <xs:element minOccurs="1" maxOccurs="1" name="BinaryModule" type="xs:boolean" default="false"/>
181 <xs:element minOccurs="1" maxOccurs="1" name="OutputFileBasename" type="FileNameConvention"/>
182 </xs:sequence>
183 </xs:complexType>
184 </xs:element>
185 <xs:element name="C_Name" type="C_Name">
186 <xs:annotation>
187 <xs:documentation xml:lang="en">C_Name is valid for all Description Files</xs:documentation>
188 </xs:annotation>
189 </xs:element>
190 <xs:element name="ComponentName" type="C_Name">
191 <xs:annotation>
192 <xs:documentation xml:lang="en">ComponentName is valid for all Description Files</xs:documentation>
193 </xs:annotation>
194 </xs:element>
195 <xs:element name="ComponentType" type="FrameworkComponentTypes">
196 <xs:annotation>
197 <xs:documentation xml:lang="en">Describe the valid Framework Component Type</xs:documentation>
198 </xs:annotation>
199 </xs:element>
200 <xs:element name="ConditionalExpression">
201 <!-- DO NOT USE remove and use FeatureFlag instead -->
202 <xs:annotation>
203 <xs:documentation xml:lang="en">A conditional expression that must be evaluated to determine whether a feature is implemented or not. The expression must be either numeric, string or boolean.</xs:documentation>
204 </xs:annotation>
205 <xs:complexType>
206 <xs:sequence>
207 <xs:element minOccurs="1" maxOccurs="unbounded" name="Condition" type="xs:normalizedString"/>
208 </xs:sequence>
209 <xs:attribute name="ConditionalTarget" type="ConditionalTarget" use="optional"/>
210 </xs:complexType>
211 </xs:element>
212 <xs:element name="Constructor" type="C_Name"/>
213 <xs:element name="Copyright" type="Sentence"/>
214 <xs:element name="Created" type="DateType"/>
215 <xs:element name="CreatedDate" type="DateType"/>
216 <xs:element name="CreatedBy" type="UserName"/>
217 <xs:element name="DataHubs">
218 <xs:annotation>
219 <xs:documentation xml:lang="en">This is a list of DataHubRecord elements.</xs:documentation>
220 </xs:annotation>
221 <xs:complexType>
222 <xs:sequence minOccurs="1" maxOccurs="unbounded">
223 <xs:element name="DataHubRecord">
224 <xs:complexType>
225 <xs:simpleContent>
226 <xs:extension base="xs:normalizedString">
227 <xs:attributeGroup ref="DataHubAttributes"/>
228 </xs:extension>
229 </xs:simpleContent>
230 </xs:complexType>
231 </xs:element>
232 <!-- Remove Arch and use Arch Attribute for DataHubRecord instead. -->
233 <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
234 <xs:complexType>
235 <xs:sequence>
236 <xs:element name="DataHubRecord">
237 <xs:complexType>
238 <xs:simpleContent>
239 <xs:extension base="xs:normalizedString">
240 <xs:attributeGroup ref="DataHubAttributes"/>
241 </xs:extension>
242 </xs:simpleContent>
243 </xs:complexType>
244 </xs:element>
245 </xs:sequence>
246 <xs:attribute name="ArchType" type="SupportedArchitectures"/>
247 </xs:complexType>
248 </xs:element>
249 </xs:sequence>
250 </xs:complexType>
251 </xs:element>
252 <xs:element name="DatabaseName">
253 <xs:annotation>
254 <xs:documentation xml:lang="en">The Name of the Database, "FrameworkDatabase"</xs:documentation>
255 </xs:annotation>
256 <xs:complexType>
257 <xs:simpleContent>
258 <xs:extension base="BaseNameConvention">
259 <xs:attributeGroup ref="BaseNameAttributes"/>
260 </xs:extension>
261 </xs:simpleContent>
262 </xs:complexType>
263 </xs:element>
264 <xs:element name="DefaultValue">
265 <xs:annotation>
266 <xs:documentation xml:lang="en">The default setting of a PCD entry.</xs:documentation>
267 </xs:annotation>
268 <xs:complexType>
269 <xs:simpleContent>
270 <xs:extension base="xs:normalizedString"/>
271 </xs:simpleContent>
272 </xs:complexType>
273 </xs:element>
274 <xs:element name="Description" type="Paragraph">
275 <xs:annotation>
276 <xs:documentation xml:lang="en">This section is required for new modules and libraries and must contain more information than the Abstract.</xs:documentation>
277 </xs:annotation>
278 </xs:element>
279 <xs:element name="Destructor" type="C_Name"/>
280 <xs:element name="DriverBinding" type="C_Name"/>
281 <xs:element name="DriverConfig" type="C_Name"/>
282 <xs:element name="DriverDiag" type="C_Name"/>
283 <xs:element name="E-Mail" type="E-Mail"/>
284 <xs:element name="Events">
285 <xs:annotation>
286 <xs:documentation xml:lang="en">This is a list of MSA Events</xs:documentation>
287 </xs:annotation>
288 <xs:complexType>
289 <xs:sequence>
290 <xs:element minOccurs="0" maxOccurs="1" name="CreateEvents">
291 <xs:complexType>
292 <xs:sequence minOccurs="1" maxOccurs="unbounded">
293 <xs:element name="Event">
294 <xs:complexType>
295 <xs:sequence>
296 <xs:choice>
297 <xs:element minOccurs="0" maxOccurs="1" name="GuidC_Name" type="GuidC_NameType"/>
298 <!-- DO NOT USE, removing C_Name in final -->
299 <xs:element minOccurs="0" maxOccurs="1" ref="C_Name"/>
300 </xs:choice>
301 <!-- DO NOT USE, removing Guid and GuidValue from Final -->
302 <xs:choice minOccurs="0">
303 <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
304 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
305 </xs:choice>
306 </xs:sequence>
307 <xs:attributeGroup ref="EventAttributes"/>
308 </xs:complexType>
309 </xs:element>
310 <!-- Remove Arch Section and use Arch Attribute instead in Event. -->
311 <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
312 <xs:complexType>
313 <xs:sequence>
314 <xs:element name="Event">
315 <xs:complexType>
316 <xs:sequence>
317 <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
318 <xs:choice minOccurs="0">
319 <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
320 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
321 </xs:choice>
322 </xs:sequence>
323 <xs:attributeGroup ref="EventAttributes"/>
324 </xs:complexType>
325 </xs:element>
326 </xs:sequence>
327 <xs:attribute name="ArchType" type="SupportedArchitectures"/>
328 </xs:complexType>
329 </xs:element>
330 </xs:sequence>
331 </xs:complexType>
332 </xs:element>
333 <xs:element minOccurs="0" maxOccurs="1" name="SignalEvents">
334 <xs:annotation>
335 <xs:documentation xml:lang="en">Module has an event that is waiting to be signaled. Event is named by GUID.</xs:documentation>
336 </xs:annotation>
337 <xs:complexType>
338 <xs:sequence minOccurs="1" maxOccurs="unbounded">
339 <xs:element name="Event">
340 <xs:complexType>
341 <xs:sequence>
342 <xs:choice>
343 <xs:element minOccurs="0" maxOccurs="1" name="GuidC_Name" type="GuidC_NameType"/>
344 <!-- DO NOT USE, removing C_Name in final -->
345 <xs:element minOccurs="0" maxOccurs="1" ref="C_Name"/>
346 </xs:choice>
347 <!-- DO NOT USE, removing Guid and GuidValue from Final -->
348 <xs:choice minOccurs="0">
349 <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
350 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
351 </xs:choice>
352 </xs:sequence>
353 <xs:attributeGroup ref="EventAttributes"/>
354 </xs:complexType>
355 </xs:element>
356 <!-- Remove Arch and use Arch attribute in Event above -->
357 <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
358 <xs:complexType>
359 <xs:sequence>
360 <xs:element name="Event">
361 <xs:complexType>
362 <xs:sequence>
363 <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
364 </xs:sequence>
365 <xs:attributeGroup ref="EventAttributes"/>
366 </xs:complexType>
367 </xs:element>
368 </xs:sequence>
369 <xs:attribute name="ArchType" type="SupportedArchitectures"/>
370 </xs:complexType>
371 </xs:element>
372 </xs:sequence>
373 </xs:complexType>
374 </xs:element>
375 </xs:sequence>
376 </xs:complexType>
377 </xs:element>
378 <xs:element name="ExitBootServicesCallBack" type="C_Name"/>
379 <xs:element name="Externs">
380 <xs:annotation>
381 <xs:documentation xml:lang="en">This is a child of MSA files.</xs:documentation>
382 </xs:annotation>
383 <xs:complexType>
384 <xs:sequence minOccurs="1">
385 <xs:element minOccurs="0" maxOccurs="1" name="PcdIsDriver" type="PcdDriverTypes"/>
386 <xs:element minOccurs="0" maxOccurs="unbounded" ref="Specification"/>
387 <xs:element minOccurs="0" maxOccurs="unbounded" name="Extern">
388 <xs:complexType>
389 <xs:choice minOccurs="1">
390 <xs:sequence minOccurs="0" maxOccurs="1">
391 <xs:annotation>
392 <xs:documentation xml:lang="en">Driver Module</xs:documentation>
393 </xs:annotation>
394 <xs:element minOccurs="0" maxOccurs="unbounded" ref="ModuleEntryPoint"/>
395 <xs:element minOccurs="0" maxOccurs="unbounded" ref="ModuleUnloadImage"/>
396 </xs:sequence>
397 <xs:sequence minOccurs="0" maxOccurs="1">
398 <xs:annotation>
399 <xs:documentation xml:lang="en">Library Module</xs:documentation>
400 </xs:annotation>
401 <xs:element minOccurs="0" maxOccurs="1" ref="Constructor"/>
402 <xs:element minOccurs="0" maxOccurs="1" ref="Destructor"/>
403 </xs:sequence>
404 <xs:sequence minOccurs="0" maxOccurs="1">
405 <xs:annotation>
406 <xs:documentation xml:lang="en">Allow multiple entries for DriverBinding, ComponentName, DriverConfig and DriverDiag elements. For ComponentName, DriverConfig and/or DriverDiag - you must have a 1:1 mapping to DriverBinding if the element is defined.</xs:documentation>
407 <xs:documentation xml:lang="en">Permit User Defined Extern Tags</xs:documentation>
408 </xs:annotation>
409 <xs:element minOccurs="0" maxOccurs="unbounded" ref="DriverBinding"/>
410 <xs:element minOccurs="0" maxOccurs="unbounded" ref="ComponentName"/>
411 <xs:element minOccurs="0" maxOccurs="unbounded" ref="DriverConfig"/>
412 <xs:element minOccurs="0" maxOccurs="unbounded" ref="DriverDiag"/>
413 </xs:sequence>
414 <xs:sequence minOccurs="0" maxOccurs="1">
415 <xs:annotation>
416 <xs:documentation xml:lang="en"> Module Call Backs</xs:documentation>
417 </xs:annotation>
418 <xs:element minOccurs="0" maxOccurs="unbounded" ref="SetVirtualAddressMapCallBack"/>
419 <xs:element minOccurs="0" maxOccurs="unbounded" ref="ExitBootServicesCallBack"/>
420 </xs:sequence>
421 <xs:element minOccurs="0" maxOccurs="unbounded" name="UserDefined" type="C_Name"/>
422 </xs:choice>
423 <xs:attributeGroup ref="ExternAttributes"/>
424 </xs:complexType>
425 </xs:element>
426 <!-- Remove Arch and use Arch Attribute in above. -->
427 <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
428 <xs:complexType>
429 <xs:sequence>
430 <xs:element name="Extern">
431 <xs:complexType>
432 <xs:choice minOccurs="1">
433 <xs:sequence minOccurs="0" maxOccurs="1">
434 <xs:annotation>
435 <xs:documentation xml:lang="en">Driver Module</xs:documentation>
436 </xs:annotation>
437 <xs:element minOccurs="0" maxOccurs="unbounded" ref="ModuleEntryPoint"/>
438 <xs:element minOccurs="0" maxOccurs="unbounded" ref="ModuleUnloadImage"/>
439 </xs:sequence>
440 <xs:sequence minOccurs="0" maxOccurs="1">
441 <xs:annotation>
442 <xs:documentation xml:lang="en">Library Module</xs:documentation>
443 </xs:annotation>
444 <xs:element minOccurs="0" maxOccurs="1" ref="Constructor"/>
445 <xs:element minOccurs="0" maxOccurs="1" ref="Destructor"/>
446 </xs:sequence>
447 <xs:sequence minOccurs="0" maxOccurs="1">
448 <xs:annotation>
449 <xs:documentation xml:lang="en">Allow multiple entries for DriverBinding, ComponentName, DriverConfig and DriverDiag elements. For ComponentName, DriverConfig and/or DriverDiag - you must have a 1:1 mapping to DriverBinding if the element is defined.</xs:documentation>
450 <xs:documentation xml:lang="en">Permit User Defined Extern Tags</xs:documentation>
451 </xs:annotation>
452 <xs:element minOccurs="0" maxOccurs="unbounded" ref="DriverBinding"/>
453 <xs:element minOccurs="0" maxOccurs="unbounded" ref="ComponentName"/>
454 <xs:element minOccurs="0" maxOccurs="unbounded" ref="DriverConfig"/>
455 <xs:element minOccurs="0" maxOccurs="unbounded" ref="DriverDiag"/>
456 </xs:sequence>
457 <xs:sequence minOccurs="0" maxOccurs="1">
458 <xs:annotation>
459 <xs:documentation xml:lang="en"> Module Call Backs</xs:documentation>
460 </xs:annotation>
461 <xs:element minOccurs="0" maxOccurs="unbounded" ref="SetVirtualAddressMapCallBack"/>
462 <xs:element minOccurs="0" maxOccurs="unbounded" ref="ExitBootServicesCallBack"/>
463 </xs:sequence>
464 <xs:element minOccurs="0" maxOccurs="unbounded" name="UserDefined" type="C_Name"/>
465 </xs:choice>
466 <xs:attributeGroup ref="ExternAttributes"/>
467 </xs:complexType>
468 </xs:element>
469 </xs:sequence>
470 <xs:attribute name="ArchType" type="SupportedArchitectures"/>
471 </xs:complexType>
472 </xs:element>
473 </xs:sequence>
474 </xs:complexType>
475 </xs:element>
476 <xs:element name="Ffs">
477 <xs:annotation>
478 <xs:documentation xml:lang="en">Define the FFS File attributes within a sections and containing sections information</xs:documentation>
479 </xs:annotation>
480 <xs:complexType>
481 <xs:sequence>
482 <xs:element minOccurs="0" maxOccurs="unbounded" name="Attribute">
483 <xs:complexType>
484 <xs:sequence>
485 <xs:element minOccurs="1" maxOccurs="1" name="Name" type="C_Name"/>
486 <xs:element minOccurs="1" maxOccurs="1" name="Value" type="C_Name"/>
487 </xs:sequence>
488 </xs:complexType>
489 </xs:element>
490 <xs:element minOccurs="0" maxOccurs="1" ref="Sections"/>
491 </xs:sequence>
492 </xs:complexType>
493 </xs:element>
494 <xs:element name="Filename">
495 <xs:annotation>
496 <xs:documentation xml:lang="en">Describe the valid content of a filename This should extend PathAndFilename - Variable names not allowed here!</xs:documentation>
497 </xs:annotation>
498 <xs:complexType>
499 <xs:simpleContent>
500 <xs:extension base="VariableConvention">
501 <xs:attributeGroup ref="FilenameAttributes"/>
502 </xs:extension>
503 </xs:simpleContent>
504 </xs:complexType>
505 </xs:element>
506 <xs:element name="Filenames">
507 <xs:annotation>
508 <xs:documentation xml:lang="en">This is a list of Filenames</xs:documentation>
509 </xs:annotation>
510 <xs:complexType>
511 <xs:sequence minOccurs="1">
512 <xs:element minOccurs="0" maxOccurs="unbounded" ref="Filename"/>
513 <!-- DO NOT USE Arch remove it element and use Arch Attribute to Filename instead -->
514 <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
515 <xs:complexType>
516 <xs:sequence minOccurs="1">
517 <xs:element maxOccurs="unbounded" ref="Filename"/>
518 </xs:sequence>
519 <xs:attribute name="ArchType" type="SupportedArchitectures"/>
520 </xs:complexType>
521 </xs:element>
522 </xs:sequence>
523 </xs:complexType>
524 </xs:element>
525 <xs:element name="Formsets">
526 <xs:annotation>
527 <xs:documentation xml:lang="en">Describe the list of a Formset elements</xs:documentation>
528 </xs:annotation>
529 <xs:complexType>
530 <xs:sequence minOccurs="1" maxOccurs="unbounded">
531 <xs:element name="Formset">
532 <xs:complexType>
533 <xs:simpleContent>
534 <xs:extension base="C_Name">
535 <xs:attributeGroup ref="FormsetAttributes"/>
536 </xs:extension>
537 </xs:simpleContent>
538 </xs:complexType>
539 </xs:element>
540 <!-- DO NOT USE! removing Arch element, use Arch attribute in Formset instead. -->
541 <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
542 <xs:complexType>
543 <xs:sequence>
544 <xs:element name="Formset">
545 <xs:annotation>
546 <xs:documentation xml:lang="en">Describe the valid content of a Formset</xs:documentation>
547 </xs:annotation>
548 <xs:complexType>
549 <xs:simpleContent>
550 <xs:extension base="C_Name">
551 <xs:attributeGroup ref="FormsetAttributes"/>
552 </xs:extension>
553 </xs:simpleContent>
554 </xs:complexType>
555 </xs:element>
556 </xs:sequence>
557 <xs:attribute name="ArchType" type="SupportedArchitectures"/>
558 </xs:complexType>
559 </xs:element>
560 </xs:sequence>
561 </xs:complexType>
562 </xs:element>
563 <xs:element name="Guid">
564 <xs:annotation>
565 <xs:documentation xml:lang="en">Describe the valid content of a GUID</xs:documentation>
566 </xs:annotation>
567 <xs:complexType>
568 <xs:simpleContent>
569 <xs:extension base="GuidType">
570 <xs:attributeGroup ref="GuidAttributes"/>
571 </xs:extension>
572 </xs:simpleContent>
573 </xs:complexType>
574 </xs:element>
575 <xs:element name="GuidDeclarations">
576 <xs:annotation>
577 <xs:documentation xml:lang="en">This is a child of PackageSurfaceArea (SPD) </xs:documentation>
578 </xs:annotation>
579 <xs:complexType>
580 <xs:sequence>
581 <xs:element minOccurs="1" maxOccurs="unbounded" name="Entry">
582 <xs:complexType>
583 <xs:sequence>
584 <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
585 <xs:choice minOccurs="1">
586 <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
587 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
588 </xs:choice>
589 <xs:element minOccurs="0" maxOccurs="unbounded" ref="HelpText"/>
590 </xs:sequence>
591 <xs:attributeGroup ref="GuidDeclarationAttributes"/>
592 </xs:complexType>
593 </xs:element>
594 </xs:sequence>
595 </xs:complexType>
596 </xs:element>
597 <xs:element name="Guids">
598 <xs:complexType>
599 <xs:sequence minOccurs="1" maxOccurs="unbounded">
600 <xs:element name="GuidEntry">
601 <xs:annotation>
602 <xs:documentation xml:lang="en">Describe the valid content of a GUID element in and MSA file.</xs:documentation>
603 </xs:annotation>
604 <xs:complexType mixed="true">
605 <xs:sequence minOccurs="0" maxOccurs="1">
606 <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
607 <!-- DO NOT USE removing GuidValue from use -->
608 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
609 <!-- DO NOT USE removing FeatureFlag from use, use FeatureFlag Attribute instead -->
610 <xs:element minOccurs="0" maxOccurs="unbounded" name="FeatureFlag" type="C_Name"/>
611 <!-- DO NOT USE remove ConditionalExpression and use FeatureFlag instead -->
612 <xs:element minOccurs="0" maxOccurs="unbounded" ref="ConditionalExpression"/>
613 <!-- DO NOT USE, remove DefaultValue from use -->
614 <xs:element minOccurs="0" maxOccurs="1" ref="DefaultValue"/>
615 <!-- DO NOT USE, remove HelpText from use -->
616 <xs:element minOccurs="0" maxOccurs="1" ref="HelpText"/>
617 </xs:sequence>
618 <xs:attributeGroup ref="GuidAttributes"/>
619 </xs:complexType>
620 </xs:element>
621 <!-- DO NOT USE Arch, Arch should be removed and the attribute Arch should be used in the above. -->
622 <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
623 <xs:complexType>
624 <xs:sequence>
625 <xs:element name="GuidEntry">
626 <xs:annotation>
627 <xs:documentation xml:lang="en">Describe the valid content of a PCD GUID element</xs:documentation>
628 </xs:annotation>
629 <xs:complexType>
630 <xs:sequence minOccurs="0" maxOccurs="1">
631 <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
632 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
633 <xs:element minOccurs="0" maxOccurs="unbounded" name="FeatureFlag" type="C_Name"/>
634 <!-- DO NOT USE remove ConditionalExpression and use FeatureFlag instead -->
635 <xs:element minOccurs="0" maxOccurs="unbounded" ref="ConditionalExpression"/>
636 <xs:element minOccurs="0" maxOccurs="1" ref="DefaultValue"/>
637 <xs:element minOccurs="0" maxOccurs="1" ref="HelpText"/>
638 </xs:sequence>
639 <xs:attributeGroup ref="GuidAttributes"/>
640 </xs:complexType>
641 </xs:element>
642 </xs:sequence>
643 <xs:attribute name="ArchType" type="SupportedArchitectures"/>
644 </xs:complexType>
645 </xs:element>
646 </xs:sequence>
647 </xs:complexType>
648 </xs:element>
649 <xs:element name="GuidValue" type="GuidType"/>
650 <xs:element name="HelpText" type="Paragraph"/>
651 <xs:element name="HiiPackages">
652 <xs:annotation>
653 <xs:documentation xml:lang="en">Describe the list of a HiiPackage elements</xs:documentation>
654 </xs:annotation>
655 <xs:complexType>
656 <xs:sequence minOccurs="1" maxOccurs="unbounded">
657 <xs:element name="HiiPackage">
658 <xs:complexType>
659 <xs:simpleContent>
660 <xs:extension base="C_Name">
661 <xs:attributeGroup ref="HiiPackageAttributes"/>
662 </xs:extension>
663 </xs:simpleContent>
664 </xs:complexType>
665 </xs:element>
666 </xs:sequence>
667 </xs:complexType>
668 </xs:element>
669 <xs:element name="Hobs">
670 <xs:complexType>
671 <xs:sequence minOccurs="1" maxOccurs="unbounded">
672 <xs:element name="Hob">
673 <xs:complexType>
674 <xs:sequence>
675 <xs:choice>
676 <!-- Remove Name from use -->
677 <xs:element minOccurs="0" maxOccurs="1" name="Name" type="xs:normalizedString"/>
678 <xs:element minOccurs="0" maxOccurs="1" name="GuidC_Name" type="GuidC_NameType"/>
679 </xs:choice>
680 <!-- Remove C_Name from use -->
681 <xs:element minOccurs="0" maxOccurs="1" ref="C_Name"/>
682 <!-- Remove Guid and GuidValue from use -->
683 <xs:choice minOccurs="0">
684 <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
685 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
686 </xs:choice>
687 </xs:sequence>
688 <xs:attributeGroup ref="HobAttributes"/>
689 </xs:complexType>
690 </xs:element>
691 <!-- DO NOT USE Arch, use attribute Arch for Hob in above -->
692 <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
693 <xs:complexType>
694 <xs:sequence>
695 <xs:element name="Hob">
696 <xs:complexType>
697 <xs:sequence>
698 <xs:element minOccurs="0" maxOccurs="1" name="Name" type="xs:normalizedString"/>
699 <xs:element minOccurs="0" maxOccurs="1" ref="C_Name"/>
700 <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
701 </xs:sequence>
702 <xs:attributeGroup ref="HobAttributes"/>
703 </xs:complexType>
704 </xs:element>
705 </xs:sequence>
706 <xs:attribute name="ArchType" type="SupportedArchitectures"/>
707 </xs:complexType>
708 </xs:element>
709 </xs:sequence>
710 </xs:complexType>
711 </xs:element>
712 <xs:element name="ImageEntryPoint" type="C_Name"/>
713 <xs:element name="IncludeHeader">
714 <xs:complexType>
715 <xs:simpleContent>
716 <xs:extension base="PathAndFilename">
717 <!-- Need to use IncludeHeaderAttributes in final -->
718 <xs:attributeGroup ref="IncludeAttributes"/>
719 </xs:extension>
720 </xs:simpleContent>
721 </xs:complexType>
722 </xs:element>
723 <xs:element name="Includes">
724 <xs:annotation>
725 <xs:documentation xml:lang="en">One or More Package Names or Arch sections is required. Includes are not files, but paths to where header files are located.</xs:documentation>
726 </xs:annotation>
727 <xs:complexType>
728 <xs:sequence minOccurs="1" maxOccurs="unbounded">
729 <xs:element minOccurs="0" maxOccurs="unbounded" ref="PackageName"/>
730 <!-- remove Arch element, start using the Arch attribute for the PackageName element above. -->
731 <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
732 <xs:complexType>
733 <xs:sequence minOccurs="1">
734 <xs:element maxOccurs="unbounded" ref="PackageName"/>
735 </xs:sequence>
736 <xs:attribute name="ArchType" type="SupportedArchitectures"/>
737 </xs:complexType>
738 </xs:element>
739 </xs:sequence>
740 </xs:complexType>
741 </xs:element>
742 <xs:element name="IndustryStdIncludes">
743 <xs:complexType>
744 <xs:sequence>
745 <xs:element minOccurs="1" maxOccurs="unbounded" ref="IndustryStdHeader"/>
746 </xs:sequence>
747 </xs:complexType>
748 </xs:element>
749 <xs:element name="IndustryStdHeader">
750 <xs:complexType>
751 <xs:sequence>
752 <xs:element minOccurs="0" maxOccurs="1" name="Header" type="UiNameType"/>
753 <xs:element minOccurs="1" maxOccurs="1" name="IncludeHeader" type="PathAndFilename"/>
754 <xs:element minOccurs="1" maxOccurs="1" ref="HelpText"/>
755 </xs:sequence>
756 <xs:attributeGroup ref="IndustryStdHeaderAttributes"/>
757 </xs:complexType>
758 </xs:element>
759 <xs:element name="InstalledDate" type="DateType"/>
760 <xs:element name="Libraries">
761 <xs:annotation>
762 <xs:documentation xml:lang="en">Different (Module) Instances of Libraries used ONLY in FPD Files.</xs:documentation>
763 </xs:annotation>
764 <xs:complexType>
765 <xs:sequence minOccurs="1">
766 <xs:element minOccurs="0" maxOccurs="unbounded" name="Library">
767 <xs:complexType mixed="true">
768 <xs:simpleContent>
769 <xs:extension base="xs:NCName">
770 <xs:attributeGroup ref="LibraryAttributes"/>
771 </xs:extension>
772 </xs:simpleContent>
773 </xs:complexType>
774 </xs:element>
775 <!-- remove Arch Element HERE, start using the Arch attribute in Library element above. -->
776 <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
777 <xs:complexType>
778 <xs:choice minOccurs="1" maxOccurs="unbounded">
779 <xs:element minOccurs="0" maxOccurs="unbounded" name="Library">
780 <xs:complexType>
781 <xs:simpleContent>
782 <xs:extension base="BaseNameConvention">
783 <xs:attributeGroup ref="LibraryAttributes"/>
784 </xs:extension>
785 </xs:simpleContent>
786 </xs:complexType>
787 </xs:element>
788 </xs:choice>
789 <xs:attribute name="ArchType" type="SupportedArchitectures"/>
790 </xs:complexType>
791 </xs:element>
792 <!-- /remove Arch Element -->
793 </xs:sequence>
794 </xs:complexType>
795 </xs:element>
796 <xs:element name="LibraryClass">
797 <xs:annotation>
798 <xs:documentation xml:lang="en">Used in MSA files. This defines what class of library is being supported = produced (library module) or consumed by a module.</xs:documentation>
799 </xs:annotation>
800 <xs:complexType>
801 <xs:simpleContent>
802 <xs:extension base="xs:NCName">
803 <xs:attributeGroup ref="LibraryClassAttributes"/>
804 </xs:extension>
805 </xs:simpleContent>
806 </xs:complexType>
807 </xs:element>
808 <!-- LAH This is LibraryClassDeclaration FINAL version -->
809 <xs:element name="LibraryClassDeclaration">
810 <xs:annotation>
811 <xs:documentation xml:lang="en">This element defines a class of library, along with the path to the Include Header for this library</xs:documentation>
812 </xs:annotation>
813 <xs:complexType>
814 <xs:sequence>
815 <xs:element minOccurs="1" maxOccurs="1" name="LibraryClass">
816 <xs:complexType>
817 <xs:simpleContent>
818 <xs:extension base="xs:NCName">
819 <xs:attribute name="RecommendedInstanceGuid" type="GuidType" use="optional"/>
820 <xs:attribute name="RecommendedInstanceVersion" type="xs:decimal" use="optional"/>
821 </xs:extension>
822 </xs:simpleContent>
823 </xs:complexType>
824 </xs:element>
825 <xs:element minOccurs="0" maxOccurs="1" ref="IncludeHeader"/>
826 <xs:element minOccurs="0" maxOccurs="1" name="RecommendedInstanceGuid" type="GuidType"/>
827 <xs:element minOccurs="0" maxOccurs="1" name="RecommendedInstanceVersion" type="xs:decimal"/>
828 <xs:element minOccurs="0" maxOccurs="1" ref="HelpText"/>
829 </xs:sequence>
830 </xs:complexType>
831 </xs:element>
832 <!-- LAH This is LibraryClassDeclarations FINAL version -->
833 <xs:element name="LibraryClassDeclarations">
834 <xs:complexType>
835 <xs:sequence>
836 <xs:element minOccurs="1" maxOccurs="unbounded" ref="LibraryClassDeclaration"/>
837 <xs:element name="LibraryClass" minOccurs="0" maxOccurs="unbounded">
838 <xs:complexType>
839 <xs:sequence>
840 <xs:element name="IncludeHeader" type="PathAndFilename" minOccurs="1" maxOccurs="1"/>
841 <xs:element ref="HelpText" minOccurs="1" maxOccurs="1"/>
842 </xs:sequence>
843 <xs:attributeGroup ref="LibraryClassAttributes"/>
844 </xs:complexType>
845 </xs:element>
846 </xs:sequence>
847 </xs:complexType>
848 </xs:element>
849 <xs:element name="LibraryClassDefinitions">
850 <xs:annotation>
851 <xs:documentation xml:lang="en">This section defines what Classes of Library that this library supports. A Library may belong to multiple different library classes.</xs:documentation>
852 </xs:annotation>
853 <xs:complexType>
854 <xs:sequence minOccurs="1" maxOccurs="unbounded">
855 <xs:element ref="LibraryClass"/>
856 </xs:sequence>
857 </xs:complexType>
858 </xs:element>
859 <xs:element name="License">
860 <xs:complexType>
861 <xs:simpleContent>
862 <xs:extension base="Paragraph">
863 <xs:attribute name="URL" type="xs:anyURI" use="optional"/>
864 </xs:extension>
865 </xs:simpleContent>
866 </xs:complexType>
867 </xs:element>
868 <xs:element name="Modified" type="DateType"/>
869 <xs:element name="ModifiedDate" type="DateType"/>
870 <xs:element name="Module">
871 <xs:annotation>
872 <xs:documentation xml:lang="en">This is record format for a Module entry in the Framework Database file.</xs:documentation>
873 </xs:annotation>
874 <xs:complexType>
875 <xs:annotation>
876 <xs:documentation xml:lang="en">This describes the fields in an Module record in the Framework Database. The Path field is relative to the workspace to Module Surface Area (MSA) files.</xs:documentation>
877 </xs:annotation>
878 <xs:sequence>
879 <xs:element minOccurs="1" maxOccurs="1" ref="ModuleName"/>
880 <xs:choice minOccurs="1">
881 <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
882 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
883 </xs:choice>
884 <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
885 <xs:element minOccurs="1" maxOccurs="1" ref="Path"/>
886 </xs:sequence>
887 </xs:complexType>
888 </xs:element>
889 <xs:element name="ModuleEntryPoint" type="xs:normalizedString"/>
890 <xs:element name="ModuleList">
891 <xs:annotation>
892 <xs:documentation xml:lang="en">This tag is used in the Framework Package Database File to track package installation</xs:documentation>
893 </xs:annotation>
894 <xs:complexType>
895 <xs:sequence maxOccurs="unbounded">
896 <xs:element minOccurs="1" maxOccurs="unbounded" ref="Module"/>
897 </xs:sequence>
898 </xs:complexType>
899 </xs:element>
900 <xs:element name="ModuleName">
901 <xs:annotation>
902 <xs:documentation xml:lang="en">This is the valid content of a Module Name</xs:documentation>
903 </xs:annotation>
904 <xs:complexType>
905 <xs:simpleContent>
906 <xs:extension base="xs:NCName">
907 <xs:attributeGroup ref="ModuleNameAttributes"/>
908 </xs:extension>
909 </xs:simpleContent>
910 </xs:complexType>
911 </xs:element>
912 <xs:element name="ModuleType" type="ModuleTypeDef">
913 <xs:annotation>
914 <xs:documentation xml:lang="en">Describe the valid EFI Phase that the Module is designed to execute under.</xs:documentation>
915 </xs:annotation>
916 </xs:element>
917 <xs:element name="ModuleUnloadImage" type="xs:normalizedString"/>
918 <xs:element name="MsaFiles">
919 <xs:complexType>
920 <xs:choice minOccurs="1" maxOccurs="unbounded">
921 <xs:sequence minOccurs="1">
922 <xs:element minOccurs="0" maxOccurs="unbounded" name="MsaFile">
923 <xs:annotation>
924 <xs:documentation xml:lang="en">Surface Area Package Description (SPD) list of Module Surface Area files</xs:documentation>
925 </xs:annotation>
926 <xs:complexType>
927 <xs:sequence minOccurs="0" maxOccurs="1">
928 <xs:element minOccurs="0" ref="Filename"/>
929 <xs:element minOccurs="0" ref="BuildOptions"/>
930 </xs:sequence>
931 <xs:attributeGroup ref="MsaAttributes"/>
932 </xs:complexType>
933 </xs:element>
934 <!-- DO NOT USE Arch element, use attribute Arch in above. -->
935 <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
936 <xs:complexType>
937 <xs:sequence minOccurs="1">
938 <xs:element maxOccurs="unbounded" name="MsaFile">
939 <xs:annotation>
940 <xs:documentation xml:lang="en">Describe the valid content of a Surface Area Package Description (SPD) file</xs:documentation>
941 </xs:annotation>
942 <xs:complexType>
943 <xs:sequence minOccurs="0" maxOccurs="1">
944 <xs:element minOccurs="0" ref="Filename"/>
945 <xs:element minOccurs="0" ref="BuildOptions"/>
946 </xs:sequence>
947 <xs:attributeGroup ref="MsaAttributes"/>
948 </xs:complexType>
949 </xs:element>
950 </xs:sequence>
951 <xs:attribute name="ArchType" type="SupportedArchitectures"/>
952 </xs:complexType>
953 </xs:element>
954 </xs:sequence>
955 <xs:element minOccurs="1" maxOccurs="unbounded" ref="Filename"/>
956 </xs:choice>
957 </xs:complexType>
958 </xs:element>
959 <!-- Use in Final -->
960 <xs:element name="MsaFileList">
961 <xs:annotation>
962 <xs:documentation xml:lang="en">Surface Area Package Description (SPD) list of Module Surface Area files</xs:documentation>
963 </xs:annotation>
964 <xs:complexType>
965 <xs:sequence>
966 <xs:element minOccurs="0" maxOccurs="unbounded" name="Filename" type="PathAndFilename"/>
967 </xs:sequence>
968 </xs:complexType>
969 </xs:element>
970 <xs:element name="OutputDirectory">
971 <xs:annotation>
972 <xs:documentation xml:lang="en">Define where we want our output to go. The Attribute, IntermediateDirectories, default MODULE, says that intermediate files will be local to the module, versus a unified directory structure.</xs:documentation>
973 </xs:annotation>
974 <xs:complexType>
975 <xs:simpleContent>
976 <xs:extension base="DirectoryNamingConvention">
977 <xs:attribute default="MODULE" name="IntermediateDirectories">
978 <xs:simpleType>
979 <xs:restriction base="UCNameType">
980 <xs:enumeration value="MODULE"/>
981 <xs:enumeration value="UNIFIED"/>
982 </xs:restriction>
983 </xs:simpleType>
984 </xs:attribute>
985 </xs:extension>
986 </xs:simpleContent>
987 </xs:complexType>
988 </xs:element>
989 <xs:element name="ProcessStep">
990 <xs:complexType>
991 <xs:sequence>
992 <xs:element minOccurs="1" maxOccurs="1" name="ToolName" type="xs:string"/>
993 <xs:element minOccurs="1" maxOccurs="1" name="ToolArgs" type="xs:string"/>
994 <!-- Input patterns to be processed by the tool above -->
995 <xs:element minOccurs="1" maxOccurs="unbounded" name="InputPattern" type="xs:string"/>
996 <!-- A pattern to match for the output -->
997 <xs:element minOccurs="1" maxOccurs="1" name="OutputPattern" type="xs:string"/>
998 </xs:sequence>
999 <xs:attributeGroup ref="SectionAttributes"/>
1000 </xs:complexType>
1001 </xs:element>
1002 <xs:element name="FfsFormatDeclarations">
1003 <xs:complexType>
1004 <xs:sequence>
1005 <xs:element minOccurs="1" maxOccurs="unbounded" name="FfsFormatDeclaration">
1006 <!-- Required Attributes are the FfsFormatKeyword and SupModuleList -->
1007 <xs:complexType>
1008 <xs:sequence>
1009 <xs:element minOccurs="1" maxOccurs="unbounded" ref="ProcessStep"/>
1010 </xs:sequence>
1011 <xs:attributeGroup ref="FfsAttributes"/>
1012 </xs:complexType>
1013 </xs:element>
1014 </xs:sequence>
1015 </xs:complexType>
1016 </xs:element>
1017 <xs:element name="PackageDefinitions">
1018 <xs:complexType>
1019 <xs:sequence>
1020 <xs:element minOccurs="1" maxOccurs="1" name="ReadOnly" type="xs:boolean" default="false"/>
1021 <xs:element minOccurs="1" maxOccurs="1" name="RePackage" type="xs:boolean" default="false"/>
1022 </xs:sequence>
1023 </xs:complexType>
1024 </xs:element>
1025 <xs:element name="PCDs">
1026 <!-- PCDs section is going away to be replaced by something else TB Named later -->
1027 <xs:annotation>
1028 <xs:documentation xml:lang="en">Child of Module Surface Area documents, MSA and MBD files, Library Modules and Other Modules</xs:documentation>
1029 <xs:documentation xml:lang="en">One or more PcdData or PcdBuildData Elements Only one type is permitted</xs:documentation>
1030 </xs:annotation>
1031 <xs:complexType>
1032 <xs:sequence minOccurs="1">
1033 <xs:element maxOccurs="unbounded" name="PcdData">
1034 <xs:annotation>
1035 <xs:documentation xml:lang="en">This is a child of PCDs and can occur in the MSA and MBD files.</xs:documentation>
1036 <xs:documentation xml:lang="en">This is date element is used in the Module Surface Area (MSA) file and contains references to be used by a Platform Build</xs:documentation>
1037 <xs:documentation xml:lang="en">There is ONE required Attribute, ItemType</xs:documentation>
1038 </xs:annotation>
1039 <xs:complexType>
1040 <xs:sequence>
1041 <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
1042 <xs:element minOccurs="1" maxOccurs="1" name="Token" type="HexDoubleWordDataType"/>
1043 <xs:element minOccurs="0" maxOccurs="1" name="TokenSpaceGuid" type="GuidType"/>
1044 <xs:element minOccurs="1" maxOccurs="1" name="DatumType" type="PcdDataTypes"/>
1045 <xs:element default="false" minOccurs="0" maxOccurs="1" name="HiiEnable" type="xs:boolean"/>
1046 <xs:element default="false" minOccurs="0" maxOccurs="1" name="VpdEnable" type="xs:boolean"/>
1047 <xs:element default="false" minOccurs="0" maxOccurs="1" name="AlternateNameSpaceEnable" type="xs:boolean"/>
1048 <xs:element default="false" minOccurs="0" maxOccurs="1" name="SkuEnable" type="xs:boolean"/>
1049 <xs:element default="false" minOccurs="0" maxOccurs="1" name="SkuDataArrayEnable" type="xs:boolean"/>
1050 <xs:element default="0x00" minOccurs="0" maxOccurs="1" name="MaxSku" type="HexByteDataType"/>
1051 <xs:element default="0x00" minOccurs="0" maxOccurs="1" name="SkuId" type="HexByteDataType"/>
1052 <xs:element minOccurs="0" maxOccurs="1" name="DatumSize" type="DatumSizeLimitation"/>
1053 <xs:element minOccurs="0" maxOccurs="1" name="VariableName" type="xs:normalizedString"/>
1054 <xs:element minOccurs="0" maxOccurs="1" name="VariableGuid" type="VariableGuidType"/>
1055 <xs:element minOccurs="0" maxOccurs="1" name="DataOffset" type="Hex64BitDataType"/>
1056 <xs:element minOccurs="0" maxOccurs="1" name="GuidOffset" type="Hex64BitDataType"/>
1057 <xs:element minOccurs="0" maxOccurs="1" name="DefaultValue" type="xs:normalizedString"/>
1058 <xs:element minOccurs="0" maxOccurs="1" ref="HelpText"/>
1059 </xs:sequence>
1060 <xs:attributeGroup ref="PcdAttributes"/>
1061 <xs:attribute name="PcdIsDriver" use="optional"/>
1062 </xs:complexType>
1063 </xs:element>
1064 </xs:sequence>
1065 </xs:complexType>
1066 </xs:element>
1067 <xs:element name="PackageDependencies">
1068 <xs:annotation>
1069 <xs:documentation xml:lang="en">This tag is used in the Package Surface Area Description File (SPD) to track package dependencies for a module</xs:documentation>
1070 </xs:annotation>
1071 <xs:complexType>
1072 <xs:sequence maxOccurs="unbounded">
1073 <xs:choice>
1074 <xs:element minOccurs="1" maxOccurs="unbounded" ref="Package"/>
1075 <xs:element minOccurs="1" maxOccurs="unbounded" ref="PackageName"/>
1076 </xs:choice>
1077 </xs:sequence>
1078 <xs:attributeGroup ref="PackageNameAttributes"/>
1079 </xs:complexType>
1080 </xs:element>
1081 <xs:element name="PackageHeaders">
1082 <xs:annotation>
1083 <xs:documentation xml:lang="en">This is a child of PackageSurfaceArea (SPD) </xs:documentation>
1084 </xs:annotation>
1085 <xs:complexType>
1086 <xs:sequence>
1087 <xs:choice>
1088 <!-- DO NOT USE! removing IncludeHeader, use IncludePkgHeader instead. -->
1089 <xs:element minOccurs="0" maxOccurs="unbounded" ref="IncludeHeader"/>
1090 <xs:element minOccurs="0" maxOccurs="unbounded" name="IncludePkgHeader">
1091 <xs:complexType>
1092 <xs:simpleContent>
1093 <xs:extension base="PathAndFilename">
1094 <xs:attributeGroup ref="PackageHeaderAttributes"/>
1095 </xs:extension>
1096 </xs:simpleContent>
1097 </xs:complexType>
1098 </xs:element>
1099 </xs:choice>
1100 </xs:sequence>
1101 </xs:complexType>
1102 </xs:element>
1103 <xs:element name="PackageList">
1104 <xs:annotation>
1105 <xs:documentation xml:lang="en">This tag is used in the Framework Package Database File to track all packages installed in a workspace. (Database)</xs:documentation>
1106 </xs:annotation>
1107 <xs:complexType>
1108 <xs:sequence maxOccurs="unbounded">
1109 <xs:element minOccurs="0" name="Package">
1110 <xs:annotation>
1111 <xs:documentation xml:lang="en">This tag is used in the Framework Package Database File to track individual package information. The Path is a relative path to the SPD File.</xs:documentation>
1112 </xs:annotation>
1113 <xs:complexType>
1114 <xs:sequence maxOccurs="unbounded">
1115 <xs:element minOccurs="0" maxOccurs="1" ref="PackageName"/>
1116 <xs:choice minOccurs="0">
1117 <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
1118 <!-- DO NOT USE Guid should be removed, use PackageGuid instead -->
1119 <xs:element minOccurs="0" maxOccurs="1" name="PackageGuid" type="GuidType"/>
1120 </xs:choice>
1121 <xs:choice minOccurs="0">
1122 <xs:element minOccurs="0" maxOccurs="1" ref="Version"/>
1123 <xs:element minOccurs="0" maxOccurs="1" name="PackageVersion" type="VersionDataType"/>
1124 </xs:choice>
1125 <xs:choice minOccurs="1">
1126 <xs:element minOccurs="0" maxOccurs="1" ref="Path"/>
1127 <xs:element minOccurs="0" maxOccurs="1" ref="Filename"/>
1128 </xs:choice>
1129 <xs:element minOccurs="1" maxOccurs="1" ref="InstalledDate"/>
1130 </xs:sequence>
1131 <xs:attributeGroup ref="PackageAttributes"/>
1132 </xs:complexType>
1133 </xs:element>
1134 <xs:element name="Filename" type="PathAndFilename" minOccurs="0" maxOccurs="unbounded"/>
1135 </xs:sequence>
1136 </xs:complexType>
1137 </xs:element>
1138 <xs:element name="Package">
1139 <xs:annotation>
1140 <xs:documentation xml:lang="en">This tag is used in the Package Surface Area Description File to track package dependencies for a module (SPD) </xs:documentation>
1141 </xs:annotation>
1142 <xs:complexType mixed="true">
1143 <xs:simpleContent>
1144 <xs:extension base="UiNameType">
1145 <xs:attributeGroup ref="PackageAttributes"/>
1146 </xs:extension>
1147 </xs:simpleContent>
1148 </xs:complexType>
1149 </xs:element>
1150 <xs:element name="PackageName">
1151 <xs:annotation>
1152 <xs:documentation xml:lang="en">This tag is used in the Package Surface Area Description File to track package dependencies for a module (SPD) </xs:documentation>
1153 </xs:annotation>
1154 <xs:complexType>
1155 <xs:simpleContent>
1156 <xs:extension base="UiNameType">
1157 <xs:attributeGroup ref="PackageAttributes"/>
1158 </xs:extension>
1159 </xs:simpleContent>
1160 </xs:complexType>
1161 </xs:element>
1162 <xs:element name="PackageType" type="PackageType"/>
1163 <xs:element name="Path">
1164 <xs:annotation>
1165 <xs:documentation xml:lang="en">Describe the valid content of a filename</xs:documentation>
1166 </xs:annotation>
1167 <xs:complexType>
1168 <xs:simpleContent>
1169 <xs:extension base="DirectoryNamingConvention">
1170 <xs:attributeGroup ref="DirectoryAttributes"/>
1171 </xs:extension>
1172 </xs:simpleContent>
1173 </xs:complexType>
1174 </xs:element>
1175 <xs:element name="PcdBuildDeclarations">
1176 <xs:annotation>
1177 <xs:documentation xml:lang="en">NEW: Will become a child of ModuleSA in the FPD</xs:documentation>
1178 </xs:annotation>
1179 <xs:complexType>
1180 <xs:choice minOccurs="1">
1181 <xs:element minOccurs="0" maxOccurs="1" ref="Filename"/>
1182 <xs:element minOccurs="0" maxOccurs="unbounded" name="PcdBuildData">
1183 <xs:annotation>
1184 <xs:documentation xml:lang="en">Child of PcdBuildDeclarations</xs:documentation>
1185 <xs:documentation xml:lang="en">This is date element is used in the platform build description file and contains valid data for a Platform Build</xs:documentation>
1186 <xs:documentation xml:lang="en">There is ONE required Attribute, ItemType</xs:documentation>
1187 </xs:annotation>
1188 <xs:complexType>
1189 <xs:sequence>
1190 <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
1191 <xs:element minOccurs="1" maxOccurs="1" name="Token">
1192 <xs:annotation>
1193 <xs:documentation xml:lang="en">This as a unique identifier defined for either this name space.</xs:documentation>
1194 <xs:documentation xml:lang="en">The Target Attribute may be used to define a Target name space, such as PCI.</xs:documentation>
1195 </xs:annotation>
1196 <xs:complexType>
1197 <xs:simpleContent>
1198 <xs:extension base="HexDoubleWordDataType">
1199 <xs:attribute name="Target" type="C_Name" use="optional"/>
1200 </xs:extension>
1201 </xs:simpleContent>
1202 </xs:complexType>
1203 </xs:element>
1204 <xs:element minOccurs="0" maxOccurs="1" name="TokenSpaceGuid" type="GuidType"/>
1205 <xs:element minOccurs="1" maxOccurs="1" name="DatumType" type="PcdDataTypes">
1206 <xs:annotation>
1207 <xs:documentation xml:lang="en">This specifies the size of the Pcd Datum. It is either 8, 16, 32 or 64 bits for values, 1 bit for BOOLEAN and variable length for elements defined as VOID*</xs:documentation>
1208 </xs:annotation>
1209 </xs:element>
1210 <xs:element default="false" minOccurs="1" maxOccurs="1" name="HiiEnable" type="xs:boolean">
1211 <xs:annotation>
1212 <xs:documentation xml:lang="en">This Bit means that the Variable data is associated with HII</xs:documentation>
1213 </xs:annotation>
1214 </xs:element>
1215 <xs:element default="false" minOccurs="1" maxOccurs="1" name="VpdEnable" type="xs:boolean">
1216 <xs:annotation>
1217 <xs:documentation xml:lang="en">This bit enables the Vital Product Data area within flash for maintaining PCD information</xs:documentation>
1218 </xs:annotation>
1219 </xs:element>
1220 <xs:element default="false" minOccurs="1" maxOccurs="1" name="AlternateNameSpaceEnable" type="xs:boolean">
1221 <xs:annotation>
1222 <xs:documentation>This is only applicable to ItemType DYNAMIC_EX</xs:documentation>
1223 </xs:annotation>
1224 </xs:element>
1225 <xs:element default="false" minOccurs="1" maxOccurs="1" name="SkuEnable" type="xs:boolean"/>
1226 <xs:element default="false" minOccurs="1" maxOccurs="1" name="SkuDataArrayEnable" type="xs:boolean"/>
1227 <xs:choice minOccurs="0">
1228 <xs:element minOccurs="0" maxOccurs="1" name="SkuDataArray">
1229 <xs:annotation>
1230 <xs:documentation xml:lang="en">This element is a list of two entries per line, the first should be an integer, while the second entry should be a string value</xs:documentation>
1231 </xs:annotation>
1232 <xs:simpleType>
1233 <xs:list itemType="xs:normalizedString"/>
1234 </xs:simpleType>
1235 </xs:element>
1236 <xs:element minOccurs="0" maxOccurs="unbounded" name="SkuData">
1237 <xs:annotation>
1238 <xs:documentation xml:lang="en">This section is for a list of SkuData Elements, ID and Value</xs:documentation>
1239 </xs:annotation>
1240 <xs:complexType>
1241 <xs:sequence minOccurs="1">
1242 <xs:element name="Id" type="xs:int"/>
1243 <xs:element name="Value" type="xs:normalizedString"/>
1244 </xs:sequence>
1245 </xs:complexType>
1246 </xs:element>
1247 </xs:choice>
1248 <xs:element default="0x00" minOccurs="1" maxOccurs="1" name="MaxSku" type="HexByteDataType">
1249 <xs:annotation>
1250 <xs:documentation xml:lang="en">This value comes from a production line database, and has nothing to do with the number of SkuData IDs that have been defined.</xs:documentation>
1251 </xs:annotation>
1252 </xs:element>
1253 <xs:element default="0x00" minOccurs="1" maxOccurs="1" name="SkuId" type="HexByteDataType">
1254 <xs:annotation>
1255 <xs:documentation xml:lang="en">This is the specific Sku ID for this build.</xs:documentation>
1256 </xs:annotation>
1257 </xs:element>
1258 <xs:element minOccurs="1" maxOccurs="1" name="DatumSize">
1259 <xs:annotation>
1260 <xs:documentation xml:lang="en">Max Number of Bytes of the data.</xs:documentation>
1261 </xs:annotation>
1262 <xs:simpleType>
1263 <xs:restriction base="xs:int">
1264 <xs:minInclusive value="1"/>
1265 <xs:maxInclusive value="16777215"/>
1266 </xs:restriction>
1267 </xs:simpleType>
1268 </xs:element>
1269 <xs:element minOccurs="1" maxOccurs="1" name="VariableGuid" type="VariableGuidType">
1270 <xs:annotation>
1271 <xs:documentation xml:lang="en">This is the Variable's GUID if and only if HII is enabled.</xs:documentation>
1272 </xs:annotation>
1273 </xs:element>
1274 <xs:element minOccurs="1" maxOccurs="1" name="VariableName" type="xs:normalizedString">
1275 <xs:annotation>
1276 <xs:documentation xml:lang="en">This is the C Name for the Variable, and is valid if and only HII is enabled.</xs:documentation>
1277 </xs:annotation>
1278 </xs:element>
1279 <xs:element minOccurs="0" maxOccurs="1" name="VariableValueDefault" type="xs:normalizedString"/>
1280 <xs:element minOccurs="1" maxOccurs="1" name="DataOffset" type="Hex64BitDataType">
1281 <xs:annotation>
1282 <xs:documentation xml:lang="en">If HII is enabled, This is the offset into the variable data entry, If Vpd is enabled, then it's the Offset into the VPD area of the image defined by platform manufacturer, if neither HII nor Vpd are enabled, it's the offset into the PCD Data Area. HII and VPD can never be enabled at the same time (as of the date of this document.)</xs:documentation>
1283 </xs:annotation>
1284 </xs:element>
1285 <xs:element minOccurs="0" maxOccurs="1" name="GuidOffset" type="Hex64BitDataType">
1286 <xs:annotation>
1287 <xs:documentation xml:lang="en">FIELD IS NOT USED! REMOVE in FINAL!</xs:documentation>
1288 </xs:annotation>
1289 </xs:element>
1290 <xs:element minOccurs="1" maxOccurs="1" name="DefaultValue" type="xs:normalizedString"/>
1291 </xs:sequence>
1292 <xs:attributeGroup ref="PcdAttributes"/>
1293 <xs:attribute name="PcdIsDriver">
1294 <xs:simpleType>
1295 <xs:annotation>
1296 <xs:documentation xml:lang="en">This is an enumerated data type that will be used for DYNAMIC_EX, PEIM or DXE only</xs:documentation>
1297 </xs:annotation>
1298 <xs:restriction base="UCNameType">
1299 <xs:enumeration value="PEI_PCD_DRIVER"/>
1300 <xs:enumeration value="DXE_PCD_DRIVER"/>
1301 </xs:restriction>
1302 </xs:simpleType>
1303 </xs:attribute>
1304 </xs:complexType>
1305 </xs:element>
1306 </xs:choice>
1307 </xs:complexType>
1308 </xs:element>
1309 <!-- PcdBuildDeclarations -->
1310 <xs:element name="PcdDynamicBuildDeclarations">
1311 <xs:annotation>
1312 <xs:documentation xml:lang="en">Child of Framework Platform Description (FPD)</xs:documentation>
1313 <xs:documentation xml:lang="en">We permit the FPD to use an external XML file for PCD information or else the information must be contained within the XML data element, PcdBuildData.</xs:documentation>
1314 </xs:annotation>
1315 <xs:complexType>
1316 <xs:sequence>
1317 <xs:element minOccurs="0" maxOccurs="unbounded" name="PcdBuildData">
1318 <xs:annotation>
1319 <xs:documentation xml:lang="en">Child of PcdBuildDeclarations</xs:documentation>
1320 <xs:documentation xml:lang="en">This is date element is used in the platform build description file and contains valid data for a Platform Build</xs:documentation>
1321 <xs:documentation xml:lang="en">There is ONE required Attribute, ItemType</xs:documentation>
1322 </xs:annotation>
1323 <xs:complexType>
1324 <xs:sequence>
1325 <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
1326 <xs:element minOccurs="0" maxOccurs="1" name="TokenSpaceGuid" type="GuidType"/>
1327 <xs:element minOccurs="1" maxOccurs="1" name="Token">
1328 <xs:annotation>
1329 <xs:documentation xml:lang="en">This as a unique identifier defined for either this name space.</xs:documentation>
1330 <xs:documentation xml:lang="en">The Target Attribute may be used to define a Target name space, such as PCI.</xs:documentation>
1331 </xs:annotation>
1332 <xs:complexType>
1333 <xs:simpleContent>
1334 <xs:extension base="HexDoubleWordDataType">
1335 <xs:attribute name="Target" type="C_Name" use="optional"/>
1336 </xs:extension>
1337 </xs:simpleContent>
1338 </xs:complexType>
1339 </xs:element>
1340 <xs:element minOccurs="0" maxOccurs="1" name="TokenSpaceGuid" type="GuidType"/>
1341 <xs:element minOccurs="1" maxOccurs="1" name="DatumType" type="PcdDataTypes"/>
1342 <xs:element default="false" minOccurs="1" maxOccurs="1" name="HiiEnable" type="xs:boolean"/>
1343 <xs:element default="false" minOccurs="1" maxOccurs="1" name="VpdEnable" type="xs:boolean"/>
1344 <xs:element default="false" minOccurs="1" maxOccurs="1" name="AlternateNameSpaceEnable" type="xs:boolean"/>
1345 <xs:element default="false" minOccurs="1" maxOccurs="1" name="SkuEnable" type="xs:boolean"/>
1346 <xs:element default="false" minOccurs="1" maxOccurs="1" name="SkuDataArrayEnable" type="xs:boolean"/>
1347 <xs:choice minOccurs="0">
1348 <xs:element minOccurs="0" maxOccurs="1" name="SkuDataArray">
1349 <xs:annotation>
1350 <xs:documentation xml:lang="en">This element is a list of two entries per line, the first should be an integer, while the second entry should be a string value</xs:documentation>
1351 </xs:annotation>
1352 <xs:simpleType>
1353 <xs:list itemType="xs:normalizedString"/>
1354 </xs:simpleType>
1355 </xs:element>
1356 <xs:element minOccurs="0" maxOccurs="unbounded" name="SkuData">
1357 <xs:annotation>
1358 <xs:documentation xml:lang="en">This section is for a list of SkuData Elements, ID and Value</xs:documentation>
1359 </xs:annotation>
1360 <xs:complexType>
1361 <xs:sequence minOccurs="1">
1362 <xs:element name="Id" type="xs:int"/>
1363 <xs:element name="Value" type="xs:normalizedString"/>
1364 </xs:sequence>
1365 </xs:complexType>
1366 </xs:element>
1367 </xs:choice>
1368 <xs:element default="0x00" minOccurs="1" maxOccurs="1" name="MaxSku" type="HexByteDataType">
1369 <xs:annotation>
1370 <xs:documentation xml:lang="en">This value comes from a production line database, and has nothing to do with the number of SkuData IDs that have been defined.</xs:documentation>
1371 </xs:annotation>
1372 </xs:element>
1373 <xs:element default="0x00" minOccurs="1" maxOccurs="1" name="SkuId" type="HexByteDataType"/>
1374 <xs:element minOccurs="1" maxOccurs="1" name="DatumSize" type="DatumSizeLimitation"/>
1375 <xs:element minOccurs="1" maxOccurs="1" name="VariableGuid" type="VariableGuidType"/>
1376 <xs:element minOccurs="1" maxOccurs="1" name="VariableName" type="xs:normalizedString"/>
1377 <xs:element minOccurs="0" maxOccurs="1" name="VariableValueDefault" type="xs:normalizedString"/>
1378 <xs:element minOccurs="1" maxOccurs="1" name="DataOffset" type="Hex64BitDataType"/>
1379 <xs:element minOccurs="0" maxOccurs="1" name="GuidOffset" type="Hex64BitDataType"/>
1380 <xs:element minOccurs="1" maxOccurs="1" name="DefaultValue" type="xs:normalizedString"/>
1381 </xs:sequence>
1382 <xs:attributeGroup ref="PcdAttributes"/>
1383 <xs:attribute name="PcdIsDriver">
1384 <xs:simpleType>
1385 <xs:annotation>
1386 <xs:documentation xml:lang="en">This is an enumerated data type that will be used for DYNAMIC_EX, PEIM or DXE only</xs:documentation>
1387 </xs:annotation>
1388 <xs:restriction base="UCNameType">
1389 <xs:enumeration value="PEI_PCD_DRIVER"/>
1390 <xs:enumeration value="DXE_PCD_DRIVER"/>
1391 </xs:restriction>
1392 </xs:simpleType>
1393 </xs:attribute>
1394 </xs:complexType>
1395 </xs:element>
1396 </xs:sequence>
1397 </xs:complexType>
1398 </xs:element>
1399 <xs:element name="DynamicPcdBuildDefinitions">
1400 <xs:annotation>
1401 <xs:documentation xml:lang="en">Child of Framework Platform Description (FPD)</xs:documentation>
1402 <xs:documentation xml:lang="en">FPD uses this PCD information for Dynamic PCDs Only</xs:documentation>
1403 </xs:annotation>
1404 <xs:complexType>
1405 <xs:sequence>
1406 <xs:element minOccurs="0" maxOccurs="unbounded" name="PcdBuildData">
1407 <xs:complexType>
1408 <xs:sequence>
1409 <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
1410 <xs:element minOccurs="1" maxOccurs="1" name="Token" type="TokenDataType"/>
1411 <xs:element minOccurs="0" maxOccurs="1" name="TokenSpaceGuid" type="GuidType"/>
1412 <xs:element minOccurs="1" maxOccurs="1" name="DatumType" type="PcdDataTypes"/>
1413 <xs:element minOccurs="0" maxOccurs="1" name="MaxDatumSize" type="DatumSizeLimitation"/>
1414 <xs:element minOccurs="1" maxOccurs="unbounded" name="SkuInfo">
1415 <xs:complexType>
1416 <xs:sequence>
1417 <xs:element minOccurs="1" maxOccurs="1" name="SkuId" type="xs:nonNegativeInteger"/>
1418 <xs:choice>
1419 <xs:group minOccurs="0" maxOccurs="1" ref="HiiEnable"/>
1420 <xs:group minOccurs="0" maxOccurs="1" ref="VpdEnable"/>
1421 <xs:group minOccurs="0" maxOccurs="1" ref="DefaultGroup"/>
1422 </xs:choice>
1423 </xs:sequence>
1424 </xs:complexType>
1425 </xs:element>
1426 </xs:sequence>
1427 <xs:attributeGroup ref="PcdAttributes"/>
1428 </xs:complexType>
1429 </xs:element>
1430 </xs:sequence>
1431 </xs:complexType>
1432 </xs:element>
1433 <xs:element name="PcdBuildDefinition">
1434 <xs:annotation>
1435 <xs:documentation xml:lang="en">Child of FPD ModuleSA element for FIXED_AT_BUILD, PATCHABLE_IN_MODULE, and FEATURE_FLAG PCDS Only!</xs:documentation>
1436 </xs:annotation>
1437 <xs:complexType>
1438 <xs:sequence minOccurs="1">
1439 <xs:element maxOccurs="unbounded" name="PcdData">
1440 <xs:complexType>
1441 <xs:sequence>
1442 <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
1443 <xs:element minOccurs="1" maxOccurs="1" name="Token" type="TokenDataType"/>
1444 <xs:element minOccurs="0" maxOccurs="1" name="TokenSpaceGuid" type="GuidType"/>
1445 <xs:element minOccurs="1" maxOccurs="1" name="DatumType" type="PcdDataTypes"/>
1446 <xs:element minOccurs="0" maxOccurs="1" name="MaxDatumSize" type="DatumSizeLimitation"/>
1447 <xs:element minOccurs="0" maxOccurs="1" name="Value" type="xs:normalizedString"/>
1448 </xs:sequence>
1449 <xs:attributeGroup ref="PcdBuildDefinitionAttributes"/>
1450 </xs:complexType>
1451 </xs:element>
1452 </xs:sequence>
1453 </xs:complexType>
1454 </xs:element>
1455 <xs:group name="DefaultGroup">
1456 <xs:sequence>
1457 <xs:element minOccurs="1" maxOccurs="1" name="Value" type="xs:normalizedString"/>
1458 </xs:sequence>
1459 </xs:group>
1460 <xs:group name="HiiEnable">
1461 <xs:annotation>
1462 <xs:documentation xml:lang="en">If HiiEnable group is specified, then HiiEnable is default true</xs:documentation>
1463 </xs:annotation>
1464 <xs:sequence>
1465 <xs:element minOccurs="0" maxOccurs="1" name="VariableName" type="VariableNameDataType"/>
1466 <xs:element minOccurs="0" maxOccurs="1" name="VariableGuid" type="VariableGuidType"/>
1467 <xs:element minOccurs="0" maxOccurs="1" name="VariableOffset" type="Hex64BitDataType"/>
1468 <xs:element minOccurs="0" maxOccurs="1" name="HiiDefaultValue" type="xs:normalizedString"/>
1469 </xs:sequence>
1470 </xs:group>
1471 <xs:group name="VpdEnable">
1472 <xs:annotation>
1473 <xs:documentation xml:lang="en">If VpdEnable group is specified, then VpdEnable is default true</xs:documentation>
1474 </xs:annotation>
1475 <xs:sequence>
1476 <xs:element minOccurs="0" maxOccurs="1" name="VpdOffset" type="Hex64BitDataType"/>
1477 </xs:sequence>
1478 </xs:group>
1479 <xs:element name="PcdCoded">
1480 <xs:annotation>
1481 <xs:documentation xml:lang="en">Child of Module Surface Area Description (MSA)</xs:documentation>
1482 </xs:annotation>
1483 <xs:complexType>
1484 <xs:sequence minOccurs="1">
1485 <xs:element maxOccurs="unbounded" name="PcdEntry">
1486 <xs:annotation>
1487 <xs:documentation xml:lang="en">This is the valid content of the PCD table of a Module. The contents may not be wired at build time, and these only refer to Platform Build values, not modules.</xs:documentation>
1488 <xs:documentation xml:lang="en">This element is valid for PcdInfo.xml and FPD files.</xs:documentation>
1489 </xs:annotation>
1490 <xs:complexType>
1491 <xs:sequence>
1492 <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
1493 <xs:element minOccurs="0" maxOccurs="1" name="DefaultValue" type="DefaultValue"/>
1494 <xs:element minOccurs="0" maxOccurs="1" ref="HelpText"/>
1495 </xs:sequence>
1496 <!-- MSA file declares a single usage, and must match one of the entries in what the SPD file declares as the set of possible Item Types. -->
1497 <xs:attribute name="PcdItemType" type="PcdItemTypes" use="required"/>
1498 </xs:complexType>
1499 </xs:element>
1500 </xs:sequence>
1501 </xs:complexType>
1502 </xs:element>
1503 <!-- LAH This is PcdDeclarations FINAL version -->
1504 <xs:element name="PcdDeclarations">
1505 <xs:annotation>
1506 <xs:documentation xml:lang="en">Child of Package Surface Area Description (SPD)</xs:documentation>
1507 <xs:documentation xml:lang="en">This section is for entering information about a package's PCDs</xs:documentation>
1508 </xs:annotation>
1509 <xs:complexType>
1510 <xs:sequence minOccurs="1">
1511 <xs:element maxOccurs="unbounded" name="PcdEntry">
1512 <xs:complexType>
1513 <xs:sequence>
1514 <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
1515 <xs:element minOccurs="1" maxOccurs="1" name="Token" type="TokenDataType"/>
1516 <xs:element minOccurs="1" maxOccurs="1" name="TokenSpaceGuid" type="GuidType"/>
1517 <xs:element minOccurs="1" maxOccurs="1" name="DatumType" type="PcdDataTypes"/>
1518 <xs:element minOccurs="1" maxOccurs="1" name="ValidUsage" type="PcdListType"/>
1519 <xs:element minOccurs="0" maxOccurs="1" name="DefaultValue" type="DefaultValue"/>
1520 <xs:element minOccurs="1" maxOccurs="1" ref="HelpText"/>
1521 </xs:sequence>
1522 <xs:attributeGroup ref="PcdDeclarationAttributes"/>
1523 </xs:complexType>
1524 </xs:element>
1525 </xs:sequence>
1526 </xs:complexType>
1527 </xs:element>
1528 <!-- DO NOT USE removing PcdDefinitions, use PcdDeclarations for SPD entries Use PcdBuildDeclarations for MSA Entires and PcdDynamicBuildDeclarations for FPD Entries -->
1529 <xs:element name="PcdDefinitions">
1530 <xs:annotation>
1531 <xs:documentation xml:lang="en">Child of Package Surface Area Description (SPD)</xs:documentation>
1532 <xs:documentation xml:lang="en">This permits entering information about a package's PCD information</xs:documentation>
1533 </xs:annotation>
1534 <xs:complexType>
1535 <xs:sequence minOccurs="1">
1536 <xs:element maxOccurs="unbounded" name="PcdEntry">
1537 <xs:annotation>
1538 <xs:documentation xml:lang="en">This is the valid content of the PCD table of a Module. The contents may not be wired at build time, and these only refer to Platform Build values, not modules.</xs:documentation>
1539 <xs:documentation xml:lang="en">This element is valid for PcdInfo.xml and FPD files.</xs:documentation>
1540 <xs:documentation xml:lang="en">There is ONE required Attribute, ItemType</xs:documentation>
1541 </xs:annotation>
1542 <xs:complexType>
1543 <xs:sequence>
1544 <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
1545 <xs:element minOccurs="1" maxOccurs="1" name="Token" type="Token"/>
1546 <xs:element minOccurs="0" maxOccurs="1" name="TokenSpaceGuid" type="GuidType"/>
1547 <xs:element minOccurs="1" maxOccurs="1" name="DatumType" type="PcdDataTypes"/>
1548 <xs:element default="false" minOccurs="0" maxOccurs="1" name="HiiEnable" type="xs:boolean"/>
1549 <xs:element default="false" minOccurs="0" maxOccurs="1" name="VpdEnable" type="xs:boolean"/>
1550 <xs:element default="false" minOccurs="0" maxOccurs="1" name="AlternateNameSpaceEnable" type="xs:boolean"/>
1551 <xs:element default="false" minOccurs="0" maxOccurs="1" name="SkuEnable" type="xs:boolean"/>
1552 <xs:element default="false" minOccurs="0" maxOccurs="1" name="SkuDataArrayEnable" type="xs:boolean"/>
1553 <xs:element default="0x00" minOccurs="0" maxOccurs="1" name="MaxSku" type="HexByteDataType"/>
1554 <xs:element default="0x00" minOccurs="0" maxOccurs="1" name="SkuId" type="HexByteDataType"/>
1555 <xs:element minOccurs="0" maxOccurs="1" name="DatumSize">
1556 <xs:annotation>
1557 <xs:documentation xml:lang="en">Max Number of Bytes of the data.</xs:documentation>
1558 </xs:annotation>
1559 <xs:simpleType>
1560 <xs:restriction base="xs:int">
1561 <xs:minInclusive value="1"/>
1562 <xs:maxInclusive value="16777215"/>
1563 </xs:restriction>
1564 </xs:simpleType>
1565 </xs:element>
1566 <xs:element minOccurs="0" maxOccurs="1" name="VariableName" type="xs:normalizedString"/>
1567 <xs:element minOccurs="0" maxOccurs="1" name="VariableGuid" type="VariableGuidType"/>
1568 <xs:element minOccurs="0" maxOccurs="1" name="DataOffset" type="Hex64BitDataType"/>
1569 <xs:element default="0" minOccurs="0" maxOccurs="1" name="GuidOffset" type="Hex64BitDataType"/>
1570 <xs:element minOccurs="0" maxOccurs="1" name="DefaultValue" type="DefaultValue"/>
1571 </xs:sequence>
1572 <xs:attributeGroup ref="PcdAttributes"/>
1573 </xs:complexType>
1574 </xs:element>
1575 </xs:sequence>
1576 </xs:complexType>
1577 </xs:element>
1578 <xs:element name="Platform">
1579 <xs:annotation>
1580 <xs:documentation xml:lang="en">Database Entry to locate the Platform Build Tips - path to FPD file.</xs:documentation>
1581 </xs:annotation>
1582 <xs:complexType>
1583 <xs:sequence>
1584 <xs:element minOccurs="0" maxOccurs="1" name="PlatformName">
1585 <xs:annotation>
1586 <xs:documentation xml:lang="en">Define the Name of a Platform</xs:documentation>
1587 </xs:annotation>
1588 <xs:complexType>
1589 <xs:simpleContent>
1590 <xs:extension base="PlatformNamingConvention">
1591 <xs:attributeGroup ref="PlatformAttributes"/>
1592 </xs:extension>
1593 </xs:simpleContent>
1594 </xs:complexType>
1595 </xs:element>
1596 <xs:choice minOccurs="0">
1597 <xs:element minOccurs="0" maxOccurs="1" ref="Path"/>
1598 <xs:element minOccurs="0" maxOccurs="1" ref="Filename"/>
1599 </xs:choice>
1600 <xs:element minOccurs="0" maxOccurs="1" ref="InstalledDate"/>
1601 <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>
1602 <xs:element minOccurs="0" maxOccurs="1" name="AlternatePcdFile" type="FileNameConvention"/>
1603 <xs:element minOccurs="0" maxOccurs="1" name="AlternateFdfFile" type="FileNameConvention"/>
1604 </xs:sequence>
1605 <xs:attributeGroup ref="PlatformAttributes"/>
1606 </xs:complexType>
1607 </xs:element>
1608 <xs:element name="PpiDeclarations">
1609 <xs:annotation>
1610 <xs:documentation xml:lang="en">This is a child of PackageSurfaceArea (SPD) </xs:documentation>
1611 </xs:annotation>
1612 <xs:complexType>
1613 <xs:sequence>
1614 <xs:element minOccurs="1" maxOccurs="unbounded" name="Entry">
1615 <xs:complexType>
1616 <xs:sequence>
1617 <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
1618 <xs:choice>
1619 <!-- DO NOT USE removing Guid in final, use GuidValue instead -->
1620 <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
1621 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
1622 </xs:choice>
1623 <xs:element minOccurs="0" maxOccurs="1" ref="HelpText"/>
1624 </xs:sequence>
1625 <xs:attributeGroup ref="PpiDeclarationAttributes"/>
1626 </xs:complexType>
1627 </xs:element>
1628 </xs:sequence>
1629 </xs:complexType>
1630 </xs:element>
1631 <xs:element name="PPIs">
1632 <xs:annotation>
1633 <xs:documentation xml:lang="en">Provide for one or more Ppi or PpiNotify sections. </xs:documentation>
1634 </xs:annotation>
1635 <xs:complexType>
1636 <xs:sequence minOccurs="1">
1637 <xs:element minOccurs="0" maxOccurs="unbounded" name="Ppi">
1638 <xs:complexType>
1639 <xs:simpleContent>
1640 <xs:extension base="C_Name">
1641 <xs:attributeGroup ref="PpiAttributes"/>
1642 </xs:extension>
1643 </xs:simpleContent>
1644 </xs:complexType>
1645 </xs:element>
1646 <xs:element minOccurs="0" maxOccurs="unbounded" name="PpiNotify">
1647 <xs:complexType>
1648 <xs:simpleContent>
1649 <xs:extension base="C_Name">
1650 <xs:attributeGroup ref="PpiNotifyAttributes"/>
1651 </xs:extension>
1652 </xs:simpleContent>
1653 </xs:complexType>
1654 </xs:element>
1655 <!-- DO NOT USE Arch element, use Arch Attribute in above instead. -->
1656 <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
1657 <xs:complexType>
1658 <xs:sequence>
1659 <xs:element minOccurs="0" maxOccurs="unbounded" name="Ppi">
1660 <xs:complexType>
1661 <xs:simpleContent>
1662 <xs:extension base="C_Name">
1663 <xs:attributeGroup ref="PpiAttributes"/>
1664 </xs:extension>
1665 </xs:simpleContent>
1666 </xs:complexType>
1667 </xs:element>
1668 <xs:element minOccurs="0" maxOccurs="unbounded" name="PpiNotify">
1669 <xs:complexType>
1670 <xs:simpleContent>
1671 <xs:extension base="C_Name">
1672 <xs:attributeGroup ref="PpiNotifyAttributes"/>
1673 </xs:extension>
1674 </xs:simpleContent>
1675 </xs:complexType>
1676 </xs:element>
1677 </xs:sequence>
1678 <xs:attribute name="ArchType" type="SupportedArchitectures"/>
1679 </xs:complexType>
1680 </xs:element>
1681 </xs:sequence>
1682 </xs:complexType>
1683 </xs:element>
1684 <xs:element name="ProtocolDeclarations">
1685 <xs:annotation>
1686 <xs:documentation xml:lang="en">This is a child of PackageSurfaceArea (SPD) </xs:documentation>
1687 </xs:annotation>
1688 <xs:complexType>
1689 <xs:sequence>
1690 <xs:element minOccurs="1" maxOccurs="unbounded" name="Entry">
1691 <xs:complexType>
1692 <xs:sequence>
1693 <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
1694 <xs:choice>
1695 <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
1696 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
1697 </xs:choice>
1698 <xs:element minOccurs="0" maxOccurs="1" ref="HelpText"/>
1699 </xs:sequence>
1700 <xs:attributeGroup ref="ProtocolDeclarationAttributes"/>
1701 </xs:complexType>
1702 </xs:element>
1703 </xs:sequence>
1704 </xs:complexType>
1705 </xs:element>
1706 <xs:element name="Protocols">
1707 <xs:annotation>
1708 <xs:documentation xml:lang="en">If either Protocol or ProtocolNotify sections are needed, one or more of them should be specified within this section</xs:documentation>
1709 </xs:annotation>
1710 <xs:complexType>
1711 <xs:sequence minOccurs="1" maxOccurs="unbounded">
1712 <xs:element minOccurs="0" maxOccurs="unbounded" name="Protocol">
1713 <xs:complexType>
1714 <xs:simpleContent>
1715 <xs:extension base="C_Name">
1716 <xs:attributeGroup ref="ProtocolAttributes"/>
1717 </xs:extension>
1718 </xs:simpleContent>
1719 </xs:complexType>
1720 </xs:element>
1721 <xs:element minOccurs="0" maxOccurs="unbounded" name="ProtocolNotify">
1722 <xs:complexType>
1723 <xs:simpleContent>
1724 <xs:extension base="C_Name">
1725 <xs:attributeGroup ref="ProtocolNotifyAttributes"/>
1726 </xs:extension>
1727 </xs:simpleContent>
1728 </xs:complexType>
1729 </xs:element>
1730 <!-- DO NOT USE! removing Arch element, use Arch attribute of Protocol or ProtocolNotify instead. -->
1731 <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
1732 <xs:complexType>
1733 <xs:sequence>
1734 <xs:element minOccurs="0" maxOccurs="unbounded" name="Protocol">
1735 <xs:complexType>
1736 <xs:simpleContent>
1737 <xs:extension base="C_Name">
1738 <xs:attributeGroup ref="ProtocolAttributes"/>
1739 </xs:extension>
1740 </xs:simpleContent>
1741 </xs:complexType>
1742 </xs:element>
1743 <xs:element minOccurs="0" maxOccurs="unbounded" name="ProtocolNotify">
1744 <xs:complexType>
1745 <xs:simpleContent>
1746 <xs:extension base="C_Name">
1747 <xs:attributeGroup ref="ProtocolNotifyAttributes"/>
1748 </xs:extension>
1749 </xs:simpleContent>
1750 </xs:complexType>
1751 </xs:element>
1752 </xs:sequence>
1753 <xs:attribute name="ArchType" type="SupportedArchitectures"/>
1754 </xs:complexType>
1755 </xs:element>
1756 </xs:sequence>
1757 </xs:complexType>
1758 </xs:element>
1759 <xs:element default="false" name="ReadOnly" type="xs:boolean"/>
1760 <xs:element default="false" name="RePackage" type="xs:boolean"/>
1761 <xs:element name="Sections">
1762 <xs:annotation>
1763 <xs:documentation xml:lang="en">Sections refers to the Firmware Filesystem sections, PE32, UI, VER, DXS, etc. and how they are made</xs:documentation>
1764 </xs:annotation>
1765 <xs:complexType>
1766 <xs:sequence minOccurs="1">
1767 <xs:element minOccurs="0" maxOccurs="unbounded" name="Section">
1768 <xs:complexType>
1769 <xs:sequence>
1770 <xs:element minOccurs="0" ref="Filenames"/>
1771 <xs:element minOccurs="0" name="Args" type="ArgsType"/>
1772 <xs:element minOccurs="0" name="OutFile" type="FileNameConvention"/>
1773 <xs:element minOccurs="0" name="OutputFileExtension" type="xs:string"/>
1774 <xs:element minOccurs="0" name="ToolName" type="ToolType"/>
1775 </xs:sequence>
1776 <xs:attributeGroup ref="SectionAttributes"/>
1777 </xs:complexType>
1778 </xs:element>
1779 <xs:element minOccurs="0" maxOccurs="unbounded" name="Sections">
1780 <xs:complexType>
1781 <xs:sequence minOccurs="1" maxOccurs="unbounded">
1782 <xs:element name="Section">
1783 <xs:complexType>
1784 <xs:sequence>
1785 <xs:element minOccurs="0" ref="Filenames"/>
1786 <xs:element minOccurs="0" name="Args" type="ArgsType"/>
1787 <xs:element minOccurs="0" name="OutFile" type="FileNameConvention"/>
1788 <xs:element minOccurs="0" name="OutputFileExtension" type="xs:string"/>
1789 <xs:element minOccurs="0" name="ToolName" type="ToolType"/>
1790 </xs:sequence>
1791 <xs:attributeGroup ref="SectionAttributes"/>
1792 </xs:complexType>
1793 </xs:element>
1794 </xs:sequence>
1795 <xs:attributeGroup ref="SectionsAttributes"/>
1796 </xs:complexType>
1797 </xs:element>
1798 </xs:sequence>
1799 <xs:attributeGroup ref="SectionsAttributes"/>
1800 </xs:complexType>
1801 </xs:element>
1802 <xs:element name="SetVirtualAddressMapCallBack" type="C_Name"/>
1803 <xs:element name="SourceFiles">
1804 <xs:annotation>
1805 <xs:documentation xml:lang="en">Multiple Filenames may be specified, and they may also be scoped to a specific Architecture.</xs:documentation>
1806 </xs:annotation>
1807 <xs:complexType>
1808 <xs:sequence minOccurs="1">
1809 <xs:element minOccurs="0" maxOccurs="unbounded" ref="Filename"/>
1810 <!-- DO NOT USE! removing Arch element, use Arch Attribute of Filename instead. -->
1811 <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
1812 <xs:complexType>
1813 <xs:sequence minOccurs="1">
1814 <xs:element maxOccurs="unbounded" ref="Filename"/>
1815 </xs:sequence>
1816 <xs:attribute name="ArchType" type="SupportedArchitectures"/>
1817 </xs:complexType>
1818 </xs:element>
1819 </xs:sequence>
1820 </xs:complexType>
1821 </xs:element>
1822 <xs:element name="SkuInfo">
1823 <xs:complexType>
1824 <xs:sequence minOccurs="1" maxOccurs="unbounded">
1825 <xs:element name="UiSkuName">
1826 <xs:complexType>
1827 <xs:simpleContent>
1828 <xs:extension base="UiNameType">
1829 <xs:attribute name="SkuID" type="xs:nonNegativeInteger" use="required"/>
1830 </xs:extension>
1831 </xs:simpleContent>
1832 </xs:complexType>
1833 </xs:element>
1834 </xs:sequence>
1835 </xs:complexType>
1836 </xs:element>
1837 <xs:element name="Specification">
1838 <xs:annotation>
1839 <xs:documentation xml:lang="en">This string is used to provide the name and version of the Specification that the component conforms to.</xs:documentation>
1840 </xs:annotation>
1841 <xs:complexType>
1842 <xs:simpleContent>
1843 <xs:extension base="xs:normalizedString">
1844 <xs:attribute name="Version" type="xs:normalizedString" use="optional"/>
1845 </xs:extension>
1846 </xs:simpleContent>
1847 </xs:complexType>
1848 </xs:element>
1849 <xs:element name="SystemTables">
1850 <xs:annotation>
1851 <xs:documentation xml:lang="en">This is list of System Table elements.</xs:documentation>
1852 </xs:annotation>
1853 <xs:complexType>
1854 <xs:sequence minOccurs="1" maxOccurs="unbounded">
1855 <xs:element name="SystemTable">
1856 <xs:complexType mixed="true">
1857 <xs:sequence minOccurs="1" maxOccurs="unbounded">
1858 <!-- Remove Entry from Use -->
1859 <xs:element minOccurs="0" maxOccurs="1" name="Entry" type="xs:normalizedString"/>
1860 </xs:sequence>
1861 <xs:attributeGroup ref="SystemTableAttributes"/>
1862 </xs:complexType>
1863 </xs:element>
1864 </xs:sequence>
1865 </xs:complexType>
1866 </xs:element>
1867 <xs:element name="Updated" type="DateType"/>
1868 <xs:element name="UpdatedDate" type="DateType"/>
1869 <xs:element name="URL" type="xs:anyURI"/>
1870 <xs:element name="URI" type="xs:anyURI"/>
1871 <xs:element name="UserDefinedAntTasks">
1872 <xs:annotation>
1873 <xs:documentation xml:lang="en">This is a sub-element of BuildOptions</xs:documentation>
1874 <xs:documentation xml:lang="en">Permit Users to define their own custom ANT tasks.</xs:documentation>
1875 </xs:annotation>
1876 <xs:complexType>
1877 <xs:sequence maxOccurs="unbounded">
1878 <xs:element minOccurs="1" ref="AntTask"/>
1879 </xs:sequence>
1880 </xs:complexType>
1881 </xs:element>
1882 <xs:element name="UserExtensions">
1883 <xs:complexType>
1884 <xs:complexContent mixed="true">
1885 <xs:extension base="xs:anyType">
1886 <xs:attribute name="UserID" type="xs:NCName" use="required"/>
1887 <xs:attribute name="Identifier" type="xs:integer" use="required"/>
1888 </xs:extension>
1889 </xs:complexContent>
1890 </xs:complexType>
1891 </xs:element>
1892 <xs:element name="Variables">
1893 <xs:annotation>
1894 <xs:documentation xml:lang="en">An MSA FILE list of EFI Variables described by string pair.</xs:documentation>
1895 </xs:annotation>
1896 <xs:complexType>
1897 <xs:sequence minOccurs="1" maxOccurs="unbounded">
1898 <xs:element name="Variable">
1899 <xs:annotation>
1900 <xs:documentation xml:lang="en">This is an EFI Variable Entry</xs:documentation>
1901 </xs:annotation>
1902 <xs:complexType>
1903 <xs:sequence>
1904 <xs:choice>
1905 <!-- DO NOT USE remove String from final -->
1906 <xs:element minOccurs="1" maxOccurs="1" name="String" type="xs:normalizedString"/>
1907 <!-- Make VariableName required -->
1908 <xs:element minOccurs="0" maxOccurs="1" name="VariableName" type="VariableNameDataType"/>
1909 </xs:choice>
1910 <xs:choice minOccurs="1">
1911 <!-- DO NOT USE, use GuidC_Name instead -->
1912 <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
1913 <!-- DO NOT USE, use GuidC_Name instead -->
1914 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
1915 <!-- Make GuidC_Name required -->
1916 <xs:element minOccurs="0" maxOccurs="1" name="GuidC_Name" type="GuidC_NameType"/>
1917 </xs:choice>
1918 <!-- DO NOT USE, removiing ByteOffset, Bit Offset and OffsetBitSize-->
1919 <xs:element minOccurs="0" maxOccurs="1" name="ByteOffset" type="HexWordDataType">
1920 <xs:annotation>
1921 <xs:documentation xml:lang="en">This entry represents the Hex Byte Offset {0x0, 0xn} to where the data starts.</xs:documentation>
1922 </xs:annotation>
1923 </xs:element>
1924 <xs:element minOccurs="0" maxOccurs="1" name="BitOffset">
1925 <xs:annotation>
1926 <xs:documentation xml:lang="en">This entry represents the Location of the Starting Bit {0,8} of the start of Data. A value of zero or 1 indicates that there is no BitOffset into the byte.</xs:documentation>
1927 </xs:annotation>
1928 <xs:simpleType>
1929 <xs:restriction base="xs:int">
1930 <xs:minInclusive value="0"/>
1931 <xs:maxInclusive value="8"/>
1932 </xs:restriction>
1933 </xs:simpleType>
1934 </xs:element>
1935 <xs:element minOccurs="0" maxOccurs="1" name="OffsetBitSize">
1936 <xs:annotation>
1937 <xs:documentation xml:lang="en">This number represents the number of bits to use {0, 7} starting at the BitOffset. A value of 0 indicates that the entire Byte should be used.</xs:documentation>
1938 </xs:annotation>
1939 <xs:simpleType>
1940 <xs:restriction base="xs:int">
1941 <xs:minInclusive value="0"/>
1942 <xs:maxInclusive value="7"/>
1943 </xs:restriction>
1944 </xs:simpleType>
1945 </xs:element>
1946 </xs:sequence>
1947 <xs:attributeGroup ref="VariableAttributes"/>
1948 </xs:complexType>
1949 </xs:element>
1950 <!-- DO NOT USE Arch element, use attribute Arch in above. -->
1951 <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
1952 <xs:complexType>
1953 <xs:sequence>
1954 <xs:element name="Variable">
1955 <xs:annotation>
1956 <xs:documentation xml:lang="en">This is an EFI Variable Entry</xs:documentation>
1957 </xs:annotation>
1958 <xs:complexType>
1959 <xs:sequence>
1960 <xs:element minOccurs="1" maxOccurs="1" name="String" type="xs:normalizedString"/>
1961 <xs:element minOccurs="1" maxOccurs="1" ref="Guid"/>
1962 <xs:element minOccurs="0" maxOccurs="1" name="ByteOffset" type="HexWordDataType">
1963 <xs:annotation>
1964 <xs:documentation xml:lang="en">This entry represents the Hex Byte Offset {0x0, 0xn} to where the data starts.</xs:documentation>
1965 </xs:annotation>
1966 </xs:element>
1967 <xs:element minOccurs="0" maxOccurs="1" name="BitOffset">
1968 <xs:annotation>
1969 <xs:documentation xml:lang="en">This entry represents the Location of the Starting Bit {0,8} of the start of Data. A value of zero or 1 indicates that there is no BitOffset into the byte.</xs:documentation>
1970 </xs:annotation>
1971 <xs:simpleType>
1972 <xs:restriction base="xs:int">
1973 <xs:minInclusive value="0"/>
1974 <xs:maxInclusive value="8"/>
1975 </xs:restriction>
1976 </xs:simpleType>
1977 </xs:element>
1978 <xs:element minOccurs="0" maxOccurs="1" name="OffsetBitSize">
1979 <xs:annotation>
1980 <xs:documentation xml:lang="en">This number represents the number of bits to use {0, 7} starting at the BitOffset. A value of 0 indicates that the entire Byte should be used.</xs:documentation>
1981 </xs:annotation>
1982 <xs:simpleType>
1983 <xs:restriction base="xs:int">
1984 <xs:minInclusive value="0"/>
1985 <xs:maxInclusive value="7"/>
1986 </xs:restriction>
1987 </xs:simpleType>
1988 </xs:element>
1989 </xs:sequence>
1990 <xs:attributeGroup ref="VariableAttributes"/>
1991 </xs:complexType>
1992 </xs:element>
1993 </xs:sequence>
1994 <xs:attribute name="ArchType" type="SupportedArchitectures"/>
1995 </xs:complexType>
1996 </xs:element>
1997 </xs:sequence>
1998 </xs:complexType>
1999 </xs:element>
2000 <xs:element name="Version" type="xs:normalizedString"/>
2001 <xs:element name="FarList">
2002 <xs:annotation>
2003 <xs:documentation xml:lang="en">This tag is used in the Framework Package Database File to track all DISTRIBUTION packages (FAR files) installed in a workspace. (Database)</xs:documentation>
2004 </xs:annotation>
2005 <xs:complexType>
2006 <xs:sequence>
2007 <xs:element minOccurs="1" maxOccurs="unbounded" name="Filename" type="PathAndFilename"/>
2008 </xs:sequence>
2009 </xs:complexType>
2010 </xs:element>
2011 </xs:schema>