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