blob: 1cab356b2f498aaacff2ad82badba8e5f2dd9569 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
|
<?xml version="1.0" encoding="UTF-8"?>
<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">
<!--
Filename: FrameworkPlatformDataElements.xsd
Copyright (c) 2006, Intel Corp.
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-->
<xs:annotation>
<xs:documentation xml:lang="en"> This schema defines EFI and Framework Platform Data Elements that are specific to platform creation.</xs:documentation>
</xs:annotation>
<xs:include schemaLocation="NamingConvention.xsd"/>
<xs:include schemaLocation="FrameworkDataAttributes.xsd"/>
<xs:include schemaLocation="FrameworkDataTypes.xsd"/>
<xs:include schemaLocation="FrameworkDataElements.xsd"/>
<xs:include schemaLocation="FrameworkPlatformDataTypes.xsd"/>
<xs:element name="Capsule">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="1" name="CapsuleId" type="xs:string"/>
<xs:element minOccurs="0" maxOccurs="1" ref="CapsuleOptions"/>
<xs:element minOccurs="0" maxOccurs="1" ref="CapsuleAttributes"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="CapsuleAttributes">
<xs:annotation>
<xs:documentation xml:lang="en">This element is used specify different name value pairs.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="NameValue"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="Enable"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="Disable"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="CapsuleOptions">
<xs:annotation>
<xs:documentation xml:lang="en">This element is used specify different name value pairs.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="NameValue"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="Enable"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="Disable"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Capsules">
<xs:annotation>
<xs:documentation xml:lang="en">Permit multiple Capsule Sections</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element ref="Capsule"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Disable" type="xs:string"/>
<xs:element name="Enable" type="xs:string"/>
<xs:element name="Flash">
<xs:complexType>
<xs:annotation>
<xs:documentation xml:lang="en">We allow specifying the Flash layout in this directory, or we allow specifying a flashmap filename</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice>
<xs:element name="FlashDefinition" type="FlashData"/>
<xs:element name="FlashDefinitionFile" type="FileNameConvention"/>
</xs:choice>
<xs:element minOccurs="0" maxOccurs="1" ref="FvImages"/>
<xs:element minOccurs="0" maxOccurs="1" ref="Capsules"/>
</xs:sequence>
<xs:attribute name="MicrocodeFile" type="FileNameConvention" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="FlashDeviceImage">
<xs:annotation>
<xs:documentation xml:lang="en">Define contents of the regions in flash. The files and data are placed in the output image in the order they are encountered in this definition. Multiple FlashDeviceImage sections may be defined. Which one the tool should use is specified by Name on the command line.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:all>
<xs:element minOccurs="0" maxOccurs="1" name="RawData">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="1">
<xs:element name="Data" type="xs:string"/>
</xs:sequence>
<xs:attributeGroup ref="RawDataAttributes"/>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="File">
<xs:complexType>
<xs:attributeGroup ref="FlashDeviceImageFileAttributes"/>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attributeGroup ref="FlashDeviceImageAttributes"/>
</xs:complexType>
</xs:element>
<xs:element name="FlashDeviceInfo">
<xs:annotation>
<xs:documentation xml:lang="en">This is the Flash Devcie definition List</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Blocks">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="255" name="Block">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="BlockNameType">
<xs:attributeGroup ref="BlockAttributes"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Regions">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="unbounded" name="Region">
<xs:complexType>
<xs:all>
<xs:element name="SubRegions">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="SubRegion">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attributeGroup ref="SubRegionAttributes"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attributeGroup ref="RegionAttributes"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attributeGroup ref="FlashDeviceInfoAttributes"/>
</xs:complexType>
</xs:element>
<xs:element name="FlashDeviceOverrideImage">
<xs:annotation>
<xs:documentation xml:lang="en">Define OVERRIDE contents of the regions in flash. Only what is different here from what may defined in other areas (or files) is needed </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="1" name="Name" type="NameConvention"/>
<xs:element minOccurs="0" maxOccurs="unbounded" name="File" type="FvImageOverrideFileType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FlashDeviceOverrideInfo">
<xs:annotation>
<xs:documentation xml:lang="en">This is the Flash Devcie Override Definition list. Only what is different from the previously defined stuff needs to be included.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="1" name="Name" type="UCNameType"/>
<xs:element default="512KB" minOccurs="0" maxOccurs="1" name="FlashSize" type="FlashSize"/>
<xs:element minOccurs="0" maxOccurs="1" name="BaseAddress" type="HexAddressType"/>
<xs:element minOccurs="0" maxOccurs="1" name="OutputDirectory" type="DirectoryNamingConvention"/>
<xs:element minOccurs="0" maxOccurs="1" name="MicrocodeFile" type="FileNameConvention"/>
<xs:element minOccurs="0" maxOccurs="255" name="Block" type="BlockNameType"/>
<xs:element minOccurs="0" maxOccurs="unbounded" name="Region" type="RegionDataType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FvImage">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="unbounded" ref="FvImageNames"/>
<xs:element minOccurs="0" maxOccurs="1" ref="FvImageOptions"/>
</xs:sequence>
<xs:attribute name="Type" type="FvImageTypes" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="FvImageName">
<xs:complexType>
<xs:sequence>
<xs:element ref="FvImageOptions"/>
</xs:sequence>
<xs:attribute name="Name" type="FvRegionTypes" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="FvImageNames" type="xs:NCName"/>
<xs:element name="FvImageOptions">
<xs:annotation>
<xs:documentation xml:lang="en">This element is used specify different name value pairs.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="NameValue"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="Enable"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="Disable"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FvImages">
<xs:annotation>
<xs:documentation xml:lang="en">This section allows the user to define specific information regarding the FvImage</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="NameValue"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="FvImage"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="FvImageName"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ModuleSA">
<xs:annotation>
<xs:documentation xml:lang="en">This element is used to specify information in the Platform Description File.</xs:documentation>
<xs:documentation xml:lang="en">This is a mixed element, allowing the user to specify the name of the MSA file, as well as to optionally specify additional override information.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence minOccurs="1">
<!-- DO NOT USE! REMOVE SourceFiles in FINAL -->
<xs:element minOccurs="0" maxOccurs="1" ref="SourceFiles"/>
<!-- DO NOT USE! REMOVE Includes in FINAL -->
<xs:element minOccurs="0" maxOccurs="1" ref="Includes"/>
<!-- Libraries stays in FINAL -->
<xs:element minOccurs="0" maxOccurs="1" ref="Libraries"/>
<!-- DO NOT USE! REMOVE Protocols in FINAL -->
<xs:element minOccurs="0" maxOccurs="1" ref="Protocols"/>
<!-- DO NOT USE! REMOVE Events in FINAL -->
<xs:element minOccurs="0" maxOccurs="1" ref="Events"/>
<!-- DO NOT USE! REMOVE Hobs in FINAL -->
<xs:element minOccurs="0" maxOccurs="1" ref="Hobs"/>
<!-- DO NOT USE! REMOVE PPIs in FINAL -->
<xs:element minOccurs="0" maxOccurs="1" ref="PPIs"/>
<!-- DO NOT USE! REMOVE Variables in FINAL -->
<xs:element minOccurs="0" maxOccurs="1" ref="Variables"/>
<!-- DO NOT USE! REMOVE BootModes in FINAL -->
<xs:element minOccurs="0" maxOccurs="1" ref="BootModes"/>
<!-- DO NOT USE! REMOVE SystemTables in FINAL -->
<xs:element minOccurs="0" maxOccurs="1" ref="SystemTables"/>
<!-- DO NOT USE! REMOVE DataHubs in FINAL -->
<xs:element minOccurs="0" maxOccurs="1" ref="DataHubs"/>
<!-- DO NOT USE! REMOVE Formsets in FINAL -->
<xs:element minOccurs="0" maxOccurs="1" ref="Formsets"/>
<!-- DO NOT USE! REMOVE Guids in FINAL -->
<xs:element minOccurs="0" maxOccurs="1" ref="Guids"/>
<!-- EXTERNS stays in FINAL -->
<xs:element minOccurs="0" maxOccurs="1" ref="Externs"/>
<xs:choice>
<!-- DO NOT USE! REMOVE PcdBuildDeclarations in FINAL -->
<xs:element minOccurs="0" maxOccurs="1" ref="PcdBuildDeclarations"/>
<!-- PcdBuildDefinition stays in FINAL -->
<xs:element minOccurs="0" maxOccurs="1" ref="PcdBuildDefinition"/>
</xs:choice>
<!-- BuildOptions stays in FINAL -->
<xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>
</xs:sequence>
<xs:attributeGroup ref="MsaAttributes"/>
</xs:complexType>
</xs:element>
<xs:element name="NameValue">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Name" type="xs:string" use="required"/>
<xs:attribute name="Value" type="xs:string" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="Overrides">
<xs:annotation>
<xs:documentation xml:lang="en">DO NOT USE! - Removing this from Schema</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="1" ref="FlashDeviceOverrideInfo"/>
<xs:element minOccurs="0" maxOccurs="1" ref="FlashDeviceOverrideImage"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="PlatformDescriptions">
<xs:annotation>
<xs:documentation xml:lang="en">DO NOT USE! - Use PlatformList instead</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element ref="Platform"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="PlatformList">
<xs:annotation>
<xs:documentation xml:lang="en">This is used in the Framework Database file</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element ref="Platform"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FrameworkModules">
<xs:annotation>
<xs:documentation xml:lang="en">This is used in a Framework Platform Description (FPD) file</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="1" name="SEC" type="Components"/>
<xs:element minOccurs="0" maxOccurs="1" name="PEI_CORE" type="Components"/>
<xs:element minOccurs="0" maxOccurs="1" name="PEIM" type="Components"/>
<xs:element minOccurs="0" maxOccurs="1" name="DXE_CORE" type="Components"/>
<xs:element minOccurs="0" maxOccurs="1" name="DXE_DRIVERS" type="Components"/>
<xs:element minOccurs="0" maxOccurs="1" name="OTHER_COMPONENTS" type="Components"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TianoImage">
<xs:annotation>
<xs:documentation xml:lang="en">DO NOT USE - Use FrameworkModules Instead.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="1" name="SEC" type="Components"/>
<xs:element minOccurs="0" maxOccurs="1" name="PEI_CORE" type="Components"/>
<xs:element minOccurs="0" maxOccurs="1" name="PEIM" type="Components"/>
<xs:element minOccurs="0" maxOccurs="1" name="DXE_CORE" type="Components"/>
<xs:element minOccurs="0" maxOccurs="1" name="DXE_DRIVERS" type="Components"/>
<xs:element minOccurs="0" maxOccurs="1" name="OTHER_COMPONENTS" type="Components"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="Components">
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element ref="ModuleSA"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="FlashData">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="UserDefinedFvRegion" type="NameConvention"/>
<xs:choice minOccurs="0" maxOccurs="1">
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="1" ref="FlashDeviceInfo"/>
<xs:element minOccurs="1" maxOccurs="1" ref="FlashDeviceImage"/>
</xs:sequence>
</xs:choice>
<xs:element minOccurs="0" maxOccurs="1" ref="Overrides"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="FvImageFileType">
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="1" name="Name" type="FileNameConvention"/>
<xs:element minOccurs="1" maxOccurs="1" name="Region" type="FvRegionTypes"/>
<xs:element minOccurs="1" maxOccurs="unbounded" name="RawData" type="RawDataType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="FvImageOverrideFileType">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="1" name="Name" type="FileNameConvention"/>
<xs:element minOccurs="0" maxOccurs="1" name="Region" type="FvRegionTypes"/>
<xs:element minOccurs="0" maxOccurs="1" name="UserDefinedFvRegion" type="NameConvention"/>
<xs:element minOccurs="0" maxOccurs="unbounded" name="RawData" type="RawDataType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="RawDataType">
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="1" name="Name" type="NameConvention"/>
<xs:element minOccurs="0" maxOccurs="1" name="Region" type="FvRegionTypes"/>
<xs:element minOccurs="0" maxOccurs="1" name="UserDefinedFvRegion" type="NameConvention"/>
<xs:element minOccurs="1" maxOccurs="1" name="SubRegion" type="FvSubRegionTypes"/>
<xs:element minOccurs="1" maxOccurs="1" name="Data" type="HexDataType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="RegionDataType">
<xs:annotation>
<xs:documentation xml:lang="en">Define the regions and their uses for the device</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="1" name="Name" type="UCNameType"/>
<xs:element minOccurs="1" maxOccurs="1" name="Size" type="HexAddressType"/>
<xs:element minOccurs="1" maxOccurs="unbounded" name="Attributes" type="EfiFvAttributeType"/>
<xs:element minOccurs="1" maxOccurs="1" name="AreaType" type="EfiFvAreaType"/>
<xs:element minOccurs="0" maxOccurs="unbounded" name="SubRegion" type="SubRegionType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="SubRegionType">
<xs:annotation>
<xs:documentation xml:lang="en">Define the regions and their uses for the device</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element default="true" minOccurs="1" maxOccurs="1" name="CreateHob" type="xs:boolean"/>
<xs:element minOccurs="1" maxOccurs="1" name="Name" type="UCNameType"/>
<xs:element minOccurs="1" maxOccurs="1" name="Size" type="HexAddressType"/>
<xs:element minOccurs="1" maxOccurs="unbounded" name="Attributes" type="EfiFvAttributeType"/>
<xs:element minOccurs="1" maxOccurs="1" name="AreaType" type="EfiFvAreaType"/>
<xs:element minOccurs="1" maxOccurs="1" name="NameGuid" type="EfiNameGuidType"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
|