]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/XMLSchema/FrameworkDataTypes.xsd
7cf160294a9fa850ccb28fbd14cff7fd49c933bd
[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_EXIT_BOOT_SERVICES"/>
140 <xs:enumeration value="EVENT_GROUP_VIRTUAL_ADDRESS_CHANGE"/>
141 <xs:enumeration value="EVENT_GROUP_MEMORY_MAP_CHANGE"/>
142 <xs:enumeration value="EVENT_GROUP_READY_TO_BOOT"/>
143 <xs:enumeration value="EVENT_GROUP_LEGACY_BOOT"/>
144 </xs:restriction>
145 </xs:simpleType>
146 <xs:simpleType name="EventUsage">
147 <xs:restriction base="NameConvention">
148 <xs:enumeration value="ALWAYS_CONSUMED"/>
149 <xs:enumeration value="SOMETIMES_CONSUMED"/>
150 <xs:enumeration value="ALWAYS_PRODUCED"/>
151 <xs:enumeration value="SOMETIMES_PRODUCED"/>
152 <xs:enumeration value="PRIVATE"/>
153 </xs:restriction>
154 </xs:simpleType>
155 <xs:simpleType name="ExecutionType">
156 <xs:restriction base="UCNameType">
157 <xs:enumeration value="REL" id="Relocatable"/>
158 <xs:enumeration value="NREL" id="Non-Relocatable"/>
159 <xs:enumeration value="XIP" id="Execute_In_Place"/>
160 <xs:enumeration value="PIC" id="Position_Independent_Code"/>
161 </xs:restriction>
162 </xs:simpleType>
163 <xs:simpleType name="ExternType">
164 <xs:restriction base="xs:string">
165 <xs:pattern value="(_*\w*\W*)*"/>
166 </xs:restriction>
167 </xs:simpleType>
168 <xs:simpleType name="ExternUsage">
169 <xs:restriction base="NameConvention">
170 <xs:enumeration value="ALWAYS_CONSUMED"/>
171 <xs:enumeration value="ALWAYS_PRODUCED"/>
172 </xs:restriction>
173 </xs:simpleType>
174 <xs:simpleType name="FileNameUsage">
175 <xs:restriction base="NameConvention">
176 <xs:enumeration value="ALWAYS_CONSUMED"/>
177 <xs:enumeration value="SOMETIMES_CONSUMED"/>
178 <xs:enumeration value="ALWAYS_PRODUCED"/>
179 <xs:enumeration value="SOMETIMES_PRODUCED"/>
180 <xs:enumeration value="PRIVATE"/>
181 </xs:restriction>
182 </xs:simpleType>
183 <xs:simpleType name="FormSetUsage">
184 <xs:restriction base="NameConvention">
185 <xs:enumeration value="ALWAYS_PRODUCED"/>
186 <xs:enumeration value="SOMETIMES_PRODUCED"/>
187 <xs:enumeration value="PRIVATE"/>
188 </xs:restriction>
189 </xs:simpleType>
190 <xs:simpleType name="FrameworkComponentTypes">
191 <xs:restriction base="UCNameType">
192 <xs:enumeration value="APRIORI"/>
193 <xs:enumeration value="SEC"/>
194 <xs:enumeration value="LIBRARY"/>
195 <xs:enumeration value="FV_IMAGE_FILE"/>
196 <xs:enumeration value="BS_DRIVER"/>
197 <xs:enumeration value="RT_DRIVER"/>
198 <xs:enumeration value="SAL_RT_DRIVER"/>
199 <xs:enumeration value="PE32_PEIM"/>
200 <xs:enumeration value="PIC_PEIM"/>
201 <xs:enumeration value="COMBINED_PEIM_DRIVER"/>
202 <xs:enumeration value="PEI_CORE"/>
203 <xs:enumeration value="DXE_CORE"/>
204 <xs:enumeration value="APPLICATION"/>
205 <xs:enumeration value="BS_DRIVER_EFI"/>
206 <xs:enumeration value="SHELLAPP"/>
207 <xs:enumeration value="UEFI_APPLICATION"/>
208 <xs:enumeration value="BINARY"/>
209 <xs:enumeration value="LOGO"/>
210 <xs:enumeration value="CUSTOM_BUILD"/>
211 </xs:restriction>
212 </xs:simpleType>
213 <xs:simpleType name="FrameworkModuleTypes">
214 <xs:restriction base="ModuleTypeDef">
215 <xs:enumeration value="BASE"/>
216 <xs:enumeration value="SEC"/>
217 <xs:enumeration value="PEI_CORE"/>
218 <xs:enumeration value="PEIM"/>
219 <xs:enumeration value="DXE_CORE"/>
220 <xs:enumeration value="DXE_DRIVER"/>
221 <xs:enumeration value="DXE_RUNTIME_DRIVER"/>
222 <xs:enumeration value="DXE_SAL_DRIVER"/>
223 <xs:enumeration value="DXE_SMM_DRIVER"/>
224 <xs:enumeration value="UEFI_DRIVER"/>
225 <xs:enumeration value="UEFI_APPLICATION"/>
226 <xs:enumeration value="USER_DEFINED"/>
227 </xs:restriction>
228 </xs:simpleType>
229 <xs:simpleType name="FvRegionTypes">
230 <xs:restriction base="UCNameType">
231 <xs:enumeration value="FV_MAIN"/>
232 <xs:enumeration value="FV_MAIN_COMPACT"/>
233 <xs:enumeration value="NV_STORAGE"/>
234 <xs:enumeration value="FV_RECOVERY"/>
235 <xs:enumeration value="FV_RECOVERY_FLOPPY"/>
236 <xs:enumeration value="FV_FILE"/>
237 <xs:enumeration value="CAPSULE_CARGO"/>
238 <xs:enumeration value="NULL"/>
239 <xs:enumeration value="USER_DEFINED"/>
240 </xs:restriction>
241 </xs:simpleType>
242 <xs:simpleType name="GuidTypes">
243 <xs:restriction base="UCNameType">
244 <xs:enumeration value="DATA_HUB_RECORD"/>
245 <xs:enumeration value="EFI_EVENT"/>
246 <xs:enumeration value="EFI_SYSTEM_CONFIGURATION_TABLE"/>
247 <xs:enumeration value="EFI_VARIABLE"/>
248 <xs:enumeration value="HII_PACKAGE_LIST"/>
249 <xs:enumeration value="HOB"/>
250 </xs:restriction>
251 </xs:simpleType>
252 <xs:simpleType name="GuidListType">
253 <xs:list itemType="GuidTypes"/>
254 </xs:simpleType>
255 <xs:simpleType name="GuidUsage">
256 <xs:restriction base="NameConvention">
257 <xs:enumeration value="ALWAYS_CONSUMED"/>
258 <xs:enumeration value="SOMETIMES_CONSUMED"/>
259 <xs:enumeration value="ALWAYS_PRODUCED"/>
260 <xs:enumeration value="SOMETIMES_PRODUCED"/>
261 <xs:enumeration value="DEFAULT"/>
262 <xs:enumeration value="PRIVATE"/>
263 </xs:restriction>
264 </xs:simpleType>
265 <xs:simpleType name="HexByteArrayType">
266 <xs:list itemType="HexByteDataType"/>
267 </xs:simpleType>
268 <xs:simpleType name="HexByteArrayListType">
269 <xs:restriction base="xs:normalizedString">
270 <xs:pattern value="((( )?0x[a-fA-F0-9]{2})(,)?)+( )?"/>
271 </xs:restriction>
272 </xs:simpleType>
273 <xs:simpleType name="HexWordArrayType">
274 <xs:restriction base="xs:normalizedString">
275 <xs:pattern value="((( )?0x[a-fA-F0-9]{4})(,)?)+( )?"/>
276 </xs:restriction>
277 </xs:simpleType>
278 <xs:simpleType name="HiiPackageUsage">
279 <xs:restriction base="NameConvention">
280 <xs:enumeration value="ALWAYS_PRODUCED"/>
281 <xs:enumeration value="SOMETIMES_PRODUCED"/>
282 <xs:enumeration value="PRIVATE"/>
283 </xs:restriction>
284 </xs:simpleType>
285 <xs:simpleType name="HobTypes">
286 <xs:restriction base="NameConvention">
287 <xs:enumeration value="PHIT"/>
288 <xs:enumeration value="MEMORY_ALLOCATION"/>
289 <xs:enumeration value="RESOURCE_DESCRIPTOR"/>
290 <xs:enumeration value="GUID_EXTENSION"/>
291 <xs:enumeration value="FIRMWARE_VOLUME"/>
292 <xs:enumeration value="CPU"/>
293 <xs:enumeration value="POOL"/>
294 <xs:enumeration value="CAPSULE_VOLUME"/>
295 </xs:restriction>
296 </xs:simpleType>
297 <xs:simpleType name="HobUsage">
298 <xs:restriction base="NameConvention">
299 <xs:enumeration value="ALWAYS_CONSUMED"/>
300 <xs:enumeration value="SOMETIMES_CONSUMED"/>
301 <xs:enumeration value="ALWAYS_PRODUCED"/>
302 <xs:enumeration value="SOMETIMES_PRODUCED"/>
303 <xs:enumeration value="PRIVATE"/>
304 </xs:restriction>
305 </xs:simpleType>
306 <xs:simpleType name="IntList">
307 <xs:list itemType="xs:positiveInteger"/>
308 </xs:simpleType>
309 <xs:simpleType name="LibraryUsage">
310 <xs:restriction base="NameConvention">
311 <xs:enumeration value="ALWAYS_CONSUMED"/>
312 <xs:enumeration value="SOMETIMES_CONSUMED"/>
313 <xs:enumeration value="ALWAYS_PRODUCED"/>
314 <xs:enumeration value="SOMETIMES_PRODUCED"/>
315 <xs:enumeration value="DEFAULT"/>
316 <xs:enumeration value="PRIVATE"/>
317 </xs:restriction>
318 </xs:simpleType>
319 <xs:simpleType name="ModuleTypeDef">
320 <xs:restriction base="NameConvention">
321 <xs:enumeration value="BASE"/>
322 <xs:enumeration value="SEC"/>
323 <xs:enumeration value="PEI_CORE"/>
324 <xs:enumeration value="PEIM"/>
325 <xs:enumeration value="DXE_CORE"/>
326 <xs:enumeration value="DXE_DRIVER"/>
327 <xs:enumeration value="DXE_RUNTIME_DRIVER"/>
328 <xs:enumeration value="DXE_SAL_DRIVER"/>
329 <xs:enumeration value="DXE_SMM_DRIVER"/>
330 <xs:enumeration value="TOOLS"/>
331 <xs:enumeration value="UEFI_DRIVER"/>
332 <xs:enumeration value="UEFI_APPLICATION"/>
333 <xs:enumeration value="USER_DEFINED"/>
334 </xs:restriction>
335 </xs:simpleType>
336 <xs:simpleType name="ModuleTypeList">
337 <xs:list itemType="FrameworkModuleTypes"/>
338 </xs:simpleType>
339 <xs:simpleType name="Module_Unified">
340 <xs:restriction base="UCNameType">
341 <xs:enumeration value="MODULE"/>
342 <xs:enumeration value="UNIFIED"/>
343 </xs:restriction>
344 </xs:simpleType>
345 <xs:simpleType name="PackageType">
346 <xs:restriction base="UCNameType">
347 <xs:enumeration value="SOURCE"/>
348 <xs:enumeration value="BINARY"/>
349 <xs:enumeration value="MIXED"/>
350 </xs:restriction>
351 </xs:simpleType>
352 <xs:simpleType name="PackageUsage">
353 <xs:restriction base="NameConvention">
354 <xs:enumeration value="ALWAYS_CONSUMED"/>
355 <xs:enumeration value="ALWAYS_PRODUCED"/>
356 <xs:enumeration value="DEFAULT"/>
357 </xs:restriction>
358 </xs:simpleType>
359 <xs:simpleType name="PcdListType">
360 <xs:list itemType="PcdItemTypes"/>
361 </xs:simpleType>
362 <xs:simpleType name="PcdTypes">
363 <xs:restriction base="NameConvention">
364 <xs:enumeration value="FIXED_AT_BUILD"/>
365 <xs:enumeration value="FEATURE_FLAG"/>
366 <xs:enumeration value="PATCHABLE_IN_MODULE"/>
367 <xs:enumeration value="DYNAMIC"/>
368 <xs:enumeration value="DYNAMIC_EX"/>
369 </xs:restriction>
370 </xs:simpleType>
371 <xs:simpleType name="PcdDriverTypes">
372 <xs:restriction base="NameConvention">
373 <xs:enumeration value="PEI_PCD_DRIVER"/>
374 <xs:enumeration value="DXE_PCD_DRIVER"/>
375 </xs:restriction>
376 </xs:simpleType>
377 <xs:simpleType name="PcdDataTypes">
378 <xs:restriction base="xs:normalizedString">
379 <xs:enumeration value="UINT8"/>
380 <xs:enumeration value="UINT16"/>
381 <xs:enumeration value="UINT32"/>
382 <xs:enumeration value="UINT64"/>
383 <xs:enumeration value="VOID*"/>
384 <xs:enumeration value="BOOLEAN"/>
385 </xs:restriction>
386 </xs:simpleType>
387 <xs:simpleType name="PcdFeatureFlagUsage">
388 <xs:restriction base="UsageTypes">
389 <xs:enumeration value="ALWAYS_PRODUCED"/>
390 <xs:enumeration value="DEFAULT"/>
391 </xs:restriction>
392 </xs:simpleType>
393 <xs:simpleType name="PcdItemTypes">
394 <xs:restriction base="NameConvention">
395 <xs:enumeration value="FEATURE_FLAG"/>
396 <xs:enumeration value="FIXED_AT_BUILD"/>
397 <xs:enumeration value="PATCHABLE_IN_MODULE"/>
398 <xs:enumeration value="DYNAMIC"/>
399 <xs:enumeration value="DYNAMIC_EX"/>
400 </xs:restriction>
401 </xs:simpleType>
402 <xs:simpleType name="PcdUsage">
403 <xs:restriction base="NameConvention">
404 <xs:enumeration value="ALWAYS_CONSUMED"/>
405 <xs:enumeration value="SOMETIMES_CONSUMED"/>
406 <xs:enumeration value="ALWAYS_PRODUCED"/>
407 <xs:enumeration value="SOMETIMES_PRODUCED"/>
408 <xs:enumeration value="DEFAULT"/>
409 </xs:restriction>
410 </xs:simpleType>
411 <xs:simpleType name="PpiNotifyUsage">
412 <xs:restriction base="NameConvention">
413 <xs:enumeration value="SOMETIMES_CONSUMED"/>
414 </xs:restriction>
415 </xs:simpleType>
416 <xs:simpleType name="PpiUsage">
417 <xs:restriction base="NameConvention">
418 <xs:enumeration value="ALWAYS_CONSUMED"/>
419 <xs:enumeration value="SOMETIMES_CONSUMED"/>
420 <xs:enumeration value="ALWAYS_PRODUCED"/>
421 <xs:enumeration value="SOMETIMES_PRODUCED"/>
422 <xs:enumeration value="PRIVATE"/>
423 </xs:restriction>
424 </xs:simpleType>
425 <xs:simpleType name="ProtocolNotifyUsage">
426 <xs:restriction base="NameConvention">
427 <xs:enumeration value="SOMETIMES_CONSUMED"/>
428 </xs:restriction>
429 </xs:simpleType>
430 <xs:simpleType name="ProtocolUsage">
431 <xs:restriction base="NameConvention">
432 <xs:enumeration value="ALWAYS_CONSUMED"/>
433 <xs:enumeration value="SOMETIMES_CONSUMED"/>
434 <xs:enumeration value="ALWAYS_PRODUCED"/>
435 <xs:enumeration value="SOMETIMES_PRODUCED"/>
436 <xs:enumeration value="TO_START"/>
437 <xs:enumeration value="BY_START"/>
438 <xs:enumeration value="PRIVATE"/>
439 </xs:restriction>
440 </xs:simpleType>
441 <xs:simpleType name="SkuListType">
442 <xs:list itemType="HexByteDataType"/>
443 </xs:simpleType>
444 <xs:simpleType name="SupportedArchitectures">
445 <xs:restriction base="NameConvention">
446 <xs:enumeration value="ALL"/>
447 <xs:enumeration value="EBC"/>
448 <xs:enumeration value="ARM"/>
449 <xs:enumeration value="IA32"/>
450 <xs:enumeration value="X64"/>
451 <xs:enumeration value="IPF"/>
452 <xs:enumeration value="PPC"/>
453 </xs:restriction>
454 </xs:simpleType>
455 <xs:simpleType name="SystemTableUsage">
456 <xs:restriction base="NameConvention">
457 <xs:enumeration value="ALWAYS_CONSUMED"/>
458 <xs:enumeration value="SOMETIMES_CONSUMED"/>
459 <xs:enumeration value="ALWAYS_PRODUCED"/>
460 <xs:enumeration value="SOMETIMES_PRODUCED"/>
461 <xs:enumeration value="PRIVATE"/>
462 </xs:restriction>
463 </xs:simpleType>
464 <xs:simpleType name="Token">
465 <xs:union memberTypes="GuidArrayType GuidNamingConvention HexDoubleWordDataType"/>
466 </xs:simpleType>
467 <!-- TokenDataType is xs:nonNegativeInteger in final -->
468 <xs:simpleType name="TokenDataType">
469 <xs:union memberTypes="HexDoubleWordDataType xs:nonNegativeInteger"/>
470 </xs:simpleType>
471 <xs:simpleType name="ToolChains">
472 <xs:restriction base="UCNameType">
473 <xs:enumeration value="MSFT"/>
474 <xs:enumeration value="INTEL"/>
475 <xs:enumeration value="GCC"/>
476 <xs:enumeration value="CYGWIN"/>
477 </xs:restriction>
478 </xs:simpleType>
479 <xs:simpleType name="ToothPick">
480 <xs:restriction base="xs:normalizedString">
481 <xs:enumeration value="UNIX"/>
482 <xs:enumeration value="WINDOWS"/>
483 </xs:restriction>
484 </xs:simpleType>
485 <xs:simpleType name="UiNameType">
486 <xs:restriction base="xs:string">
487 <xs:pattern value="(([a-zA-Z][a-zA-Z0-9]*)(_)*(.)*)+"/>
488 </xs:restriction>
489 </xs:simpleType>
490 <xs:simpleType name="UnicodeString">
491 <xs:restriction base="xs:normalizedString">
492 <xs:pattern value="L(:)?(&quot;)(\w+)*((\W*)*(\s*)*(\w*)*)*(&quot;)"/>
493 </xs:restriction>
494 </xs:simpleType>
495 <xs:simpleType name="VariableNameDataType">
496 <xs:list itemType="HexWordArrayType"/>
497 </xs:simpleType>
498 <xs:simpleType name="UsageTypes">
499 <xs:restriction base="NameConvention">
500 <xs:enumeration value="ALWAYS_CONSUMED"/>
501 <xs:enumeration value="SOMETIMES_CONSUMED"/>
502 <xs:enumeration value="ALWAYS_PRODUCED"/>
503 <xs:enumeration value="SOMETIMES_PRODUCED"/>
504 <xs:enumeration value="TO_START"/>
505 <xs:enumeration value="BY_START"/>
506 <xs:enumeration value="PRIVATE"/>
507 <xs:enumeration value="DEFAULT"/>
508 </xs:restriction>
509 </xs:simpleType>
510 <xs:simpleType name="VariableOffsetValues">
511 <xs:restriction base="xs:string">
512 <xs:pattern value="\d+(:)?\d*"/>
513 </xs:restriction>
514 </xs:simpleType>
515 <xs:simpleType name="VariableUsage">
516 <xs:restriction base="NameConvention">
517 <xs:enumeration value="ALWAYS_CONSUMED"/>
518 <xs:enumeration value="SOMETIMES_CONSUMED"/>
519 <xs:enumeration value="ALWAYS_PRODUCED"/>
520 <xs:enumeration value="SOMETIMES_PRODUCED"/>
521 <xs:enumeration value="PRIVATE"/>
522 </xs:restriction>
523 </xs:simpleType>
524 <!-- Complex Data Types -->
525 <xs:complexType name="ArgsType">
526 <xs:sequence minOccurs="0" maxOccurs="unbounded">
527 <xs:element name="Arg" type="xs:string"/>
528 </xs:sequence>
529 </xs:complexType>
530 <xs:complexType name="ToolType">
531 <xs:sequence>
532 <xs:element name="ToolName" type="xs:string"/>
533 <xs:element name="ToolArgs" type="xs:string"/>
534 </xs:sequence>
535 </xs:complexType>
536 <xs:simpleType name="FfsNameType">
537 <xs:annotation>
538 <xs:documentation xml:lang="en"> This defines what an FFS Name can consist of.</xs:documentation>
539 </xs:annotation>
540 <xs:restriction base="xs:string">
541 <xs:pattern value="[a-zA-Z][_\-a-zA-Z0-9]*(.)?[a-zA-Z0-9]*"/>
542 </xs:restriction>
543 </xs:simpleType>
544 <xs:simpleType name="FeatureFlagExpressionType">
545 <xs:restriction base="xs:normalizedString">
546 <xs:pattern value="(\w*\W*)*"/>
547 </xs:restriction>
548 </xs:simpleType>
549 </xs:schema>