]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/XMLSchema/FrameworkDataTypes.xsd
Updated the FPD and SPD files to newer schema formats. Also updated a couple of...
[mirror_edk2.git] / Tools / XMLSchema / FrameworkDataTypes.xsd
CommitLineData
878ddf1f 1<?xml version="1.0" encoding="UTF-8"?>\r
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns="http://www.TianoCore.org/2006/Edk2.0" targetNamespace="http://www.TianoCore.org/2006/Edk2.0">\r
3 <!--\r
4 Filename: FrameworkDataTypes.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
92e805e9 16 <xs:documentation xml:lang="en">This schema defines EFI and Framework Data Types. Only simpleType are specified in this file. </xs:documentation>\r
878ddf1f 17 </xs:annotation>\r
18 <xs:include schemaLocation="NamingConvention.xsd"/>\r
47d0b581 19 <xs:simpleType name="ArchList">\r
20 <xs:annotation>\r
21 <xs:documentation xml:lang="en">A list of one or more: IA32, X64, IPF and/or EBC</xs:documentation>\r
22 </xs:annotation>\r
23 <xs:list itemType="SupportedArchitectures"/>\r
24 </xs:simpleType>\r
878ddf1f 25 <xs:simpleType name="BlockNameType">\r
26 <xs:annotation>\r
27 <xs:documentation xml:lang="en">FIRMWARE: Define a block name to be BLOCK[A-F0-9]{2}</xs:documentation>\r
28 </xs:annotation>\r
29 <xs:restriction base="UCNameType">\r
30 <xs:pattern value="BLOCK([A-F0-9]){2}"/>\r
31 </xs:restriction>\r
32 </xs:simpleType>\r
33 <xs:simpleType name="BootModeNames">\r
34 <xs:annotation>\r
35 <xs:documentation xml:lang="en">This describes what boot modes can be set (produced) or what boot modes can be supported, as defined in the Module Surface Area Specification</xs:documentation>\r
36 </xs:annotation>\r
37 <xs:restriction base="NameConvention">\r
38 <xs:enumeration value="FULL">\r
39 <xs:annotation>\r
40 <xs:documentation xml:lang="en">BOOT_WITH_FULL_CONFIGURATION</xs:documentation>\r
41 </xs:annotation>\r
42 </xs:enumeration>\r
43 <xs:enumeration value="MINIMAL">\r
44 <xs:annotation>\r
45 <xs:documentation xml:lang="en">BOOT_WITH_MINIMAL_CONFIGURATION</xs:documentation>\r
46 </xs:annotation>\r
47 </xs:enumeration>\r
48 <xs:enumeration value="NO_CHANGE">\r
49 <xs:annotation>\r
50 <xs:documentation xml:lang="en">BOOT_ASSUMING_NO_CONFIGURATION_CHANGES</xs:documentation>\r
51 </xs:annotation>\r
52 </xs:enumeration>\r
53 <xs:enumeration value="DIAGNOSTICS">\r
54 <xs:annotation>\r
55 <xs:documentation xml:lang="en">BOOT_WITH_FULL_CONFIGURATION_PLUS_DIAGNOSTICS</xs:documentation>\r
56 </xs:annotation>\r
57 </xs:enumeration>\r
58 <xs:enumeration value="DEFAULT">\r
59 <xs:annotation>\r
60 <xs:documentation xml:lang="en">BOOT_WITH_DEFAULT_SETTINGS</xs:documentation>\r
61 </xs:annotation>\r
62 </xs:enumeration>\r
63 <xs:enumeration value="S2_RESUME">\r
64 <xs:annotation>\r
65 <xs:documentation xml:lang="en">BOOT_ON_S2_RESUME</xs:documentation>\r
66 </xs:annotation>\r
67 </xs:enumeration>\r
68 <xs:enumeration value="S3_RESUME">\r
69 <xs:annotation>\r
70 <xs:documentation xml:lang="en">BOOT_ON_S3_RESUME</xs:documentation>\r
71 </xs:annotation>\r
72 </xs:enumeration>\r
73 <xs:enumeration value="S4_RESUME">\r
74 <xs:annotation>\r
75 <xs:documentation xml:lang="en">BOOT_ON_S4_RESUME</xs:documentation>\r
76 </xs:annotation>\r
77 </xs:enumeration>\r
78 <xs:enumeration value="S5_RESUME">\r
79 <xs:annotation>\r
80 <xs:documentation xml:lang="en">BOOT_ON_S5_RESUME</xs:documentation>\r
81 </xs:annotation>\r
82 </xs:enumeration>\r
83 <xs:enumeration value="FLASH_UPDATE">\r
84 <xs:annotation>\r
85 <xs:documentation xml:lang="en">BOOT_ON_FLASH_UPDATE</xs:documentation>\r
86 </xs:annotation>\r
87 </xs:enumeration>\r
88 <xs:enumeration value="RECOVERY">\r
89 <xs:annotation>\r
90 <xs:documentation xml:lang="en">BOOT_IN_RECOVERY_MODE</xs:documentation>\r
91 </xs:annotation>\r
92 </xs:enumeration>\r
93 </xs:restriction>\r
94 </xs:simpleType>\r
95 <xs:simpleType name="BootModeUsage">\r
96 <xs:annotation>\r
97 <xs:documentation xml:lang="en">This describes the Boot Mode Usage Attributes, as defined in the Module Surface Area Specification</xs:documentation>\r
98 </xs:annotation>\r
99 <xs:restriction base="NameConvention">\r
100 <xs:enumeration value="ALWAYS_CONSUMED">\r
101 <xs:annotation>\r
102 <xs:documentation xml:lang="en">Supports the Boot Mode</xs:documentation>\r
103 </xs:annotation>\r
104 </xs:enumeration>\r
105 <xs:enumeration value="SOMETIMES_CONSUMED">\r
106 <xs:annotation>\r
107 <xs:documentation xml:lang="en">Supports the Boot Mode on some execution path</xs:documentation>\r
108 </xs:annotation>\r
109 </xs:enumeration>\r
110 <xs:enumeration value="ALWAYS_PRODUCED">\r
111 <xs:annotation>\r
112 <xs:documentation xml:lang="en">Always changes the Boot Mode</xs:documentation>\r
113 </xs:annotation>\r
114 </xs:enumeration>\r
115 <xs:enumeration value="SOMETIMES_PRODUCED">\r
116 <xs:annotation>\r
117 <xs:documentation xml:lang="en">Sometimes changes the Boot Mode</xs:documentation>\r
118 </xs:annotation>\r
119 </xs:enumeration>\r
120 </xs:restriction>\r
121 </xs:simpleType>\r
2fdd0c7d 122 <xs:simpleType name="BuildTargets">\r
123 <xs:restriction base="xs:NCName">\r
124 <xs:enumeration value="DEBUG"/>\r
125 <xs:enumeration value="RELEASE"/>\r
126 <xs:enumeration value="BOTH"/>\r
127 </xs:restriction>\r
128 </xs:simpleType>\r
878ddf1f 129 <xs:simpleType name="ComponentExecutionPhase">\r
130 <xs:annotation>\r
131 <xs:documentation xml:lang="en">These are the supported EFI/Framework Execution Phases</xs:documentation>\r
132 </xs:annotation>\r
133 <xs:restriction base="UCNameType">\r
134 <xs:enumeration value="MDE"/>\r
135 <xs:enumeration value="SEC"/>\r
136 <xs:enumeration value="PEI_CORE"/>\r
137 <xs:enumeration value="PEIM"/>\r
138 <xs:enumeration value="DXE_CORE"/>\r
139 <xs:enumeration value="DXE_DRIVER"/>\r
140 <xs:enumeration value="DXE_RUNTIME_DRIVER"/>\r
141 <xs:enumeration value="DXE_SAL_DRIVER"/>\r
142 <xs:enumeration value="DXE_SMM_DRIVER"/>\r
143 <xs:enumeration value="UEFI"/>\r
144 <xs:enumeration value="UEFI_APPLICATION"/>\r
145 </xs:restriction>\r
146 </xs:simpleType>\r
147 <xs:simpleType name="ConditionalTarget">\r
148 <xs:annotation>\r
149 <xs:documentation xml:lang="en">Conditional Targets are Other FeatureFlag Identifiers</xs:documentation>\r
150 </xs:annotation>\r
151 <xs:list itemType="C_Name"/>\r
152 </xs:simpleType>\r
153 <xs:simpleType name="DataHubUsage">\r
154 <xs:annotation>\r
155 <xs:documentation xml:lang="en">This describes the Data Hub Usage Attributes, as defined in the Module Surface Area Specification</xs:documentation>\r
156 </xs:annotation>\r
157 <xs:restriction base="NameConvention">\r
158 <xs:enumeration value="ALWAYS_CONSUMED">\r
159 <xs:annotation>\r
160 <xs:documentation xml:lang="en">The module always consumes a data hub entry via registering a filter driver.</xs:documentation>\r
161 </xs:annotation>\r
162 </xs:enumeration>\r
163 <xs:enumeration value="SOMETIMES_CONSUMED">\r
164 <xs:annotation>\r
165 <xs:documentation xml:lang="en">The module will use a data hub entry if it exists via registering a filter driver.</xs:documentation>\r
166 </xs:annotation>\r
167 </xs:enumeration>\r
168 <xs:enumeration value="ALWAYS_PRODUCED">\r
169 <xs:annotation>\r
170 <xs:documentation xml:lang="en">The module always logs data into the data hub.</xs:documentation>\r
171 </xs:annotation>\r
172 </xs:enumeration>\r
173 <xs:enumeration value="SOMETIMES_PRODUCED">\r
174 <xs:annotation>\r
175 <xs:documentation xml:lang="en">The module will log data into the data hub under certain circumstances</xs:documentation>\r
176 </xs:annotation>\r
177 </xs:enumeration>\r
178 <xs:enumeration value="PRIVATE">\r
179 <xs:annotation>\r
180 <xs:documentation xml:lang="en">DataHub is produced and consumed only by this module</xs:documentation>\r
181 </xs:annotation>\r
182 </xs:enumeration>\r
183 </xs:restriction>\r
184 </xs:simpleType>\r
185 <xs:simpleType name="DateType">\r
186 <xs:annotation>\r
187 <xs:documentation xml:lang="en">Date Format is YYYY-MM-DD HH:MM (24hr time format)</xs:documentation>\r
188 </xs:annotation>\r
189 <xs:restriction base="xs:normalizedString">\r
190 <xs:pattern value="[1-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9] [0-2][0-9]:[0-5][0-9]"/>\r
191 </xs:restriction>\r
192 </xs:simpleType>\r
193 <xs:simpleType name="DefaultValue">\r
194 <xs:annotation>\r
195 <xs:documentation xml:lang="en"> The DefaultValue is a union of a string and an integer. </xs:documentation>\r
196 </xs:annotation>\r
197 <xs:union memberTypes="xs:normalizedString xs:int UnicodeString"/>\r
198 </xs:simpleType>\r
199 <xs:simpleType name="EfiSectionType">\r
200 <xs:restriction base="UCNameType">\r
201 <xs:enumeration value="EFI_SECTION_FREEFORM_SUBTYPE_GUID"/>\r
202 <xs:enumeration value="EFI_SECTION_VERSION"/>\r
203 <xs:enumeration value="EFI_SECTION_USER_INTERFACE"/>\r
204 <xs:enumeration value="EFI_SECTION_DXE_DEPEX"/>\r
205 <xs:enumeration value="EFI_SECTION_PEI_DEPEX"/>\r
206 <xs:enumeration value="EFI_SECTION_PE32"/>\r
207 <xs:enumeration value="EFI_SECTION_PIC"/>\r
208 <xs:enumeration value="EFI_SECTION_TE"/>\r
209 <xs:enumeration value="EFI_SECTION_RAW"/>\r
210 <xs:enumeration value="EFI_SECTION_COMPRESSION"/>\r
211 <xs:enumeration value="EFI_SECTION_GUID_DEFINED"/>\r
212 <xs:enumeration value="EFI_SECTION_COMPATIBILITY16"/>\r
213 <xs:enumeration value="EFI_SECTION_FIRMWARE_VOLUME_IMAGE"/>\r
214 </xs:restriction>\r
215 </xs:simpleType>\r
216 <xs:simpleType name="EventTypes">\r
217 <xs:annotation>\r
218 <xs:documentation xml:lang="en">This describes the Supported Event Groups, as defined in the Module Surface Area Specification</xs:documentation>\r
219 </xs:annotation>\r
220 <xs:restriction base="NameConvention">\r
221 <xs:enumeration value="EVENT_GROUP_EXIT_BOOT_SERVICES"/>\r
222 <xs:enumeration value="EVENT_GROUP_VIRTUAL_ADDRESS_CHANGE"/>\r
223 <xs:enumeration value="EVENT_GROUP_MEMORY_MAP_CHANGE"/>\r
224 <xs:enumeration value="EVENT_GROUP_READY_TO_BOOT"/>\r
225 <xs:enumeration value="EVENT_GROUP_LEGACY_BOOT"/>\r
226 </xs:restriction>\r
227 </xs:simpleType>\r
228 <xs:simpleType name="EventUsage">\r
229 <xs:annotation>\r
230 <xs:documentation xml:lang="en">This describes the Event Usage Attributes, as defined in the Module Surface Area Specification</xs:documentation>\r
231 </xs:annotation>\r
232 <xs:restriction base="NameConvention">\r
233 <xs:enumeration value="ALWAYS_CONSUMED">\r
234 <xs:annotation>\r
235 <xs:documentation xml:lang="en">A module registers a notification function and requires it to be executed for the module to fully function.</xs:documentation>\r
236 </xs:annotation>\r
237 </xs:enumeration>\r
238 <xs:enumeration value="SOMETIMES_CONSUMED">\r
239 <xs:annotation>\r
240 <xs:documentation xml:lang="en">A module registers a notification function and utilizes it if it's signaled.</xs:documentation>\r
241 </xs:annotation>\r
242 </xs:enumeration>\r
243 <xs:enumeration value="ALWAYS_PRODUCED">\r
244 <xs:annotation>\r
245 <xs:documentation xml:lang="en">A module will always signal the event.</xs:documentation>\r
246 </xs:annotation>\r
247 </xs:enumeration>\r
248 <xs:enumeration value="SOMETIMES_PRODUCED">\r
249 <xs:annotation>\r
250 <xs:documentation xml:lang="en">A module will sometimes signal the event.</xs:documentation>\r
251 </xs:annotation>\r
252 </xs:enumeration>\r
253 <xs:enumeration value="PRIVATE">\r
254 <xs:annotation>\r
255 <xs:documentation xml:lang="en">Event is produced and consumed only by this module</xs:documentation>\r
256 </xs:annotation>\r
257 </xs:enumeration>\r
258 </xs:restriction>\r
259 </xs:simpleType>\r
260 <xs:simpleType name="ExecutionType">\r
261 <xs:annotation>\r
262 <xs:documentation xml:lang="en"> This defines the output types: Relocatable (REL,) Non-Relocatable (NREL,) Execute in Place (XIP) or Position Independent Code (PIC) </xs:documentation>\r
263 </xs:annotation>\r
264 <xs:restriction base="UCNameType">\r
265 <xs:enumeration value="REL" id="Relocatable"/>\r
266 <xs:enumeration value="NREL" id="Non-Relocatable"/>\r
267 <xs:enumeration value="XIP" id="Execute_In_Place"/>\r
268 <xs:enumeration value="PIC" id="Position_Independent_Code"/>\r
269 </xs:restriction>\r
270 </xs:simpleType>\r
271 <xs:simpleType name="ExternType">\r
272 <xs:annotation>\r
273 <xs:documentation xml:lang="en">C Identifier Name for the Extern data as defined in the Module Surface Area Specification</xs:documentation>\r
274 </xs:annotation>\r
275 <xs:restriction base="xs:string">\r
276 <xs:pattern value="(_*\w*\W*)*"/>\r
277 </xs:restriction>\r
278 </xs:simpleType>\r
279 <xs:simpleType name="ExternUsage">\r
280 <xs:annotation>\r
281 <xs:documentation xml:lang="en">This describes the Extern Usage Attributes, as defined in the Module Surface Area Specification</xs:documentation>\r
282 </xs:annotation>\r
283 <xs:restriction base="NameConvention">\r
284 <xs:enumeration value="ALWAYS_CONSUMED">\r
285 <xs:annotation>\r
286 <xs:documentation xml:lang="en">The EXTERN is always imported by the module</xs:documentation>\r
287 </xs:annotation>\r
288 </xs:enumeration>\r
289 <xs:enumeration value="ALWAYS_PRODUCED">\r
290 <xs:annotation>\r
291 <xs:documentation xml:lang="en">The EXTERN is always exported by the module</xs:documentation>\r
292 </xs:annotation>\r
293 </xs:enumeration>\r
294 </xs:restriction>\r
295 </xs:simpleType>\r
296 <xs:simpleType name="FileNameUsage">\r
297 <xs:annotation>\r
298 <xs:documentation xml:lang="en">This describes the FileName Usage Attributes, as defined in the Module Surface Area Specification</xs:documentation>\r
299 </xs:annotation>\r
300 <xs:restriction base="NameConvention">\r
301 <xs:enumeration value="ALWAYS_CONSUMED">\r
302 <xs:annotation>\r
303 <xs:documentation xml:lang="en">Module requires a file named GUID in an FV</xs:documentation>\r
304 </xs:annotation>\r
305 </xs:enumeration>\r
306 <xs:enumeration value="SOMETIMES_CONSUMED">\r
307 <xs:annotation>\r
308 <xs:documentation xml:lang="en">Module will use a file named GUID in an FV if it is present</xs:documentation>\r
309 </xs:annotation>\r
310 </xs:enumeration>\r
311 <xs:enumeration value="ALWAYS_PRODUCED">\r
312 <xs:annotation>\r
313 <xs:documentation xml:lang="en">Module Always produces a file named GUID in an FV</xs:documentation>\r
314 </xs:annotation>\r
315 </xs:enumeration>\r
316 <xs:enumeration value="SOMETIMES_PRODUCED">\r
317 <xs:annotation>\r
318 <xs:documentation xml:lang="en">Module sometimes produces a file named GUID in an FV</xs:documentation>\r
319 </xs:annotation>\r
320 </xs:enumeration>\r
321 <xs:enumeration value="PRIVATE">\r
322 <xs:annotation>\r
323 <xs:documentation xml:lang="en">Filename is produced and consumed only by this module</xs:documentation>\r
324 </xs:annotation>\r
325 </xs:enumeration>\r
326 </xs:restriction>\r
327 </xs:simpleType>\r
328 <xs:simpleType name="FormSetUsage">\r
329 <xs:annotation>\r
330 <xs:documentation xml:lang="en">This describes the Formset Usage Attributes, as defined in the Module Surface Area Specification</xs:documentation>\r
331 </xs:annotation>\r
332 <xs:restriction base="NameConvention">\r
333 <xs:enumeration value="ALWAYS_PRODUCED">\r
334 <xs:annotation>\r
335 <xs:documentation xml:lang="en">The Formset is always registered into HII by the module</xs:documentation>\r
336 </xs:annotation>\r
337 </xs:enumeration>\r
338 <xs:enumeration value="SOMETIMES_PRODUCED">\r
339 <xs:annotation>\r
340 <xs:documentation xml:lang="en">Some execution paths through the modules register forms into HII</xs:documentation>\r
341 </xs:annotation>\r
342 </xs:enumeration>\r
343 <xs:enumeration value="PRIVATE">\r
344 <xs:annotation>\r
345 <xs:documentation xml:lang="en">Formset is produced and consumed only by this module</xs:documentation>\r
346 </xs:annotation>\r
347 </xs:enumeration>\r
348 </xs:restriction>\r
349 </xs:simpleType>\r
350 <xs:simpleType name="FrameworkComponentTypes">\r
351 <xs:annotation>\r
352 <xs:documentation xml:lang="en"> These are the EFI/Framework Component Types defined in the EFI Development Kit (EDK) Getting Started Guide </xs:documentation>\r
353 </xs:annotation>\r
354 <xs:restriction base="UCNameType">\r
355 <xs:enumeration value="APRIORI"/>\r
356 <xs:enumeration value="SEC"/>\r
357 <xs:enumeration value="LIBRARY"/>\r
358 <xs:enumeration value="FV_IMAGE_FILE"/>\r
359 <xs:enumeration value="BS_DRIVER"/>\r
360 <xs:enumeration value="RT_DRIVER"/>\r
361 <xs:enumeration value="SAL_RT_DRIVER"/>\r
362 <xs:enumeration value="PE32_PEIM"/>\r
363 <xs:enumeration value="PIC_PEIM"/>\r
364 <xs:enumeration value="COMBINED_PEIM_DRIVER"/>\r
365 <xs:enumeration value="PEI_CORE"/>\r
366 <xs:enumeration value="DXE_CORE"/>\r
367 <xs:enumeration value="APPLICATION"/>\r
368 <xs:enumeration value="BS_DRIVER_EFI"/>\r
369 <xs:enumeration value="SHELLAPP"/>\r
878ddf1f 370 <xs:enumeration value="UEFI_APPLICATION"/>\r
371 <xs:enumeration value="BINARY"/>\r
372 <xs:enumeration value="LOGO"/>\r
373 <xs:enumeration value="CUSTOM_BUILD"/>\r
374 </xs:restriction>\r
375 </xs:simpleType>\r
376 <xs:simpleType name="FvRegionTypes">\r
377 <xs:annotation>\r
378 <xs:documentation xml:lang="en">FIRMWARE: Pre-defined Firmware Volume Region Types</xs:documentation>\r
379 </xs:annotation>\r
380 <xs:restriction base="UCNameType">\r
381 <xs:enumeration value="FV_MAIN"/>\r
382 <xs:enumeration value="FV_MAIN_COMPACT"/>\r
383 <xs:enumeration value="NV_STORAGE"/>\r
384 <xs:enumeration value="FV_RECOVERY"/>\r
385 <xs:enumeration value="FV_RECOVERY_FLOPPY"/>\r
386 <xs:enumeration value="FV_FILE"/>\r
387 <xs:enumeration value="CAPSULE_CARGO"/>\r
388 <xs:enumeration value="NULL"/>\r
389 <xs:enumeration value="USER_DEFINED"/>\r
390 </xs:restriction>\r
391 </xs:simpleType>\r
392 <xs:simpleType name="GuidUsage">\r
393 <xs:annotation>\r
394 <xs:documentation xml:lang="en">This describes the Guid Usage Attributes, as defined in the Module Surface Area Specification</xs:documentation>\r
395 </xs:annotation>\r
396 <xs:restriction base="NameConvention">\r
397 <xs:enumeration value="ALWAYS_CONSUMED">\r
398 <xs:annotation>\r
399 <xs:documentation xml:lang="en">Module always consumes the GUID</xs:documentation>\r
400 </xs:annotation>\r
401 </xs:enumeration>\r
402 <xs:enumeration value="SOMETIMES_CONSUMED">\r
403 <xs:annotation>\r
404 <xs:documentation xml:lang="en">Module will consume the GUID only if the GUID is present</xs:documentation>\r
405 </xs:annotation>\r
406 </xs:enumeration>\r
407 <xs:enumeration value="ALWAYS_PRODUCED">\r
408 <xs:annotation>\r
409 <xs:documentation xml:lang="en">Module will always produce the GUID</xs:documentation>\r
410 </xs:annotation>\r
411 </xs:enumeration>\r
412 <xs:enumeration value="SOMETIMES_PRODUCED">\r
413 <xs:annotation>\r
414 <xs:documentation xml:lang="en">Module sometimes produces the GUID</xs:documentation>\r
415 </xs:annotation>\r
416 </xs:enumeration>\r
417 <xs:enumeration value="DEFAULT">\r
418 <xs:annotation>\r
419 <xs:documentation xml:lang="en">The default is the GUID that specifies the instance of the package</xs:documentation>\r
420 </xs:annotation>\r
421 </xs:enumeration>\r
422 <xs:enumeration value="PRIVATE">\r
423 <xs:annotation>\r
424 <xs:documentation xml:lang="en">Guid is produced and consumed only by this module</xs:documentation>\r
425 </xs:annotation>\r
426 </xs:enumeration>\r
427 </xs:restriction>\r
428 </xs:simpleType>\r
429 <xs:simpleType name="HobTypes">\r
430 <xs:annotation>\r
431 <xs:documentation xml:lang="en">Type of HOB that is being produced or consumed, as specified in the Module Surface Area Specification.</xs:documentation>\r
432 </xs:annotation>\r
433 <xs:restriction base="NameConvention">\r
434 <xs:enumeration value="PHIT">\r
435 <xs:annotation>\r
436 <xs:documentation xml:lang="en">EFI_HOB_TYPE_HANDOFF</xs:documentation>\r
437 </xs:annotation>\r
438 </xs:enumeration>\r
439 <xs:enumeration value="MEMORY_ALLOCATION">\r
440 <xs:annotation>\r
441 <xs:documentation xml:lang="en">EFI_HOB_TYPE_MEMORY_ALLOCATION Note: The BaseName of the GUID is also required</xs:documentation>\r
442 </xs:annotation>\r
443 </xs:enumeration>\r
444 <xs:enumeration value="RESOURCE_DESCRIPTOR">\r
445 <xs:annotation>\r
446 <xs:documentation xml:lang="en">EFI_HOB_TYPE_RESOURCE_DESCRIPTOR</xs:documentation>\r
447 </xs:annotation>\r
448 </xs:enumeration>\r
449 <xs:enumeration value="GUID_EXTENSION">\r
450 <xs:annotation>\r
451 <xs:documentation xml:lang="en">EFI_HOB_TYPE_GUID_EXTENSION Note: The BaseName of the GUID is also required.</xs:documentation>\r
452 </xs:annotation>\r
453 </xs:enumeration>\r
454 <xs:enumeration value="FIRMWARE_VOLUME">\r
455 <xs:annotation>\r
456 <xs:documentation xml:lang="en">EFI_HOB_TYPE_FV</xs:documentation>\r
457 </xs:annotation>\r
458 </xs:enumeration>\r
459 <xs:enumeration value="CPU">\r
460 <xs:annotation>\r
461 <xs:documentation xml:lang="en">EFI_HOB_TYPE_CPU</xs:documentation>\r
462 </xs:annotation>\r
463 </xs:enumeration>\r
464 <xs:enumeration value="POOL">\r
465 <xs:annotation>\r
466 <xs:documentation xml:lang="en">EFI_HOB_TYPE_PEI_MEMORY_POOL</xs:documentation>\r
467 </xs:annotation>\r
468 </xs:enumeration>\r
469 <xs:enumeration value="CAPSULE_VOLUME">\r
470 <xs:annotation>\r
471 <xs:documentation xml:lang="en">EFI_HOB_TYPE_CV</xs:documentation>\r
472 </xs:annotation>\r
473 </xs:enumeration>\r
474 </xs:restriction>\r
475 </xs:simpleType>\r
476 <xs:simpleType name="HobUsage">\r
477 <xs:annotation>\r
478 <xs:documentation xml:lang="en">This describes the Hob Usage Attributes, as defined in the Module Surface Area Specification</xs:documentation>\r
479 </xs:annotation>\r
480 <xs:restriction base="NameConvention">\r
481 <xs:enumeration value="ALWAYS_CONSUMED">\r
482 <xs:annotation>\r
483 <xs:documentation xml:lang="en">The HOB must be present in the system</xs:documentation>\r
484 </xs:annotation>\r
485 </xs:enumeration>\r
486 <xs:enumeration value="SOMETIMES_CONSUMED">\r
487 <xs:annotation>\r
488 <xs:documentation xml:lang="en">The HOB will be used if it's present in the system</xs:documentation>\r
489 </xs:annotation>\r
490 </xs:enumeration>\r
491 <xs:enumeration value="ALWAYS_PRODUCED">\r
492 <xs:annotation>\r
493 <xs:documentation xml:lang="en">The HOB is always produced by the module</xs:documentation>\r
494 </xs:annotation>\r
495 </xs:enumeration>\r
496 <xs:enumeration value="SOMETIMES_PRODUCED">\r
497 <xs:annotation>\r
498 <xs:documentation xml:lang="en">The HOB will sometimes be produced by the module.</xs:documentation>\r
499 </xs:annotation>\r
500 </xs:enumeration>\r
501 <xs:enumeration value="PRIVATE">\r
502 <xs:annotation>\r
503 <xs:documentation xml:lang="en">HOB is produced and consumed only by this module</xs:documentation>\r
504 </xs:annotation>\r
505 </xs:enumeration>\r
506 </xs:restriction>\r
507 </xs:simpleType>\r
508 <xs:simpleType name="LibraryUsage">\r
509 <xs:annotation>\r
510 <xs:documentation xml:lang="en">This describes the Library Usage Attributes, as defined in the Module Surface Area Specification</xs:documentation>\r
511 </xs:annotation>\r
512 <xs:restriction base="NameConvention">\r
513 <xs:enumeration value="ALWAYS_CONSUMED">\r
514 <xs:annotation>\r
515 <xs:documentation xml:lang="en">A module always consumes the library. This Guid represents the class of the library.</xs:documentation>\r
516 </xs:annotation>\r
517 </xs:enumeration>\r
518 <xs:enumeration value="SOMETIMES_CONSUMED"/>\r
519 <xs:enumeration value="ALWAYS_PRODUCED"/>\r
520 <xs:enumeration value="SOMETIMES_PRODUCED"/>\r
521 <xs:enumeration value="DEFAULT">\r
522 <xs:annotation>\r
523 <xs:documentation xml:lang="en">The default is the GUID that specifies the instance of the library.</xs:documentation>\r
524 </xs:annotation>\r
525 </xs:enumeration>\r
526 <xs:enumeration value="PRIVATE">\r
527 <xs:annotation>\r
528 <xs:documentation xml:lang="en">Library is produced and consumed only by this module</xs:documentation>\r
529 </xs:annotation>\r
530 </xs:enumeration>\r
531 </xs:restriction>\r
532 </xs:simpleType>\r
533 <xs:simpleType name="ModuleTypeDef">\r
534 <xs:annotation>\r
535 <xs:documentation xml:lang="en"> These are the supported Framework Module Types </xs:documentation>\r
536 </xs:annotation>\r
537 <xs:restriction base="NameConvention">\r
538 <xs:enumeration value="BASE">\r
539 <xs:annotation>\r
540 <xs:documentation xml:lang="en">Module only depends on things in the MDE package and is environment neutral</xs:documentation>\r
541 </xs:annotation>\r
542 </xs:enumeration>\r
543 <xs:enumeration value="SEC">\r
544 <xs:annotation>\r
545 <xs:documentation xml:lang="en">Module is the Security Section and depends on catching the reset vectory</xs:documentation>\r
546 </xs:annotation>\r
547 </xs:enumeration>\r
548 <xs:enumeration value="PEI_CORE">\r
549 <xs:annotation>\r
550 <xs:documentation xml:lang="en">Module is the PEI Core</xs:documentation>\r
551 </xs:annotation>\r
552 </xs:enumeration>\r
553 <xs:enumeration value="PEIM">\r
554 <xs:annotation>\r
555 <xs:documentation xml:lang="en">Module is a PEIM and depends on the PEI Services Table</xs:documentation>\r
556 </xs:annotation>\r
557 </xs:enumeration>\r
558 <xs:enumeration value="DXE_CORE">\r
559 <xs:annotation>\r
560 <xs:documentation xml:lang="en">Module is the DXE Core</xs:documentation>\r
561 </xs:annotation>\r
562 </xs:enumeration>\r
563 <xs:enumeration value="DXE_DRIVER">\r
564 <xs:annotation>\r
565 <xs:documentation xml:lang="en">Module is a DXE Driver and depends on the EFI Boot Services, EFI Runtime Services and the DXE Service Table</xs:documentation>\r
566 </xs:annotation>\r
567 </xs:enumeration>\r
568 <xs:enumeration value="DXE_RUNTIME_DRIVER">\r
569 <xs:annotation>\r
570 <xs:documentation xml:lang="en">Module is a DXE Driver and depends on the EFI Boot Services, EFI Runtime Services and the DXE Service Table. The module runs after ExitBootServices and produces CreateEvent EventGroupExitBootServices and EventGroupVirtualAddressChange. Code written in this module can run in physical or virtual mode.</xs:documentation>\r
571 </xs:annotation>\r
572 </xs:enumeration>\r
573 <xs:enumeration value="DXE_SAL_DRIVER">\r
574 <xs:annotation>\r
575 <xs:documentation xml:lang="en">Module is a DXE Driver and depends on the EFI Boot Services, EFI Runtime Services and the DXE Service Table. The module runs after ExitBootServices and produces CreateEvent EventGroupExitBootServices and EventGroupVirtualAddressChange. Code written in this module can run in physical AND in virtual mode.</xs:documentation>\r
576 </xs:annotation>\r
577 </xs:enumeration>\r
578 <xs:enumeration value="DXE_SMM_DRIVER">\r
579 <xs:annotation>\r
580 <xs:documentation xml:lang="en">Module is a DXE Driver and depends on the EFI Boot Services, EFI Runtime Services and the DXE Service Table. The module also runs in SMM mode and depends on the SMM Service Table. </xs:documentation>\r
581 </xs:annotation>\r
582 </xs:enumeration>\r
583 <xs:enumeration value="TOOLS">\r
584 <xs:annotation>\r
585 <xs:documentation xml:lang="en">The TOOLS ModuleType is to be used for Tiano Tools modules</xs:documentation>\r
586 </xs:annotation>\r
587 </xs:enumeration>\r
588 <xs:enumeration value="UEFI_DRIVER">\r
589 <xs:annotation>\r
590 <xs:documentation xml:lang="en">Module is a UEFI Driver and depends on the EFI and Service Tables.</xs:documentation>\r
591 </xs:annotation>\r
592 </xs:enumeration>\r
593 <xs:enumeration value="UEFI_APPLICATION">\r
594 <xs:annotation>\r
595 <xs:documentation xml:lang="en">Module is a UEFI Applciation and depens on the EFI and Service Tables.</xs:documentation>\r
596 </xs:annotation>\r
597 </xs:enumeration>\r
598 <xs:enumeration value="USER_DEFINED">\r
599 <xs:annotation>\r
600 <xs:documentation xml:lang="en">Module does not fit into other classifications. The user must have an apriori knowledge of its Usage, and must provide that information to others using this module.</xs:documentation>\r
601 </xs:annotation>\r
602 </xs:enumeration>\r
603 </xs:restriction>\r
604 </xs:simpleType>\r
605 <xs:simpleType name="Module_Unified">\r
606 <xs:annotation>\r
607 <xs:documentation xml:lang="en">Define a flag to determine whether to put intermediate build files into a directory under the Module, or into a unified tree under the package or platform build trees</xs:documentation>\r
608 </xs:annotation>\r
609 <xs:restriction base="UCNameType">\r
610 <xs:enumeration value="MODULE"/>\r
611 <xs:enumeration value="UNIFIED"/>\r
612 </xs:restriction>\r
613 </xs:simpleType>\r
614 <xs:simpleType name="PackageType">\r
615 <xs:annotation>\r
616 <xs:documentation xml:lang="en">Packages are either source, binary or mixed packages.</xs:documentation>\r
617 </xs:annotation>\r
618 <xs:restriction base="UCNameType">\r
619 <xs:enumeration value="SOURCE"/>\r
620 <xs:enumeration value="BINARY"/>\r
621 <xs:enumeration value="MIXED"/>\r
622 </xs:restriction>\r
623 </xs:simpleType>\r
624 <xs:simpleType name="PackageUsage">\r
625 <xs:annotation>\r
626 <xs:documentation xml:lang="en">This describes the Package Usage Attributes, as defined in the Module Surface Area Specification</xs:documentation>\r
627 </xs:annotation>\r
628 <xs:restriction base="NameConvention">\r
629 <xs:enumeration value="ALWAYS_CONSUMED">\r
630 <xs:annotation>\r
631 <xs:documentation xml:lang="en">A module always consumes a package. This GUID represents the class of the package.</xs:documentation>\r
632 </xs:annotation>\r
633 </xs:enumeration>\r
634 <xs:enumeration value="ALWAYS_PRODUCED">\r
635 <xs:annotation>\r
636 <xs:documentation xml:lang="en">This is the Package we are creating. This GUID represents the class of the package.</xs:documentation>\r
637 </xs:annotation>\r
638 </xs:enumeration>\r
639 <xs:enumeration value="DEFAULT">\r
640 <xs:annotation>\r
641 <xs:documentation xml:lang="en">The default is the GUID that specifies the instance of the package.</xs:documentation>\r
642 </xs:annotation>\r
643 </xs:enumeration>\r
644 </xs:restriction>\r
645 </xs:simpleType>\r
47d0b581 646 <xs:simpleType name="PcdListType">\r
647 <xs:list itemType="PcdItemTypes"/>\r
648 </xs:simpleType>\r
878ddf1f 649 <xs:simpleType name="PcdTypes">\r
650 <xs:restriction base="NameConvention">\r
651 <xs:enumeration value="FIXED_AT_BUILD">\r
652 <xs:annotation>\r
653 <xs:documentation xml:lang="en">PCD Item is only a build time option and cannot be Dyanmic or Binary patched into the module.</xs:documentation>\r
654 </xs:annotation>\r
655 </xs:enumeration>\r
47d0b581 656 <xs:enumeration value="FEATURE_FLAG"/>\r
878ddf1f 657 <xs:enumeration value="PATCHABLE_IN_MODULE">\r
658 <xs:annotation>\r
659 <xs:documentation xml:lang="en">PCD Item is set to a default value at build time and a binary of the module can be patched to update the value.</xs:documentation>\r
660 </xs:annotation>\r
661 </xs:enumeration>\r
662 <xs:enumeration value="DYNAMIC">\r
663 <xs:annotation>\r
664 <xs:documentation xml:lang="en">PCD Item is found via a PCD PPI in PEI or a PCD Protocol in DXE. The token that matches the PCD entry is either generated by the build (and is only unique to that build) or is from the default database. This form also implies a build option will be produced for this module that allows the user to pick FixedAtBuild, PatchableInModule or Dynamic. If no Type is specified, it defaults to Dynamic</xs:documentation>\r
665 </xs:annotation>\r
666 </xs:enumeration>\r
667 <xs:enumeration value="DYNAMIC_EX">\r
668 <xs:annotation>\r
669 <xs:documentation xml:lang="en">PCD Item is found via a PCD PPI in PEI or a PCD Protocol in DXE. The token that matches the PCD entry is either generated by the build (and is only unique to that build) or is from the default database. This form also implies a build option will be produced for this module that allows the user to pick FixedAtBuild, PatchableInModule or Dynamic. If no Type is specified, it defaults to Dynamic</xs:documentation>\r
670 </xs:annotation>\r
671 </xs:enumeration>\r
672 </xs:restriction>\r
673 </xs:simpleType>\r
f29b8a33 674 <xs:simpleType name="PcdDriverTypes">\r
675 <xs:restriction base="NameConvention">\r
676 <xs:enumeration value="PEI_PCD_DRIVER"/>\r
677 <xs:enumeration value="DXE_PCD_DRIVER"/>\r
678 </xs:restriction>\r
679 </xs:simpleType>\r
878ddf1f 680 <xs:simpleType name="PcdDataTypes">\r
681 <xs:restriction base="xs:normalizedString">\r
682 <xs:enumeration value="UINT8"/>\r
683 <xs:enumeration value="UINT16"/>\r
684 <xs:enumeration value="UINT32"/>\r
685 <xs:enumeration value="UINT64"/>\r
686 <xs:enumeration value="VOID*"/>\r
687 <xs:enumeration value="BOOLEAN"/>\r
688 </xs:restriction>\r
689 </xs:simpleType>\r
690 <xs:simpleType name="PcdFeatureFlagUsage">\r
691 <xs:annotation>\r
692 <xs:documentation xml:lang="en">This describes the PCD FEATURE_FLAG Usage Attributes, as defined in the Module Surface Area Specification</xs:documentation>\r
693 </xs:annotation>\r
694 <xs:restriction base="UsageTypes">\r
695 <xs:enumeration value="ALWAYS_PRODUCED">\r
696 <xs:annotation>\r
697 <xs:documentation xml:lang="en">Item is Always produced</xs:documentation>\r
698 </xs:annotation>\r
699 </xs:enumeration>\r
700 <xs:enumeration value="DEFAULT">\r
701 <xs:annotation>\r
702 <xs:documentation xml:lang="en">Item is tagged as the default</xs:documentation>\r
703 </xs:annotation>\r
704 </xs:enumeration>\r
705 </xs:restriction>\r
706 </xs:simpleType>\r
707 <xs:simpleType name="PcdItemTypes">\r
708 <xs:restriction base="NameConvention">\r
709 <xs:enumeration value="FEATURE_FLAG">\r
710 <xs:annotation>\r
711 <xs:documentation xml:lang="en">The PCD Item represents a feature flag for the module. Features can only be selected at build time. Items of type FeatureFlag are used to conditionally construct module surface area that is produced as a result of a buld.</xs:documentation>\r
712 </xs:annotation>\r
713 </xs:enumeration>\r
714 <xs:enumeration value="FIXED_AT_BUILD">\r
715 <xs:annotation>\r
716 <xs:documentation xml:lang="en">PCD Item is only a build time option and cannot be Dyanmic or Binary patched into the module.</xs:documentation>\r
717 </xs:annotation>\r
718 </xs:enumeration>\r
719 <xs:enumeration value="PATCHABLE_IN_MODULE">\r
720 <xs:annotation>\r
721 <xs:documentation xml:lang="en">PCD Item is set to a default value at build time and a binary of the module can be patched to update the value.</xs:documentation>\r
722 </xs:annotation>\r
723 </xs:enumeration>\r
724 <xs:enumeration value="DYNAMIC">\r
725 <xs:annotation>\r
726 <xs:documentation xml:lang="en">PCD Item is found via a PCD PPI in PEI or a PCD Protocol in DXE. The token that matches the PCD entry is either generated by the build (and is only unique to that build) or is from the default database. This form also implies a build option will be produced for this module that allows the user to pick FixedAtBuild, PatchableInModule or Dynamic. If no Type is specified, it defaults to Dynamic</xs:documentation>\r
727 </xs:annotation>\r
728 </xs:enumeration>\r
729 <xs:enumeration value="DYNAMIC_EX">\r
730 <xs:annotation>\r
731 <xs:documentation xml:lang="en">PCD Item is found via a PCD PPI in PEI or a PCD Protocol in DXE. Any PCD token database is supported</xs:documentation>\r
732 </xs:annotation>\r
733 </xs:enumeration>\r
734 </xs:restriction>\r
735 </xs:simpleType>\r
736 <xs:simpleType name="PcdUsage">\r
737 <xs:annotation>\r
738 <xs:documentation xml:lang="en">The PCD Usage is only relevant to Items tagged with FeatureFlag, as defined in the Module Surface Area Specification</xs:documentation>\r
739 </xs:annotation>\r
740 <xs:restriction base="NameConvention">\r
741 <xs:enumeration value="ALWAYS_CONSUMED">\r
742 <xs:annotation>\r
743 <xs:documentation xml:lang="en">The PCD entry must always be provide as the build will include the code and the associated Surface Area.</xs:documentation>\r
744 </xs:annotation>\r
745 </xs:enumeration>\r
746 <xs:enumeration value="SOMETIMES_CONSUMED">\r
747 <xs:annotation>\r
748 <xs:documentation xml:lang="en">If the FEATURE_FLAG is TRUE the build will include the code and the associated Surface Area. If the FEATURE_FLAG is FALSE, the code and the associated surface area is not included.</xs:documentation>\r
749 </xs:annotation>\r
750 </xs:enumeration>\r
751 <xs:enumeration value="ALWAYS_PRODUCED">\r
752 <xs:annotation>\r
753 <xs:documentation xml:lang="en">The PCD Entry is Always included in the build code</xs:documentation>\r
754 </xs:annotation>\r
755 </xs:enumeration>\r
756 <xs:enumeration value="SOMETIMES_PRODUCED">\r
757 <xs:annotation>\r
758 <xs:documentation xml:lang="en">If the FEATURE_FLAG is TRUE the build will include the code and the associated Surface Area. If the FEATURE_FLAG is FALSE, the code and the associated surface area is not included.</xs:documentation>\r
759 </xs:annotation>\r
760 </xs:enumeration>\r
761 <xs:enumeration value="DEFAULT">\r
762 <xs:annotation>\r
763 <xs:documentation xml:lang="en">"true" or "false". Indicates the default value for the PCD entry. This is used by the platform wizard to suggest values for a given platform build.</xs:documentation>\r
764 </xs:annotation>\r
765 </xs:enumeration>\r
766 </xs:restriction>\r
767 </xs:simpleType>\r
768 <xs:simpleType name="PpiNotifyUsage">\r
769 <xs:annotation>\r
770 <xs:documentation xml:lang="en">This describes the PPI Notify Usage Attributes, as defined in the Module Surface Area Specification</xs:documentation>\r
771 </xs:annotation>\r
772 <xs:restriction base="NameConvention">\r
773 <xs:enumeration value="SOMETIMES_CONSUMED">\r
774 <xs:annotation>\r
775 <xs:documentation xml:lang="en">Module will consume the PPI if it's produced. Consumption is defined by executing the PPI notify function.</xs:documentation>\r
776 </xs:annotation>\r
777 </xs:enumeration>\r
778 </xs:restriction>\r
779 </xs:simpleType>\r
780 <xs:simpleType name="PpiUsage">\r
781 <xs:annotation>\r
782 <xs:documentation xml:lang="en">This describes the PPI Usage Attributes, as defined in the Module Surface Area Specification</xs:documentation>\r
783 </xs:annotation>\r
784 <xs:restriction base="NameConvention">\r
785 <xs:enumeration value="ALWAYS_CONSUMED">\r
786 <xs:annotation>\r
787 <xs:documentation xml:lang="en">Item is Required for the driver to function. This is part of the dependency expression of a module if the item represents a PPI or Protocol</xs:documentation>\r
788 </xs:annotation>\r
789 </xs:enumeration>\r
790 <xs:enumeration value="SOMETIMES_CONSUMED">\r
791 <xs:annotation>\r
792 <xs:documentation xml:lang="en">Item is Consumed by the driver if the Item exists</xs:documentation>\r
793 </xs:annotation>\r
794 </xs:enumeration>\r
795 <xs:enumeration value="ALWAYS_PRODUCED">\r
796 <xs:annotation>\r
797 <xs:documentation xml:lang="en">Item is Always produced</xs:documentation>\r
798 </xs:annotation>\r
799 </xs:enumeration>\r
800 <xs:enumeration value="SOMETIMES_PRODUCED">\r
801 <xs:annotation>\r
802 <xs:documentation xml:lang="en">Item is Conditionally produced</xs:documentation>\r
803 </xs:annotation>\r
804 </xs:enumeration>\r
805 <xs:enumeration value="PRIVATE">\r
806 <xs:annotation>\r
807 <xs:documentation xml:lang="en">Ppi is produced and consumed only by this module</xs:documentation>\r
808 </xs:annotation>\r
809 </xs:enumeration>\r
810 </xs:restriction>\r
811 </xs:simpleType>\r
812 <xs:simpleType name="ProtocolNotifyUsage">\r
813 <xs:annotation>\r
814 <xs:documentation xml:lang="en">This describes the PROTOCOL Notify Usage Attributes, as defined in the Module Surface Area Specification</xs:documentation>\r
815 </xs:annotation>\r
816 <xs:restriction base="NameConvention">\r
817 <xs:enumeration value="SOMETIMES_CONSUMED">\r
818 <xs:annotation>\r
819 <xs:documentation xml:lang="en">Module will Consume protocol if it's produced. Consumption is defined by executing the protocol notify function.</xs:documentation>\r
820 </xs:annotation>\r
821 </xs:enumeration>\r
822 </xs:restriction>\r
823 </xs:simpleType>\r
824 <xs:simpleType name="ProtocolUsage">\r
825 <xs:annotation>\r
826 <xs:documentation xml:lang="en">This describes the PROTOCOL Usage Attributes, as defined in the Module Surface Area Specification</xs:documentation>\r
827 </xs:annotation>\r
828 <xs:restriction base="NameConvention">\r
829 <xs:enumeration value="ALWAYS_CONSUMED">\r
830 <xs:annotation>\r
831 <xs:documentation xml:lang="en">Item is Required for the driver to function. This is part of the dependency expression of a module if the item represents a PPI or Protocol</xs:documentation>\r
832 </xs:annotation>\r
833 </xs:enumeration>\r
834 <xs:enumeration value="SOMETIMES_CONSUMED">\r
835 <xs:annotation>\r
836 <xs:documentation xml:lang="en">Item is Consumed by the driver if the Item exists</xs:documentation>\r
837 </xs:annotation>\r
838 </xs:enumeration>\r
839 <xs:enumeration value="ALWAYS_PRODUCED">\r
840 <xs:annotation>\r
841 <xs:documentation xml:lang="en">Item is Always produced</xs:documentation>\r
842 </xs:annotation>\r
843 </xs:enumeration>\r
844 <xs:enumeration value="SOMETIMES_PRODUCED">\r
845 <xs:annotation>\r
846 <xs:documentation xml:lang="en">Item is Conditionally produced</xs:documentation>\r
847 </xs:annotation>\r
848 </xs:enumeration>\r
849 <xs:enumeration value="TO_START">\r
850 <xs:annotation>\r
851 <xs:documentation xml:lang="en">Protocol Only - Protocol is required by driver binding Start() function to make Start() succeed</xs:documentation>\r
852 </xs:annotation>\r
853 </xs:enumeration>\r
854 <xs:enumeration value="BY_START">\r
855 <xs:annotation>\r
856 <xs:documentation xml:lang="en">Protocol Only - Protocol is produced by driver binding Start() function if and only if Start() succeeds</xs:documentation>\r
857 </xs:annotation>\r
858 </xs:enumeration>\r
859 <xs:enumeration value="PRIVATE">\r
860 <xs:annotation>\r
861 <xs:documentation xml:lang="en">Protocol is produced and consumed only by this module</xs:documentation>\r
862 </xs:annotation>\r
863 </xs:enumeration>\r
864 </xs:restriction>\r
865 </xs:simpleType>\r
866 <xs:simpleType name="SupportedArchitectures">\r
867 <xs:annotation>\r
868 <xs:documentation xml:lang="en"> These are the currently Supportted Architectures type codes </xs:documentation>\r
869 </xs:annotation>\r
870 <xs:restriction base="NameConvention">\r
871 <xs:enumeration value="ALL"/>\r
872 <xs:enumeration value="EBC"/>\r
873 <xs:enumeration value="ARM"/>\r
874 <xs:enumeration value="IA32"/>\r
875 <xs:enumeration value="X64"/>\r
876 <xs:enumeration value="IPF"/>\r
877 <xs:enumeration value="PPC"/>\r
878 </xs:restriction>\r
879 </xs:simpleType>\r
880 <xs:simpleType name="SystemTableUsage">\r
881 <xs:annotation>\r
882 <xs:documentation xml:lang="en">This describes the System Table Usage Attributes, as defined in the Module Surface Area Specification</xs:documentation>\r
883 </xs:annotation>\r
884 <xs:restriction base="NameConvention">\r
885 <xs:enumeration value="ALWAYS_CONSUMED">\r
886 <xs:annotation>\r
887 <xs:documentation xml:lang="en">Module requires a GUIDed entry in the system table</xs:documentation>\r
888 </xs:annotation>\r
889 </xs:enumeration>\r
890 <xs:enumeration value="SOMETIMES_CONSUMED">\r
891 <xs:annotation>\r
892 <xs:documentation xml:lang="en">Module will use the GUIDed entry in the system table only if the GUID is present</xs:documentation>\r
893 </xs:annotation>\r
894 </xs:enumeration>\r
895 <xs:enumeration value="ALWAYS_PRODUCED">\r
896 <xs:annotation>\r
897 <xs:documentation xml:lang="en">Module Always produces a GUIDed entry in the system table</xs:documentation>\r
898 </xs:annotation>\r
899 </xs:enumeration>\r
900 <xs:enumeration value="SOMETIMES_PRODUCED">\r
901 <xs:annotation>\r
902 <xs:documentation xml:lang="en">Module sometimes produces a GUIDed entry in the system table for some of its execution flow</xs:documentation>\r
903 </xs:annotation>\r
904 </xs:enumeration>\r
905 <xs:enumeration value="PRIVATE">\r
906 <xs:annotation>\r
907 <xs:documentation xml:lang="en">SystemTable is produced and consumed only by this module</xs:documentation>\r
908 </xs:annotation>\r
909 </xs:enumeration>\r
910 </xs:restriction>\r
911 </xs:simpleType>\r
912 <xs:simpleType name="Token">\r
913 <xs:annotation>\r
914 <xs:documentation xml:lang="en"> The Token data is union of HexDoubleWordDataType, GuidNaming Convetion and GuidArrayType. </xs:documentation>\r
915 </xs:annotation>\r
916 <xs:union memberTypes="GuidArrayType GuidNamingConvention HexDoubleWordDataType"/>\r
917 </xs:simpleType>\r
918 <xs:simpleType name="ToolChains">\r
919 <xs:annotation>\r
920 <xs:documentation xml:lang="en">Supported Tool Chains are MSFT, INTEL, GCC and CYGWIN</xs:documentation>\r
921 </xs:annotation>\r
922 <xs:restriction base="UCNameType">\r
923 <xs:enumeration value="MSFT"/>\r
924 <xs:enumeration value="INTEL"/>\r
925 <xs:enumeration value="GCC"/>\r
926 <xs:enumeration value="CYGWIN"/>\r
927 </xs:restriction>\r
928 </xs:simpleType>\r
929 <xs:simpleType name="ToothPick">\r
930 <xs:annotation>\r
931 <xs:documentation xml:lang="en">Describes which way the directory separator is leaning, either \ for WINDOWS or / for UNIX</xs:documentation>\r
932 </xs:annotation>\r
933 <xs:restriction base="xs:normalizedString">\r
934 <xs:enumeration value="UNIX"/>\r
935 <xs:enumeration value="WINDOWS"/>\r
936 </xs:restriction>\r
937 </xs:simpleType>\r
938 <xs:simpleType name="UnicodeString">\r
939 <xs:annotation>\r
940 <xs:documentation xml:lang="en">Define how we specify unicode strings</xs:documentation>\r
941 </xs:annotation>\r
942 <xs:restriction base="xs:normalizedString">\r
943 <xs:pattern value="L(:)?(&quot;)(\w+)*((\W*)*(\s*)*(\w*)*)*(&quot;)"/>\r
944 </xs:restriction>\r
945 </xs:simpleType>\r
946 <xs:simpleType name="UsageTypes">\r
947 <xs:annotation>\r
948 <xs:documentation xml:lang="en">This describes the Generic Usage Attributes, as defined in the Module Surface Area Specification</xs:documentation>\r
949 </xs:annotation>\r
950 <xs:restriction base="NameConvention">\r
951 <xs:enumeration value="ALWAYS_CONSUMED">\r
952 <xs:annotation>\r
953 <xs:documentation xml:lang="en">Item is Required for the driver to function. This is part of the dependency expression of a module if the item represents a PPI or Protocol</xs:documentation>\r
954 </xs:annotation>\r
955 </xs:enumeration>\r
956 <xs:enumeration value="SOMETIMES_CONSUMED">\r
957 <xs:annotation>\r
958 <xs:documentation xml:lang="en">Item is Consumed by the driver if the Item exists</xs:documentation>\r
959 </xs:annotation>\r
960 </xs:enumeration>\r
961 <xs:enumeration value="ALWAYS_PRODUCED">\r
962 <xs:annotation>\r
963 <xs:documentation xml:lang="en">Item is Always produced</xs:documentation>\r
964 </xs:annotation>\r
965 </xs:enumeration>\r
966 <xs:enumeration value="SOMETIMES_PRODUCED">\r
967 <xs:annotation>\r
968 <xs:documentation xml:lang="en">Item is Conditionally produced</xs:documentation>\r
969 </xs:annotation>\r
970 </xs:enumeration>\r
971 <xs:enumeration value="TO_START">\r
972 <xs:annotation>\r
973 <xs:documentation xml:lang="en">Protocol Only - Protocol is required by driver binding Start() function to make Start() succeed</xs:documentation>\r
974 </xs:annotation>\r
975 </xs:enumeration>\r
976 <xs:enumeration value="BY_START">\r
977 <xs:annotation>\r
978 <xs:documentation xml:lang="en">Protocol Only - Protocol is produced by driver binding Start() function if and only if Start() succeeds</xs:documentation>\r
979 </xs:annotation>\r
980 </xs:enumeration>\r
981 <xs:enumeration value="PRIVATE">\r
982 <xs:annotation>\r
983 <xs:documentation xml:lang="en">Item is Private to the module and cannot be used by other modules</xs:documentation>\r
984 </xs:annotation>\r
985 </xs:enumeration>\r
986 <xs:enumeration value="DEFAULT">\r
987 <xs:annotation>\r
988 <xs:documentation xml:lang="en">This is the default value for an Item</xs:documentation>\r
989 </xs:annotation>\r
990 </xs:enumeration>\r
991 </xs:restriction>\r
992 </xs:simpleType>\r
993 <xs:simpleType name="VariableOffsetValues">\r
994 <xs:annotation>\r
995 <xs:documentation xml:lang="en">Describes the available Variable Offset data types, Bytes:Bits or BitSize</xs:documentation>\r
996 </xs:annotation>\r
997 <xs:restriction base="xs:string">\r
998 <xs:pattern value="\d+(:)?\d*"/>\r
999 </xs:restriction>\r
1000 </xs:simpleType>\r
1001 <xs:simpleType name="VariableUsage">\r
1002 <xs:annotation>\r
1003 <xs:documentation xml:lang="en">This describes the Variable Usage Attributes, as defined in the Module Surface Area Specification</xs:documentation>\r
1004 </xs:annotation>\r
1005 <xs:restriction base="NameConvention">\r
1006 <xs:enumeration value="ALWAYS_CONSUMED">\r
1007 <xs:annotation>\r
1008 <xs:documentation xml:lang="en">Module requires the variable entry to be set</xs:documentation>\r
1009 </xs:annotation>\r
1010 </xs:enumeration>\r
1011 <xs:enumeration value="SOMETIMES_CONSUMED">\r
1012 <xs:annotation>\r
1013 <xs:documentation xml:lang="en">Module will use the variable entry if it's set</xs:documentation>\r
1014 </xs:annotation>\r
1015 </xs:enumeration>\r
1016 <xs:enumeration value="ALWAYS_PRODUCED">\r
1017 <xs:annotation>\r
1018 <xs:documentation xml:lang="en">Module Always will write the variable</xs:documentation>\r
1019 </xs:annotation>\r
1020 </xs:enumeration>\r
1021 <xs:enumeration value="SOMETIMES_PRODUCED">\r
1022 <xs:annotation>\r
1023 <xs:documentation xml:lang="en">Module sometimes writes the variable</xs:documentation>\r
1024 </xs:annotation>\r
1025 </xs:enumeration>\r
1026 <xs:enumeration value="PRIVATE">\r
1027 <xs:annotation>\r
1028 <xs:documentation xml:lang="en">Variable is produced and consumed only by this module</xs:documentation>\r
1029 </xs:annotation>\r
1030 </xs:enumeration>\r
1031 </xs:restriction>\r
1032 </xs:simpleType>\r
1033 <!-- Complex Data Types -->\r
1034 <xs:complexType name="ArgsType">\r
1035 <xs:sequence minOccurs="0" maxOccurs="unbounded">\r
1036 <xs:element name="Arg" type="xs:string"/>\r
1037 </xs:sequence>\r
1038 </xs:complexType>\r
1039 <xs:complexType name="ToolType">\r
1040 <xs:annotation>\r
1041 <xs:documentation xml:lang="en">This type is to permit adding specific tools and tool arguments for User Defined tools, into the Module Build Description file.</xs:documentation>\r
1042 </xs:annotation>\r
1043 <xs:sequence>\r
1044 <xs:element name="ToolName" type="xs:string"/>\r
1045 <xs:element name="ToolArgs" type="xs:string"/>\r
1046 </xs:sequence>\r
1047 </xs:complexType>\r
878ddf1f 1048</xs:schema>\r