]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/XMLSchema/FrameworkDataTypes.xsd
merged the last changes in new schema
[mirror_edk2.git] / Tools / XMLSchema / FrameworkDataTypes.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns="http://www.TianoCore.org/2006/Edk2.0" targetNamespace="http://www.TianoCore.org/2006/Edk2.0">
3 <!--
4 Filename: FrameworkDataTypes.xsd
5
6 Copyright (c) 2006, Intel Corp.
7 All rights reserved. This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which may be found at http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 -->
15 <xs:annotation>
16 <xs:documentation xml:lang="en">This schema defines EFI and Framework Data Types. Only simpleType are specified in this file. </xs:documentation>
17 </xs:annotation>
18 <xs:include schemaLocation="NamingConvention.xsd"/>
19 <xs:simpleType name="ArchListType">
20 <xs:list itemType="SupportedArchitectures"/>
21 </xs:simpleType>
22 <xs:simpleType name="BlockNameType">
23 <xs:restriction base="UCNameType">
24 <xs:pattern value="BLOCK([A-F0-9]){2}"/>
25 </xs:restriction>
26 </xs:simpleType>
27 <xs:simpleType name="BootModeNames">
28 <xs:restriction base="NameConvention">
29 <xs:enumeration value="FULL"/>
30 <xs:enumeration value="MINIMAL"/>
31 <xs:enumeration value="NO_CHANGE"/>
32 <xs:enumeration value="DIAGNOSTICS"/>
33 <xs:enumeration value="DEFAULT"/>
34 <xs:enumeration value="S2_RESUME"/>
35 <xs:enumeration value="S3_RESUME"/>
36 <xs:enumeration value="S4_RESUME"/>
37 <xs:enumeration value="S5_RESUME"/>
38 <xs:enumeration value="FLASH_UPDATE"/>
39 <xs:enumeration value="RECOVERY"/>
40 </xs:restriction>
41 </xs:simpleType>
42 <xs:simpleType name="BootModeUsage">
43 <xs:restriction base="NameConvention">
44 <xs:enumeration value="ALWAYS_CONSUMED"/>
45 <xs:enumeration value="SOMETIMES_CONSUMED"/>
46 <xs:enumeration value="ALWAYS_PRODUCED"/>
47 <xs:enumeration value="SOMETIMES_PRODUCED"/>
48 </xs:restriction>
49 </xs:simpleType>
50 <xs:simpleType name="ModuleListType">
51 <xs:list itemType="FrameworkModuleTypes"/>
52 </xs:simpleType>
53 <xs:simpleType name="IntermediateOutputType">
54 <xs:restriction base="UCNameType">
55 <xs:enumeration value="MODULE"/>
56 <xs:enumeration value="UNIFIED"/>
57 </xs:restriction>
58 </xs:simpleType>
59 <xs:simpleType name="BuildTargets">
60 <xs:restriction base="xs:NCName">
61 <xs:enumeration value="DEBUG"/>
62 <xs:enumeration value="RELEASE"/>
63 <xs:enumeration value="BOTH"/>
64 </xs:restriction>
65 </xs:simpleType>
66 <xs:simpleType name="BuildTargetList">
67 <xs:union memberTypes="UCNameType DEBUG RELEASE"/>
68 </xs:simpleType>
69 <xs:simpleType name="DEBUG">
70 <xs:restriction base="UCNameType">
71 <xs:pattern value="DEBUG"/>
72 </xs:restriction>
73 </xs:simpleType>
74 <xs:simpleType name="RELEASE">
75 <xs:restriction base="UCNameType">
76 <xs:pattern value="RELEASE"/>
77 </xs:restriction>
78 </xs:simpleType>
79 <xs:simpleType name="ComponentExecutionPhase">
80 <xs:restriction base="UCNameType">
81 <xs:enumeration value="MDE"/>
82 <xs:enumeration value="SEC"/>
83 <xs:enumeration value="PEI_CORE"/>
84 <xs:enumeration value="PEIM"/>
85 <xs:enumeration value="DXE_CORE"/>
86 <xs:enumeration value="DXE_DRIVER"/>
87 <xs:enumeration value="DXE_RUNTIME_DRIVER"/>
88 <xs:enumeration value="DXE_SAL_DRIVER"/>
89 <xs:enumeration value="DXE_SMM_DRIVER"/>
90 <xs:enumeration value="UEFI"/>
91 <xs:enumeration value="UEFI_APPLICATION"/>
92 </xs:restriction>
93 </xs:simpleType>
94 <xs:simpleType name="ConditionalTarget">
95 <xs:list itemType="C_Name"/>
96 </xs:simpleType>
97 <xs:simpleType name="DataHubUsage">
98 <xs:restriction base="NameConvention">
99 <xs:enumeration value="ALWAYS_CONSUMED"/>
100 <xs:enumeration value="SOMETIMES_CONSUMED"/>
101 <xs:enumeration value="ALWAYS_PRODUCED"/>
102 <xs:enumeration value="SOMETIMES_PRODUCED"/>
103 <xs:enumeration value="PRIVATE"/>
104 </xs:restriction>
105 </xs:simpleType>
106 <xs:simpleType name="DateType">
107 <xs:restriction base="xs:normalizedString">
108 <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]"/>
109 </xs:restriction>
110 </xs:simpleType>
111 <xs:simpleType name="DatumSizeLimitation">
112 <xs:restriction base="xs:int">
113 <xs:minInclusive value="1"/>
114 <xs:maxInclusive value="16777215"/>
115 </xs:restriction>
116 </xs:simpleType>
117 <xs:simpleType name="DefaultValueType">
118 <xs:union memberTypes="xs:normalizedString Hex64BitDataType UnicodeString HexByteArrayType"/>
119 </xs:simpleType>
120 <xs:simpleType name="EfiSectionType">
121 <xs:restriction base="UCNameType">
122 <xs:enumeration value="EFI_SECTION_FREEFORM_SUBTYPE_GUID"/>
123 <xs:enumeration value="EFI_SECTION_VERSION"/>
124 <xs:enumeration value="EFI_SECTION_USER_INTERFACE"/>
125 <xs:enumeration value="EFI_SECTION_DXE_DEPEX"/>
126 <xs:enumeration value="EFI_SECTION_PEI_DEPEX"/>
127 <xs:enumeration value="EFI_SECTION_PE32"/>
128 <xs:enumeration value="EFI_SECTION_PIC"/>
129 <xs:enumeration value="EFI_SECTION_TE"/>
130 <xs:enumeration value="EFI_SECTION_RAW"/>
131 <xs:enumeration value="EFI_SECTION_COMPRESSION"/>
132 <xs:enumeration value="EFI_SECTION_GUID_DEFINED"/>
133 <xs:enumeration value="EFI_SECTION_COMPATIBILITY16"/>
134 <xs:enumeration value="EFI_SECTION_FIRMWARE_VOLUME_IMAGE"/>
135 </xs:restriction>
136 </xs:simpleType>
137 <xs:simpleType name="EventTypes">
138 <xs:restriction base="NameConvention">
139 <xs:enumeration value="EVENT_GROUP_GUID"/>
140 <xs:enumeration value="EVENT_TYPE_PERIODIC_TIMER"/>
141 <xs:enumeration value="EVENT_TYPE_RELATIVE_TIMER"/>
142 <!-- DON'T USE! TO BE REMOVED -->
143 <xs:enumeration value="EVENT_GROUP_EXIT_BOOT_SERVICES"/>
144 <xs:enumeration value="EVENT_GROUP_VIRTUAL_ADDRESS_CHANGE"/>
145 <xs:enumeration value="EVENT_GROUP_MEMORY_MAP_CHANGE"/>
146 <xs:enumeration value="EVENT_GROUP_READY_TO_BOOT"/>
147 <xs:enumeration value="EVENT_GROUP_LEGACY_BOOT"/>
148 </xs:restriction>
149 </xs:simpleType>
150 <xs:simpleType name="EventUsage">
151 <xs:restriction base="NameConvention">
152 <xs:enumeration value="ALWAYS_CONSUMED"/>
153 <xs:enumeration value="SOMETIMES_CONSUMED"/>
154 <xs:enumeration value="ALWAYS_PRODUCED"/>
155 <xs:enumeration value="SOMETIMES_PRODUCED"/>
156 <xs:enumeration value="PRIVATE"/>
157 </xs:restriction>
158 </xs:simpleType>
159 <xs:simpleType name="ExecutionType">
160 <xs:restriction base="UCNameType">
161 <xs:enumeration value="REL" id="Relocatable"/>
162 <xs:enumeration value="NREL" id="Non-Relocatable"/>
163 <xs:enumeration value="XIP" id="Execute_In_Place"/>
164 <xs:enumeration value="PIC" id="Position_Independent_Code"/>
165 </xs:restriction>
166 </xs:simpleType>
167 <xs:simpleType name="ExternType">
168 <xs:restriction base="xs:string">
169 <xs:pattern value="(_*\w*\W*)*"/>
170 </xs:restriction>
171 </xs:simpleType>
172 <xs:simpleType name="ExternUsage">
173 <xs:restriction base="NameConvention">
174 <xs:enumeration value="ALWAYS_CONSUMED"/>
175 <xs:enumeration value="ALWAYS_PRODUCED"/>
176 </xs:restriction>
177 </xs:simpleType>
178 <xs:simpleType name="FileNameUsage">
179 <xs:restriction base="NameConvention">
180 <xs:enumeration value="ALWAYS_CONSUMED"/>
181 <xs:enumeration value="SOMETIMES_CONSUMED"/>
182 <xs:enumeration value="ALWAYS_PRODUCED"/>
183 <xs:enumeration value="SOMETIMES_PRODUCED"/>
184 <xs:enumeration value="PRIVATE"/>
185 </xs:restriction>
186 </xs:simpleType>
187 <xs:simpleType name="FormSetUsage">
188 <xs:restriction base="NameConvention">
189 <xs:enumeration value="ALWAYS_PRODUCED"/>
190 <xs:enumeration value="SOMETIMES_PRODUCED"/>
191 <xs:enumeration value="PRIVATE"/>
192 </xs:restriction>
193 </xs:simpleType>
194 <xs:simpleType name="FrameworkComponentTypes">
195 <xs:restriction base="UCNameType">
196 <xs:enumeration value="APRIORI"/>
197 <xs:enumeration value="SEC"/>
198 <xs:enumeration value="LIBRARY"/>
199 <xs:enumeration value="FV_IMAGE_FILE"/>
200 <xs:enumeration value="BS_DRIVER"/>
201 <xs:enumeration value="RT_DRIVER"/>
202 <xs:enumeration value="SAL_RT_DRIVER"/>
203 <xs:enumeration value="PE32_PEIM"/>
204 <xs:enumeration value="PIC_PEIM"/>
205 <xs:enumeration value="COMBINED_PEIM_DRIVER"/>
206 <xs:enumeration value="PEI_CORE"/>
207 <xs:enumeration value="DXE_CORE"/>
208 <xs:enumeration value="APPLICATION"/>
209 <xs:enumeration value="BS_DRIVER_EFI"/>
210 <xs:enumeration value="SHELLAPP"/>
211 <xs:enumeration value="UEFI_APPLICATION"/>
212 <xs:enumeration value="BINARY"/>
213 <xs:enumeration value="LOGO"/>
214 <xs:enumeration value="CUSTOM_BUILD"/>
215 </xs:restriction>
216 </xs:simpleType>
217 <xs:simpleType name="FrameworkModuleTypes">
218 <xs:restriction base="ModuleTypeDef">
219 <xs:enumeration value="BASE"/>
220 <xs:enumeration value="SEC"/>
221 <xs:enumeration value="PEI_CORE"/>
222 <xs:enumeration value="PEIM"/>
223 <xs:enumeration value="DXE_CORE"/>
224 <xs:enumeration value="DXE_DRIVER"/>
225 <xs:enumeration value="DXE_RUNTIME_DRIVER"/>
226 <xs:enumeration value="DXE_SAL_DRIVER"/>
227 <xs:enumeration value="DXE_SMM_DRIVER"/>
228 <xs:enumeration value="UEFI_DRIVER"/>
229 <xs:enumeration value="UEFI_APPLICATION"/>
230 <xs:enumeration value="USER_DEFINED"/>
231 </xs:restriction>
232 </xs:simpleType>
233 <xs:simpleType name="FvRegionTypes">
234 <xs:restriction base="UCNameType">
235 <xs:enumeration value="FV_MAIN"/>
236 <xs:enumeration value="FV_MAIN_COMPACT"/>
237 <xs:enumeration value="NV_STORAGE"/>
238 <xs:enumeration value="FV_RECOVERY"/>
239 <xs:enumeration value="FV_RECOVERY_FLOPPY"/>
240 <xs:enumeration value="FV_FILE"/>
241 <xs:enumeration value="CAPSULE_CARGO"/>
242 <xs:enumeration value="NULL"/>
243 <xs:enumeration value="USER_DEFINED"/>
244 </xs:restriction>
245 </xs:simpleType>
246 <xs:simpleType name="GuidTypes">
247 <xs:restriction base="UCNameType">
248 <xs:enumeration value="DATA_HUB_RECORD"/>
249 <xs:enumeration value="EFI_EVENT"/>
250 <xs:enumeration value="EFI_SYSTEM_CONFIGURATION_TABLE"/>
251 <xs:enumeration value="EFI_VARIABLE"/>
252 <xs:enumeration value="HII_PACKAGE_LIST"/>
253 <xs:enumeration value="HOB"/>
254 </xs:restriction>
255 </xs:simpleType>
256 <xs:simpleType name="GuidListType">
257 <xs:list itemType="GuidTypes"/>
258 </xs:simpleType>
259 <xs:simpleType name="GuidUsage">
260 <xs:restriction base="NameConvention">
261 <xs:enumeration value="ALWAYS_CONSUMED"/>
262 <xs:enumeration value="SOMETIMES_CONSUMED"/>
263 <xs:enumeration value="ALWAYS_PRODUCED"/>
264 <xs:enumeration value="SOMETIMES_PRODUCED"/>
265 <xs:enumeration value="DEFAULT"/>
266 <xs:enumeration value="PRIVATE"/>
267 </xs:restriction>
268 </xs:simpleType>
269 <xs:simpleType name="HexByteArrayType">
270 <xs:list itemType="HexByteDataType"/>
271 </xs:simpleType>
272 <xs:simpleType name="HexByteArrayListType">
273 <xs:restriction base="xs:normalizedString">
274 <xs:pattern value="((( )?0x[a-fA-F0-9]{2})(,)?)+( )?"/>
275 </xs:restriction>
276 </xs:simpleType>
277 <xs:simpleType name="HexWordArrayType">
278 <xs:restriction base="xs:normalizedString">
279 <xs:pattern value="((( )?0x[a-fA-F0-9]{4})(,)?)+( )?"/>
280 </xs:restriction>
281 </xs:simpleType>
282 <xs:simpleType name="HiiPackageUsage">
283 <xs:restriction base="NameConvention">
284 <xs:enumeration value="ALWAYS_PRODUCED"/>
285 <xs:enumeration value="SOMETIMES_PRODUCED"/>
286 <xs:enumeration value="PRIVATE"/>
287 </xs:restriction>
288 </xs:simpleType>
289 <xs:simpleType name="HobTypes">
290 <xs:restriction base="NameConvention">
291 <xs:enumeration value="PHIT"/>
292 <xs:enumeration value="MEMORY_ALLOCATION"/>
293 <xs:enumeration value="RESOURCE_DESCRIPTOR"/>
294 <xs:enumeration value="GUID_EXTENSION"/>
295 <xs:enumeration value="FIRMWARE_VOLUME"/>
296 <xs:enumeration value="CPU"/>
297 <xs:enumeration value="POOL"/>
298 <xs:enumeration value="CAPSULE_VOLUME"/>
299 </xs:restriction>
300 </xs:simpleType>
301 <xs:simpleType name="HobUsage">
302 <xs:restriction base="NameConvention">
303 <xs:enumeration value="ALWAYS_CONSUMED"/>
304 <xs:enumeration value="SOMETIMES_CONSUMED"/>
305 <xs:enumeration value="ALWAYS_PRODUCED"/>
306 <xs:enumeration value="SOMETIMES_PRODUCED"/>
307 <xs:enumeration value="PRIVATE"/>
308 </xs:restriction>
309 </xs:simpleType>
310 <xs:simpleType name="IntList">
311 <xs:list itemType="xs:positiveInteger"/>
312 </xs:simpleType>
313 <xs:simpleType name="LibraryUsage">
314 <xs:restriction base="NameConvention">
315 <xs:enumeration value="ALWAYS_CONSUMED"/>
316 <xs:enumeration value="SOMETIMES_CONSUMED"/>
317 <xs:enumeration value="ALWAYS_PRODUCED"/>
318 <xs:enumeration value="SOMETIMES_PRODUCED"/>
319 <xs:enumeration value="DEFAULT"/>
320 <xs:enumeration value="PRIVATE"/>
321 </xs:restriction>
322 </xs:simpleType>
323 <xs:simpleType name="ModuleTypeDef">
324 <xs:restriction base="NameConvention">
325 <xs:enumeration value="BASE"/>
326 <xs:enumeration value="SEC"/>
327 <xs:enumeration value="PEI_CORE"/>
328 <xs:enumeration value="PEIM"/>
329 <xs:enumeration value="DXE_CORE"/>
330 <xs:enumeration value="DXE_DRIVER"/>
331 <xs:enumeration value="DXE_RUNTIME_DRIVER"/>
332 <xs:enumeration value="DXE_SAL_DRIVER"/>
333 <xs:enumeration value="DXE_SMM_DRIVER"/>
334 <xs:enumeration value="TOOLS"/>
335 <xs:enumeration value="UEFI_DRIVER"/>
336 <xs:enumeration value="UEFI_APPLICATION"/>
337 <xs:enumeration value="USER_DEFINED"/>
338 </xs:restriction>
339 </xs:simpleType>
340 <xs:simpleType name="ModuleTypeList">
341 <xs:list itemType="FrameworkModuleTypes"/>
342 </xs:simpleType>
343 <xs:simpleType name="Module_Unified">
344 <xs:restriction base="UCNameType">
345 <xs:enumeration value="MODULE"/>
346 <xs:enumeration value="UNIFIED"/>
347 </xs:restriction>
348 </xs:simpleType>
349 <xs:simpleType name="PackageType">
350 <xs:restriction base="UCNameType">
351 <xs:enumeration value="SOURCE"/>
352 <xs:enumeration value="BINARY"/>
353 <xs:enumeration value="MIXED"/>
354 </xs:restriction>
355 </xs:simpleType>
356 <xs:simpleType name="PackageUsage">
357 <xs:restriction base="NameConvention">
358 <xs:enumeration value="ALWAYS_CONSUMED"/>
359 <xs:enumeration value="ALWAYS_PRODUCED"/>
360 <xs:enumeration value="DEFAULT"/>
361 </xs:restriction>
362 </xs:simpleType>
363 <xs:simpleType name="PcdListType">
364 <xs:list itemType="PcdItemTypes"/>
365 </xs:simpleType>
366 <xs:simpleType name="PcdTypes">
367 <xs:restriction base="NameConvention">
368 <xs:enumeration value="FIXED_AT_BUILD"/>
369 <xs:enumeration value="FEATURE_FLAG"/>
370 <xs:enumeration value="PATCHABLE_IN_MODULE"/>
371 <xs:enumeration value="DYNAMIC"/>
372 <xs:enumeration value="DYNAMIC_EX"/>
373 </xs:restriction>
374 </xs:simpleType>
375 <xs:simpleType name="PcdDriverTypes">
376 <xs:restriction base="NameConvention">
377 <xs:enumeration value="PEI_PCD_DRIVER"/>
378 <xs:enumeration value="DXE_PCD_DRIVER"/>
379 </xs:restriction>
380 </xs:simpleType>
381 <xs:simpleType name="PcdDataTypes">
382 <xs:restriction base="xs:normalizedString">
383 <xs:enumeration value="UINT8"/>
384 <xs:enumeration value="UINT16"/>
385 <xs:enumeration value="UINT32"/>
386 <xs:enumeration value="UINT64"/>
387 <xs:enumeration value="VOID*"/>
388 <xs:enumeration value="BOOLEAN"/>
389 </xs:restriction>
390 </xs:simpleType>
391 <xs:simpleType name="PcdFeatureFlagUsage">
392 <xs:restriction base="UsageTypes">
393 <xs:enumeration value="ALWAYS_PRODUCED"/>
394 <xs:enumeration value="DEFAULT"/>
395 </xs:restriction>
396 </xs:simpleType>
397 <xs:simpleType name="PcdItemTypes">
398 <xs:restriction base="NameConvention">
399 <xs:enumeration value="FEATURE_FLAG"/>
400 <xs:enumeration value="FIXED_AT_BUILD"/>
401 <xs:enumeration value="PATCHABLE_IN_MODULE"/>
402 <xs:enumeration value="DYNAMIC"/>
403 <xs:enumeration value="DYNAMIC_EX"/>
404 </xs:restriction>
405 </xs:simpleType>
406 <xs:simpleType name="PcdUsage">
407 <xs:restriction base="NameConvention">
408 <xs:enumeration value="ALWAYS_CONSUMED"/>
409 <xs:enumeration value="SOMETIMES_CONSUMED"/>
410 <xs:enumeration value="ALWAYS_PRODUCED"/>
411 <xs:enumeration value="SOMETIMES_PRODUCED"/>
412 <xs:enumeration value="DEFAULT"/>
413 </xs:restriction>
414 </xs:simpleType>
415 <xs:simpleType name="PpiNotifyUsage">
416 <xs:restriction base="NameConvention">
417 <xs:enumeration value="SOMETIMES_CONSUMED"/>
418 </xs:restriction>
419 </xs:simpleType>
420 <xs:simpleType name="PpiUsage">
421 <xs:restriction base="NameConvention">
422 <xs:enumeration value="ALWAYS_CONSUMED"/>
423 <xs:enumeration value="SOMETIMES_CONSUMED"/>
424 <xs:enumeration value="ALWAYS_PRODUCED"/>
425 <xs:enumeration value="SOMETIMES_PRODUCED"/>
426 <xs:enumeration value="PRIVATE"/>
427 </xs:restriction>
428 </xs:simpleType>
429 <xs:simpleType name="ProtocolNotifyUsage">
430 <xs:restriction base="NameConvention">
431 <xs:enumeration value="SOMETIMES_CONSUMED"/>
432 </xs:restriction>
433 </xs:simpleType>
434 <xs:simpleType name="ProtocolUsage">
435 <xs:restriction base="NameConvention">
436 <xs:enumeration value="ALWAYS_CONSUMED"/>
437 <xs:enumeration value="SOMETIMES_CONSUMED"/>
438 <xs:enumeration value="ALWAYS_PRODUCED"/>
439 <xs:enumeration value="SOMETIMES_PRODUCED"/>
440 <xs:enumeration value="TO_START"/>
441 <xs:enumeration value="BY_START"/>
442 <xs:enumeration value="PRIVATE"/>
443 </xs:restriction>
444 </xs:simpleType>
445 <xs:simpleType name="SkuListType">
446 <xs:list itemType="HexByteDataType"/>
447 </xs:simpleType>
448 <xs:simpleType name="SupportedArchitectures">
449 <xs:restriction base="NameConvention">
450 <xs:enumeration value="ALL"/>
451 <xs:enumeration value="EBC"/>
452 <xs:enumeration value="ARM"/>
453 <xs:enumeration value="IA32"/>
454 <xs:enumeration value="X64"/>
455 <xs:enumeration value="IPF"/>
456 <xs:enumeration value="PPC"/>
457 </xs:restriction>
458 </xs:simpleType>
459 <xs:simpleType name="SystemTableUsage">
460 <xs:restriction base="NameConvention">
461 <xs:enumeration value="ALWAYS_CONSUMED"/>
462 <xs:enumeration value="SOMETIMES_CONSUMED"/>
463 <xs:enumeration value="ALWAYS_PRODUCED"/>
464 <xs:enumeration value="SOMETIMES_PRODUCED"/>
465 <xs:enumeration value="PRIVATE"/>
466 </xs:restriction>
467 </xs:simpleType>
468 <xs:simpleType name="Token">
469 <xs:union memberTypes="GuidArrayType GuidNamingConvention HexDoubleWordDataType"/>
470 </xs:simpleType>
471 <!-- TokenDataType is xs:nonNegativeInteger in final -->
472 <xs:simpleType name="TokenDataType">
473 <xs:union memberTypes="HexDoubleWordDataType xs:nonNegativeInteger"/>
474 </xs:simpleType>
475 <xs:simpleType name="ToolChains">
476 <xs:restriction base="UCNameType">
477 <xs:enumeration value="MSFT"/>
478 <xs:enumeration value="INTEL"/>
479 <xs:enumeration value="GCC"/>
480 <xs:enumeration value="CYGWIN"/>
481 </xs:restriction>
482 </xs:simpleType>
483 <xs:simpleType name="ToothPick">
484 <xs:restriction base="xs:normalizedString">
485 <xs:enumeration value="UNIX"/>
486 <xs:enumeration value="WINDOWS"/>
487 </xs:restriction>
488 </xs:simpleType>
489 <xs:simpleType name="UiNameType">
490 <xs:restriction base="xs:string">
491 <xs:pattern value="(([a-zA-Z][a-zA-Z0-9]*)(_)*(.)*)+"/>
492 </xs:restriction>
493 </xs:simpleType>
494 <xs:simpleType name="UnicodeString">
495 <xs:restriction base="xs:normalizedString">
496 <xs:pattern value="L(:)?(&quot;)(\w+)*((\W*)*(\s*)*(\w*)*)*(&quot;)"/>
497 </xs:restriction>
498 </xs:simpleType>
499 <xs:simpleType name="VariableNameDataType">
500 <xs:list itemType="HexWordArrayType"/>
501 </xs:simpleType>
502 <xs:simpleType name="UsageTypes">
503 <xs:restriction base="NameConvention">
504 <xs:enumeration value="ALWAYS_CONSUMED"/>
505 <xs:enumeration value="SOMETIMES_CONSUMED"/>
506 <xs:enumeration value="ALWAYS_PRODUCED"/>
507 <xs:enumeration value="SOMETIMES_PRODUCED"/>
508 <xs:enumeration value="TO_START"/>
509 <xs:enumeration value="BY_START"/>
510 <xs:enumeration value="PRIVATE"/>
511 <xs:enumeration value="DEFAULT"/>
512 </xs:restriction>
513 </xs:simpleType>
514 <xs:simpleType name="VariableOffsetValues">
515 <xs:restriction base="xs:string">
516 <xs:pattern value="\d+(:)?\d*"/>
517 </xs:restriction>
518 </xs:simpleType>
519 <xs:simpleType name="VariableUsage">
520 <xs:restriction base="NameConvention">
521 <xs:enumeration value="ALWAYS_CONSUMED"/>
522 <xs:enumeration value="SOMETIMES_CONSUMED"/>
523 <xs:enumeration value="ALWAYS_PRODUCED"/>
524 <xs:enumeration value="SOMETIMES_PRODUCED"/>
525 <xs:enumeration value="PRIVATE"/>
526 </xs:restriction>
527 </xs:simpleType>
528 <!-- Complex Data Types -->
529 <xs:complexType name="ArgsType">
530 <xs:sequence minOccurs="0" maxOccurs="unbounded">
531 <xs:element name="Arg" type="xs:string"/>
532 </xs:sequence>
533 </xs:complexType>
534 <xs:complexType name="ToolType">
535 <xs:sequence>
536 <xs:element name="ToolName" type="xs:string"/>
537 <xs:element name="ToolArgs" type="xs:string"/>
538 </xs:sequence>
539 </xs:complexType>
540 <xs:simpleType name="FfsNameType">
541 <xs:annotation>
542 <xs:documentation xml:lang="en"> This defines what an FFS Name can consist of.</xs:documentation>
543 </xs:annotation>
544 <xs:restriction base="xs:string">
545 <xs:pattern value="[a-zA-Z][_\-a-zA-Z0-9]*(.)?[a-zA-Z0-9]*"/>
546 </xs:restriction>
547 </xs:simpleType>
548 <xs:simpleType name="FeatureFlagExpressionType">
549 <xs:restriction base="xs:normalizedString">
550 <xs:pattern value="(\w*\W*)*"/>
551 </xs:restriction>
552 </xs:simpleType>
553 </xs:schema>