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