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