Add PciBus Module
[mirror_edk2.git] / BaseTools / Conf / 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/2007/Edk2.1" targetNamespace="http://www.TianoCore.org/2007/Edk2.1">
3 <!--
4 Filename: FrameworkDataTypes.xsd
5
6 Copyright (c) 2007, 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="PrimaryArchListType">
20 <xs:list itemType="SupportedArchitectures"/>
21 </xs:simpleType>
22 <xs:simpleType name="ArchListType">
23 <xs:restriction base="PrimaryArchListType">
24 <xs:minLength value="1"/>
25 </xs:restriction>
26 </xs:simpleType>
27 <xs:simpleType name="BinFileType">
28 <xs:restriction base="xs:NCName">
29 <xs:enumeration value="LIB"/>
30 <xs:enumeration value="UNI_UI"/>
31 <xs:enumeration value="UNI_VER"/>
32 <xs:enumeration value="PE32"/>
33 <xs:enumeration value="FW"/>
34 <xs:enumeration value="GUID"/>
35 <xs:enumeration value="FREEFORM"/>
36 <xs:enumeration value="UEFI_APP"/>
37 <xs:enumeration value="PIC"/>
38 <xs:enumeration value="PEI_DEPEX"/>
39 <xs:enumeration value="DXE_DEPEX"/>
40 <xs:enumeration value="TE"/>
41 <xs:enumeration value="VER"/>
42 <xs:enumeration value="UI"/>
43 <xs:enumeration value="BIN"/>
44 <xs:enumeration value="FV"/>
45 </xs:restriction>
46 </xs:simpleType>
47 <xs:simpleType name="BlockNameType">
48 <xs:restriction base="UCNameType">
49 <xs:pattern value="\s*BLOCK[A-F0-9]{2}\s*"/>
50 </xs:restriction>
51 </xs:simpleType>
52 <xs:simpleType name="BootModeNames">
53 <xs:restriction base="UCNameType">
54 <xs:enumeration value="FULL"/>
55 <xs:enumeration value="MINIMAL"/>
56 <xs:enumeration value="NO_CHANGE"/>
57 <xs:enumeration value="DIAGNOSTICS"/>
58 <xs:enumeration value="DEFAULT"/>
59 <xs:enumeration value="S2_RESUME"/>
60 <xs:enumeration value="S3_RESUME"/>
61 <xs:enumeration value="S4_RESUME"/>
62 <xs:enumeration value="S5_RESUME"/>
63 <xs:enumeration value="FLASH_UPDATE"/>
64 <xs:enumeration value="RECOVERY_FULL"/>
65 <xs:enumeration value="RECOVERY_MINIMAL"/>
66 <xs:enumeration value="RECOVERY_NO_CHANGE"/>
67 <xs:enumeration value="RECOVERY_DIAGNOSTICS"/>
68 <xs:enumeration value="RECOVERY_DEFAULT"/>
69 <xs:enumeration value="RECOVERY_S2_RESUME"/>
70 <xs:enumeration value="RECOVERY_S3_RESUME"/>
71 <xs:enumeration value="RECOVERY_S4_RESUME"/>
72 <xs:enumeration value="RECOVERY_S5_RESUME"/>
73 <xs:enumeration value="RECOVERY_FLASH_UPDATE"/>
74 </xs:restriction>
75 </xs:simpleType>
76 <xs:simpleType name="BootModeUsage">
77 <xs:restriction base="UsageTypes">
78 <xs:enumeration value="ALWAYS_CONSUMED"/>
79 <xs:enumeration value="SOMETIMES_CONSUMED"/>
80 <xs:enumeration value="ALWAYS_PRODUCED"/>
81 <xs:enumeration value="SOMETIMES_PRODUCED"/>
82 </xs:restriction>
83 </xs:simpleType>
84 <xs:simpleType name="BuildTargetList">
85 <xs:restriction base="BuildTargetUList">
86 <xs:minLength value="1"/>
87 </xs:restriction>
88 </xs:simpleType>
89 <xs:simpleType name="BuildTargetUList">
90 <xs:list itemType="BrUType"/>
91 </xs:simpleType>
92 <xs:simpleType name="BrUType">
93 <xs:union memberTypes="BrType UCNameType"/>
94 </xs:simpleType>
95 <xs:simpleType name="BrType">
96 <xs:restriction base="UCNameType">
97 <xs:enumeration value="DEBUG"/>
98 <xs:enumeration value="RELEASE"/>
99 </xs:restriction>
100 </xs:simpleType>
101 <xs:simpleType name="ComponentExecutionPhase">
102 <xs:restriction base="UCNameType">
103 <xs:enumeration value="MDE"/>
104 <xs:enumeration value="SEC"/>
105 <xs:enumeration value="PEI_CORE"/>
106 <xs:enumeration value="PEIM"/>
107 <xs:enumeration value="DXE_CORE"/>
108 <xs:enumeration value="DXE_DRIVER"/>
109 <xs:enumeration value="DXE_RUNTIME_DRIVER"/>
110 <xs:enumeration value="DXE_SAL_DRIVER"/>
111 <xs:enumeration value="DXE_SMM_DRIVER"/>
112 <xs:enumeration value="UEFI"/>
113 <xs:enumeration value="UEFI_APPLICATION"/>
114 </xs:restriction>
115 </xs:simpleType>
116 <xs:simpleType name="DataHubUsage">
117 <xs:restriction base="UsageTypes">
118 <xs:enumeration value="ALWAYS_CONSUMED"/>
119 <xs:enumeration value="SOMETIMES_CONSUMED"/>
120 <xs:enumeration value="ALWAYS_PRODUCED"/>
121 <xs:enumeration value="SOMETIMES_PRODUCED"/>
122 <xs:enumeration value="PRIVATE"/>
123 </xs:restriction>
124 </xs:simpleType>
125 <xs:simpleType name="DatumSizeLimitation">
126 <xs:restriction base="xs:nonNegativeInteger">
127 <xs:maxExclusive value="13777216"/>
128 <xs:pattern value="(\s)*[1-9][0-9]*(\s)*"/>
129 </xs:restriction>
130 </xs:simpleType>
131 <xs:simpleType name="DefaultValueType">
132 <xs:union memberTypes="xs:normalizedString Hex64BitDataType UnicodeString HexByteArrayType"/>
133 </xs:simpleType>
134 <xs:simpleType name="EfiSectionType">
135 <xs:restriction base="UCNameType">
136 <xs:enumeration value="EFI_SECTION_FREEFORM_SUBTYPE_GUID"/>
137 <xs:enumeration value="EFI_SECTION_VERSION"/>
138 <xs:enumeration value="EFI_SECTION_USER_INTERFACE"/>
139 <xs:enumeration value="EFI_SECTION_DXE_DEPEX"/>
140 <xs:enumeration value="EFI_SECTION_PEI_DEPEX"/>
141 <xs:enumeration value="EFI_SECTION_PE32"/>
142 <xs:enumeration value="EFI_SECTION_PIC"/>
143 <xs:enumeration value="EFI_SECTION_TE"/>
144 <xs:enumeration value="EFI_SECTION_RAW"/>
145 <xs:enumeration value="EFI_SECTION_COMPRESSION"/>
146 <xs:enumeration value="EFI_SECTION_GUID_DEFINED"/>
147 <xs:enumeration value="EFI_SECTION_COMPATIBILITY16"/>
148 <xs:enumeration value="EFI_SECTION_FIRMWARE_VOLUME_IMAGE"/>
149 </xs:restriction>
150 </xs:simpleType>
151 <xs:simpleType name="EventTypes">
152 <xs:restriction base="UCNameType">
153 <xs:enumeration value="EVENT_GROUP_GUID"/>
154 <xs:enumeration value="EVENT_TYPE_PERIODIC_TIMER"/>
155 <xs:enumeration value="EVENT_TYPE_RELATIVE_TIMER"/>
156 </xs:restriction>
157 </xs:simpleType>
158 <xs:simpleType name="EventUsage">
159 <xs:restriction base="UsageTypes">
160 <xs:enumeration value="ALWAYS_CONSUMED"/>
161 <xs:enumeration value="SOMETIMES_CONSUMED"/>
162 <xs:enumeration value="ALWAYS_PRODUCED"/>
163 <xs:enumeration value="SOMETIMES_PRODUCED"/>
164 <xs:enumeration value="PRIVATE"/>
165 </xs:restriction>
166 </xs:simpleType>
167 <xs:simpleType name="ExecutionType">
168 <xs:restriction base="UCNameType">
169 <xs:enumeration value="REL" id="Relocatable"/>
170 <xs:enumeration value="NREL" id="Non-Relocatable"/>
171 <xs:enumeration value="XIP" id="Execute_In_Place"/>
172 <xs:enumeration value="PIC" id="Position_Independent_Code"/>
173 </xs:restriction>
174 </xs:simpleType>
175 <xs:simpleType name="ExternType">
176 <xs:restriction base="xs:normalizedString">
177 <xs:minLength value="1"/>
178 <!--<xs:pattern value="((\w)+(\W)*(\s)*)+"/>-->
179 </xs:restriction>
180 </xs:simpleType>
181 <xs:simpleType name="ExternUsage">
182 <xs:restriction base="UsageTypes">
183 <xs:enumeration value="ALWAYS_CONSUMED"/>
184 <xs:enumeration value="ALWAYS_PRODUCED"/>
185 </xs:restriction>
186 </xs:simpleType>
187 <xs:simpleType name="FileNameUsage">
188 <xs:restriction base="UsageTypes">
189 <xs:enumeration value="ALWAYS_CONSUMED"/>
190 <xs:enumeration value="SOMETIMES_CONSUMED"/>
191 <xs:enumeration value="ALWAYS_PRODUCED"/>
192 <xs:enumeration value="SOMETIMES_PRODUCED"/>
193 <xs:enumeration value="PRIVATE"/>
194 </xs:restriction>
195 </xs:simpleType>
196 <xs:simpleType name="FeatureFlagExpressionType">
197 <xs:restriction base="xs:normalizedString">
198 <xs:minLength value="1"/>
199 </xs:restriction>
200 </xs:simpleType>
201 <xs:simpleType name="FrameworkComponentListType">
202 <xs:list itemType="FrameworkComponentTypes"/>
203 </xs:simpleType>
204 <xs:simpleType name="FrameworkComponentTypes">
205 <xs:restriction base="UCNameType">
206 <xs:enumeration value="APRIORI"/>
207 <xs:enumeration value="SEC"/>
208 <xs:enumeration value="LIBRARY"/>
209 <xs:enumeration value="FV_IMAGE_FILE"/>
210 <xs:enumeration value="BS_DRIVER"/>
211 <xs:enumeration value="RT_DRIVER"/>
212 <xs:enumeration value="SAL_RT_DRIVER"/>
213 <xs:enumeration value="PE32_PEIM"/>
214 <xs:enumeration value="PIC_PEIM"/>
215 <xs:enumeration value="COMBINED_PEIM_DRIVER"/>
216 <xs:enumeration value="PEI_CORE"/>
217 <xs:enumeration value="DXE_CORE"/>
218 <xs:enumeration value="BS_DRIVER_EFI"/>
219 <xs:enumeration value="SHELLAPP"/>
220 <xs:enumeration value="BINARY"/>
221 <xs:enumeration value="LOGO"/>
222 <xs:enumeration value="USER_DEFINED"/>
223 </xs:restriction>
224 </xs:simpleType>
225 <xs:simpleType name="FrameworkModuleTypes">
226 <xs:restriction base="ModuleTypeDef">
227 <xs:enumeration value="BASE"/>
228 <xs:enumeration value="SEC"/>
229 <xs:enumeration value="PEI_CORE"/>
230 <xs:enumeration value="PEIM"/>
231 <xs:enumeration value="DXE_CORE"/>
232 <xs:enumeration value="DXE_DRIVER"/>
233 <xs:enumeration value="DXE_RUNTIME_DRIVER"/>
234 <xs:enumeration value="DXE_SAL_DRIVER"/>
235 <xs:enumeration value="DXE_SMM_DRIVER"/>
236 <xs:enumeration value="UEFI_DRIVER"/>
237 <xs:enumeration value="UEFI_APPLICATION"/>
238 <xs:enumeration value="USER_DEFINED"/>
239 </xs:restriction>
240 </xs:simpleType>
241 <xs:simpleType name="FvRegionTypes">
242 <xs:restriction base="UCNameType">
243 <xs:enumeration value="FV_MAIN"/>
244 <xs:enumeration value="FV_MAIN_COMPACT"/>
245 <xs:enumeration value="NV_STORAGE"/>
246 <xs:enumeration value="FV_RECOVERY"/>
247 <xs:enumeration value="FV_RECOVERY_FLOPPY"/>
248 <xs:enumeration value="FV_FILE"/>
249 <xs:enumeration value="CAPSULE_CARGO"/>
250 <xs:enumeration value="NULL"/>
251 <xs:enumeration value="USER_DEFINED"/>
252 </xs:restriction>
253 </xs:simpleType>
254 <xs:simpleType name="PrimaryGuidListType">
255 <xs:list itemType="GuidTypes"/>
256 </xs:simpleType>
257 <xs:simpleType name="GuidListType">
258 <xs:restriction base="PrimaryGuidListType">
259 <xs:minLength value="1"/>
260 </xs:restriction>
261 </xs:simpleType>
262 <xs:simpleType name="GuidTypes">
263 <xs:restriction base="UCNameType">
264 <xs:enumeration value="DATA_HUB_RECORD"/>
265 <xs:enumeration value="EFI_EVENT"/>
266 <xs:enumeration value="EFI_SYSTEM_CONFIGURATION_TABLE"/>
267 <xs:enumeration value="EFI_VARIABLE"/>
268 <xs:enumeration value="GUID"/>
269 <xs:enumeration value="HII_PACKAGE_LIST"/>
270 <xs:enumeration value="HOB"/>
271 <xs:enumeration value="TOKEN_SPACE_GUID"/>
272 </xs:restriction>
273 </xs:simpleType>
274 <xs:simpleType name="GuidUsage">
275 <xs:restriction base="UsageTypes">
276 <xs:enumeration value="ALWAYS_CONSUMED"/>
277 <xs:enumeration value="SOMETIMES_CONSUMED"/>
278 <xs:enumeration value="ALWAYS_PRODUCED"/>
279 <xs:enumeration value="SOMETIMES_PRODUCED"/>
280 <xs:enumeration value="PRIVATE"/>
281 </xs:restriction>
282 </xs:simpleType>
283 <xs:simpleType name="HexByteArrayListType">
284 <xs:restriction base="xs:normalizedString">
285 <xs:minLength value="4"/>
286 <xs:pattern value="\s*((( )?0x[a-fA-F0-9]{2})(,)?)+( )?"/>
287 </xs:restriction>
288 </xs:simpleType>
289 <xs:simpleType name="HexByteArrayType">
290 <xs:restriction base="xs:normalizedString">
291 <xs:minLength value="4"/>
292 <xs:pattern value="((\s)*0x([a-fA-F0-9]){2}(,)?(\s)*)+"/>
293 </xs:restriction>
294 </xs:simpleType>
295 <xs:simpleType name="HexWordArrayType">
296 <xs:restriction base="xs:normalizedString">
297 <xs:minLength value="6"/>
298 <xs:pattern value="((\s)*0x([a-fA-F0-9]){4}(,)?(\s)*)+"/>
299 </xs:restriction>
300 </xs:simpleType>
301 <xs:simpleType name="HiiPackageUsage">
302 <xs:restriction base="UsageTypes">
303 <xs:enumeration value="ALWAYS_PRODUCED"/>
304 <xs:enumeration value="SOMETIMES_PRODUCED"/>
305 <xs:enumeration value="PRIVATE"/>
306 </xs:restriction>
307 </xs:simpleType>
308 <xs:simpleType name="HobTypes">
309 <xs:restriction base="UCNameType">
310 <xs:enumeration value="PHIT"/>
311 <xs:enumeration value="MEMORY_ALLOCATION"/>
312 <xs:enumeration value="RESOURCE_DESCRIPTOR"/>
313 <xs:enumeration value="GUID_EXTENSION"/>
314 <xs:enumeration value="FIRMWARE_VOLUME"/>
315 <xs:enumeration value="CPU"/>
316 <xs:enumeration value="POOL"/>
317 <xs:enumeration value="CAPSULE_VOLUME"/>
318 </xs:restriction>
319 </xs:simpleType>
320 <xs:simpleType name="HobUsage">
321 <xs:restriction base="UsageTypes">
322 <xs:enumeration value="ALWAYS_CONSUMED"/>
323 <xs:enumeration value="SOMETIMES_CONSUMED"/>
324 <xs:enumeration value="ALWAYS_PRODUCED"/>
325 <xs:enumeration value="SOMETIMES_PRODUCED"/>
326 <xs:enumeration value="PRIVATE"/>
327 </xs:restriction>
328 </xs:simpleType>
329 <xs:simpleType name="IntermediateOutputType">
330 <xs:restriction base="UCNameType">
331 <xs:enumeration value="MODULE"/>
332 <xs:enumeration value="UNIFIED"/>
333 </xs:restriction>
334 </xs:simpleType>
335 <xs:simpleType name="LibraryUsage">
336 <xs:restriction base="UsageTypes">
337 <xs:enumeration value="ALWAYS_CONSUMED"/>
338 <xs:enumeration value="SOMETIMES_CONSUMED"/>
339 <xs:enumeration value="ALWAYS_PRODUCED"/>
340 <xs:enumeration value="SOMETIMES_PRODUCED"/>
341 <xs:enumeration value="PRIVATE"/>
342 </xs:restriction>
343 </xs:simpleType>
344 <xs:simpleType name="ModuleTypeDef">
345 <xs:restriction base="UCNameType">
346 <xs:enumeration value="BASE"/>
347 <xs:enumeration value="SEC"/>
348 <xs:enumeration value="PEI_CORE"/>
349 <xs:enumeration value="PEIM"/>
350 <xs:enumeration value="DXE_CORE"/>
351 <xs:enumeration value="DXE_DRIVER"/>
352 <xs:enumeration value="DXE_RUNTIME_DRIVER"/>
353 <xs:enumeration value="DXE_SAL_DRIVER"/>
354 <xs:enumeration value="DXE_SMM_DRIVER"/>
355 <xs:enumeration value="TOOL"/>
356 <xs:enumeration value="UEFI_DRIVER"/>
357 <xs:enumeration value="UEFI_APPLICATION"/>
358 <xs:enumeration value="USER_DEFINED"/>
359 </xs:restriction>
360 </xs:simpleType>
361 <xs:simpleType name="Md5sumType">
362 <xs:restriction base="xs:normalizedString">
363 <xs:pattern value="\s*[a-fA-F0-9]{32}\s*"/>
364 </xs:restriction>
365 </xs:simpleType>
366 <xs:simpleType name="PrimaryModuleListType">
367 <xs:list itemType="FrameworkModuleTypes"/>
368 </xs:simpleType>
369 <xs:simpleType name="ModuleListType">
370 <xs:restriction base="PrimaryModuleListType">
371 <xs:minLength value="1"/>
372 </xs:restriction>
373 </xs:simpleType>
374 <xs:simpleType name="PackageType">
375 <xs:restriction base="UCNameType">
376 <xs:enumeration value="SOURCE"/>
377 <xs:enumeration value="BINARY"/>
378 <xs:enumeration value="MIXED"/>
379 </xs:restriction>
380 </xs:simpleType>
381 <xs:simpleType name="PackageUsage">
382 <xs:restriction base="UsageTypes">
383 <xs:enumeration value="ALWAYS_CONSUMED"/>
384 <xs:enumeration value="SOMETIMES_CONSUMED"/>
385 </xs:restriction>
386 </xs:simpleType>
387 <xs:simpleType name="PcdListType">
388 <xs:restriction base="PrimaryPcdListType">
389 <xs:minLength value="1"/>
390 </xs:restriction>
391 </xs:simpleType>
392 <xs:simpleType name="PrimaryPcdListType">
393 <xs:list itemType="PcdItemTypes"/>
394 </xs:simpleType>
395 <xs:simpleType name="PcdTypes">
396 <xs:restriction base="UCNameType">
397 <xs:enumeration value="FIXED_AT_BUILD"/>
398 <xs:enumeration value="FEATURE_FLAG"/>
399 <xs:enumeration value="PATCHABLE_IN_MODULE"/>
400 <xs:enumeration value="DYNAMIC"/>
401 <xs:enumeration value="DYNAMIC_EX"/>
402 </xs:restriction>
403 </xs:simpleType>
404 <xs:simpleType name="PcdDriverTypes">
405 <xs:restriction base="UCNameType">
406 <xs:enumeration value="PEI_PCD_DRIVER"/>
407 <xs:enumeration value="DXE_PCD_DRIVER"/>
408 </xs:restriction>
409 </xs:simpleType>
410 <xs:simpleType name="PcdDataTypes">
411 <xs:restriction base="xs:normalizedString">
412 <xs:enumeration value="UINT8"/>
413 <xs:enumeration value="UINT16"/>
414 <xs:enumeration value="UINT32"/>
415 <xs:enumeration value="UINT64"/>
416 <xs:enumeration value="VOID*"/>
417 <xs:enumeration value="BOOLEAN"/>
418 </xs:restriction>
419 </xs:simpleType>
420 <xs:simpleType name="PcdFeatureFlagUsage">
421 <xs:restriction base="UsageTypes">
422 <xs:enumeration value="ALWAYS_PRODUCED"/>
423 </xs:restriction>
424 </xs:simpleType>
425 <xs:simpleType name="PcdItemTypes">
426 <xs:restriction base="UCNameType">
427 <xs:enumeration value="FEATURE_FLAG"/>
428 <xs:enumeration value="FIXED_AT_BUILD"/>
429 <xs:enumeration value="PATCHABLE_IN_MODULE"/>
430 <xs:enumeration value="DYNAMIC"/>
431 <xs:enumeration value="DYNAMIC_EX"/>
432 </xs:restriction>
433 </xs:simpleType>
434 <xs:simpleType name="PcdUsage">
435 <xs:restriction base="UsageTypes">
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:restriction>
441 </xs:simpleType>
442 <xs:simpleType name="PpiNotifyUsage">
443 <xs:restriction base="UsageTypes">
444 <xs:enumeration value="SOMETIMES_CONSUMED"/>
445 </xs:restriction>
446 </xs:simpleType>
447 <xs:simpleType name="PpiUsage">
448 <xs:restriction base="UsageTypes">
449 <xs:enumeration value="ALWAYS_CONSUMED"/>
450 <xs:enumeration value="SOMETIMES_CONSUMED"/>
451 <xs:enumeration value="ALWAYS_PRODUCED"/>
452 <xs:enumeration value="SOMETIMES_PRODUCED"/>
453 <xs:enumeration value="PRIVATE"/>
454 </xs:restriction>
455 </xs:simpleType>
456 <xs:simpleType name="ProtocolNotifyUsage">
457 <xs:restriction base="UsageTypes">
458 <xs:enumeration value="SOMETIMES_CONSUMED"/>
459 </xs:restriction>
460 </xs:simpleType>
461 <xs:simpleType name="ProtocolUsage">
462 <xs:restriction base="UsageTypes">
463 <xs:enumeration value="ALWAYS_CONSUMED"/>
464 <xs:enumeration value="SOMETIMES_CONSUMED"/>
465 <xs:enumeration value="ALWAYS_PRODUCED"/>
466 <xs:enumeration value="SOMETIMES_PRODUCED"/>
467 <xs:enumeration value="TO_START"/>
468 <xs:enumeration value="BY_START"/>
469 <xs:enumeration value="PRIVATE"/>
470 </xs:restriction>
471 </xs:simpleType>
472 <xs:simpleType name="SkuListType">
473 <xs:restriction base="xs:normalizedString">
474 <xs:minLength value="1"/>
475 <xs:pattern value="\s*(\d)+((,)?(\s)*(\d)+)*"/>
476 </xs:restriction>
477 </xs:simpleType>
478 <xs:simpleType name="SupportedArchitectures">
479 <xs:restriction base="UCNameType">
480 <xs:enumeration value="EBC"/>
481 <xs:enumeration value="IA32"/>
482 <xs:enumeration value="X64"/>
483 <xs:enumeration value="IPF"/>
484 <xs:enumeration value="ARM"/>
485 <xs:enumeration value="PPC"/>
486 </xs:restriction>
487 </xs:simpleType>
488 <xs:simpleType name="SystemTableUsage">
489 <xs:restriction base="UsageTypes">
490 <xs:enumeration value="ALWAYS_CONSUMED"/>
491 <xs:enumeration value="SOMETIMES_CONSUMED"/>
492 <xs:enumeration value="ALWAYS_PRODUCED"/>
493 <xs:enumeration value="SOMETIMES_PRODUCED"/>
494 <xs:enumeration value="PRIVATE"/>
495 </xs:restriction>
496 </xs:simpleType>
497 <xs:simpleType name="TokenDataType">
498 <xs:union memberTypes="HexDoubleWordDataType xs:nonNegativeInteger"/>
499 </xs:simpleType>
500 <xs:simpleType name="ToolChains">
501 <xs:restriction base="UCNameType">
502 <xs:minLength value="2"/>
503 <xs:enumeration value="MSFT"/>
504 <xs:enumeration value="INTEL"/>
505 <xs:enumeration value="GCC"/>
506 <xs:enumeration value="CYGWIN"/>
507 </xs:restriction>
508 </xs:simpleType>
509 <xs:simpleType name="UiNameType">
510 <xs:restriction base="xs:string">
511 <xs:minLength value="1"/>
512 <xs:pattern value="[^ ].*"/>
513 </xs:restriction>
514 </xs:simpleType>
515 <xs:simpleType name="UnicodeString">
516 <xs:restriction base="xs:normalizedString">
517 <xs:minLength value="3"/>
518 <xs:pattern value="(\s)*L(\:)?&quot;[^&quot;]*&quot;(\s)*"/>
519 </xs:restriction>
520 </xs:simpleType>
521 <xs:simpleType name="UsageListType">
522 <xs:restriction base="PrimaryUsageList">
523 <xs:minLength value="1"/>
524 </xs:restriction>
525 </xs:simpleType>
526 <xs:simpleType name="PrimaryUsageList">
527 <xs:list itemType="UsageTypes"/>
528 </xs:simpleType>
529 <!-- UsageTypes describes all of the Usage Attributes that are defined in the Module Surface Area Specification -->
530 <xs:simpleType name="UsageTypes">
531 <xs:restriction base="UCNameType">
532 <xs:enumeration value="ALWAYS_CONSUMED"/>
533 <xs:enumeration value="SOMETIMES_CONSUMED"/>
534 <xs:enumeration value="ALWAYS_PRODUCED"/>
535 <xs:enumeration value="SOMETIMES_PRODUCED"/>
536 <xs:enumeration value="TO_START"/>
537 <xs:enumeration value="BY_START"/>
538 <xs:enumeration value="PRIVATE"/>
539 </xs:restriction>
540 </xs:simpleType>
541 <xs:simpleType name="VariableOffsetValues">
542 <xs:restriction base="xs:string">
543 <xs:minLength value="1"/>
544 <xs:pattern value="\s*\d+(:)?\d*\s*"/>
545 </xs:restriction>
546 </xs:simpleType>
547 <xs:simpleType name="VariableUsage">
548 <xs:restriction base="UsageTypes">
549 <!-- Module requires the variable entry to be set -->
550 <xs:enumeration value="ALWAYS_CONSUMED"/>
551 <!-- Module will use the variable entry if it's set -->
552 <xs:enumeration value="SOMETIMES_CONSUMED"/>
553 <!-- Module Always will write the variable -->
554 <xs:enumeration value="ALWAYS_PRODUCED"/>
555 <!-- Module sometimes writes the variable -->
556 <xs:enumeration value="SOMETIMES_PRODUCED"/>
557 <!-- Variable is produced and consumed only by this module -->
558 <xs:enumeration value="PRIVATE"/>
559 </xs:restriction>
560 </xs:simpleType>
561 <!-- Complex Data Types -->
562 <xs:complexType name="DbPathAndFilename">
563 <xs:simpleContent>
564 <xs:extension base="PathAndFilename">
565 <xs:attribute name="FarGuid" type="GuidType" use="optional"/>
566 <xs:attribute name="Md5sum" type="Md5sumType"/>
567 </xs:extension>
568 </xs:simpleContent>
569 </xs:complexType>
570 <xs:complexType name="ArgsType">
571 <xs:sequence minOccurs="0" maxOccurs="unbounded">
572 <xs:element name="Arg" type="xs:string"/>
573 </xs:sequence>
574 </xs:complexType>
575 <xs:complexType name="ToolType">
576 <xs:sequence>
577 <xs:element name="ToolName" type="xs:string"/>
578 <xs:element name="ToolArgs" type="xs:string"/>
579 </xs:sequence>
580 </xs:complexType>
581 </xs:schema>