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