summaryrefslogtreecommitdiff
path: root/Tools/XMLSchema/FrameworkDataAttributes.xsd
blob: 8d076eeace886c63037221d79911a3d502280575 (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
<?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: FrameworkDataAttributes.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 Attribute. Only attributeGroups are specified in this file. </xs:documentation>
  </xs:annotation>
  <xs:include schemaLocation="NamingConvention.xsd"/>
  <xs:include schemaLocation="FrameworkDataTypes.xsd"/>
  <xs:include schemaLocation="FrameworkPlatformDataTypes.xsd"/>
  <!-- Fix Name data type from xs:string -->
  <xs:attributeGroup name="BlockAttributes">
    <xs:attribute name="Name" type="BlockNameType" use="required"/>
    <xs:attribute name="Size" type="HexAddressType" use="required"/>
    <xs:attribute name="Flags" type="HexAddressType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="BootModeAttributes">
    <xs:attribute name="BootModeName" type="BootModeNames" use="required"/>
    <xs:attribute name="Usage" type="BootModeUsage" use="required"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="DataHubAttributes">
    <xs:attribute name="Usage" type="DataHubUsage" use="required"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="EventAttributes">
    <xs:attribute name="Usage" type="EventUsage" use="required"/>
    <xs:attribute name="EventGuidCName" type="C_NameType" use="optional"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="ExternAttributes">
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="FfsAttributes">
    <xs:attribute name="FfsFormatKeyword" type="KeywordType" use="required"/>
    <xs:attribute name="FfsFileType" type="EfiFfsFileTypes" use="optional"/>
    <xs:attribute name="FfsAttribTailPresent" type="xs:boolean" use="optional"/>
    <xs:attribute name="FfsAttribRecovery" type="xs:boolean" use="optional" default="false"/>
    <xs:attribute name="FfsAttribDataAlignment" type="FfsDataAlignmentType" use="optional"/>
    <xs:attribute name="FfsAttribChecksumRequired" type="xs:boolean" use="optional" default="true"/>
    <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="FilenameAttributes">
    <xs:attribute name="TagName" type="ToolsNameConvention" use="optional"/>
    <xs:attribute name="ToolCode" type="ToolsNameConvention" use="optional"/>
    <xs:attribute name="ToolChainFamily" type="ToolsNameConvention" use="optional"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="FlashDeviceImageAttributes">
    <xs:attribute name="Name" type="xs:string" use="required"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="FlashDeviceImageFileAttributes">
    <xs:attribute name="Name" type="xs:string" use="required"/>
    <xs:attribute name="Region" type="xs:string" use="required"/>
    <xs:attribute name="SubRegion" type="xs:string" use="optional"/>
    <xs:attribute name="Optional" type="xs:boolean" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="FlashDeviceInfoAttributes">
    <xs:attribute name="Name" type="xs:string" use="required"/>
    <xs:attribute name="Size" type="HexAddressType" use="required"/>
    <xs:attribute name="BaseAddress" type="HexAddressType" use="required"/>
    <xs:attribute name="ErasePolarity" type="Polarity" use="required"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="FvRegionNameAttributes">
    <xs:attribute name="FvBaseAddressPcdCName" type="C_NameType" use="required"/>
    <xs:attribute name="FvRegionSizePcdCName" type="C_NameType" use="required"/>
    <xs:attribute name="FvRegionAlignmentPcdCName" type="C_NameType" use="optional"/>
    <xs:attribute name="FvPcdTokenSpaceGuid" type="GuidType" use="optional"/>
    <xs:attribute name="Alignment" type="xs:positiveInteger" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="GuidAttributes">
    <xs:attribute name="Usage" type="GuidUsage" use="required"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="GuidDeclarationAttributes">
    <xs:attribute name="Name" type="UiNameType" use="required"/>
    <xs:attribute name="GuidTypeList" type="GuidListType" use="optional"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="HiiPackageAttributes">
    <xs:attribute name="Usage" type="HiiPackageUsage" use="required"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="HobAttributes">
    <xs:attribute name="Usage" type="HobUsage" use="required"/>
    <xs:attribute name="HobGuidCName" type="C_NameType" use="optional"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="IncludeHeaderAttributes">
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
    <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="IndustryStdHeaderAttributes">
    <xs:attribute name="Name" type="KeywordType" use="required"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="LibraryAttributes">
    <!-- LibraryAttributes is used for Libraries / Library elements in FPD files -->
    <xs:attribute name="ModuleGuid" type="GuidType" use="required"/>
    <xs:attribute name="ModuleVersion" type="VersionDataType" use="optional"/>
    <xs:attribute name="PackageGuid" type="GuidType" use="required"/>
    <xs:attribute name="PackageVersion" type="VersionDataType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="LibraryClassAttributes">
    <xs:attribute name="Usage" type="LibraryUsage" use="required"/>
    <xs:attribute name="RecommendedInstanceVersion" type="VersionDataType" use="optional"/>
    <xs:attribute name="RecommendedInstanceGuid" type="GuidType" use="optional"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
    <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="LibraryClassDeclarationAttributes">
    <xs:attribute name="Name" type="KeywordType" use="required"/>
    <xs:attribute name="RecommendedInstanceVersion" type="VersionDataType" use="optional"/>
    <xs:attribute name="RecommendedInstanceGuid" type="GuidType" use="optional"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="MsaGuidAttributes">
    <xs:attribute name="Usage" type="GuidUsage" use="optional"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="ModuleNameAttributes">
    <xs:attribute name="ModuleGuid" type="GuidType" use="required"/>
    <xs:attribute name="ModuleName" type="UiNameType" use="optional"/>
    <xs:attribute name="ModuleVersion" type="VersionDataType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="MsaAttributes">
    <xs:attribute name="PackageGuid" type="GuidType" use="required"/>
    <xs:attribute name="ModuleGuid" type="GuidType" use="required"/>
    <xs:attribute name="ModuleVersion" type="VersionDataType" use="optional"/>
    <xs:attribute name="PackageVersion" type="VersionDataType" use="optional"/>
    <xs:attribute name="ForceDebug" type="xs:boolean" default="false" use="optional"/>
    <xs:attribute name="BindingOrder" type="xs:int" use="optional"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="OptionAttributes">
    <xs:attribute name="BuildTargets" type="BuildTargetList" use="optional"/>
    <xs:attribute name="ToolChainFamily" type="ToolsNameConvention" use="optional"/>
    <xs:attribute name="TagName" type="ToolsNameConvention" use="optional"/>
    <xs:attribute name="ToolCode" type="ToolsNameConvention" use="optional"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="PackageHeaderAttributes">
    <xs:attribute name="ModuleType" type="ModuleTypeDef" use="required"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="PackageAttributes">
    <!-- Used with the MSA File, PackageDependencies.Package -->
    <xs:attribute name="PackageGuid" type="GuidType" use="required"/>
    <xs:attribute name="PackageVersion" type="VersionDataType" use="optional"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="PackageNameAttributes">
    <!--Used with the FrameworkDatabase PackageList.Packagename  -->
    <xs:attribute name="PackageGuid" type="GuidType" use="required"/>
    <xs:attribute name="PackageVersion" type="VersionDataType" use="optional"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="DynamicBuildPcdAttributes">
    <xs:annotation>
      <xs:documentation xml:lang="en">These attributes are for the Pcds listed in PcdData, PcdEntry and/or PcdBuildData entries.</xs:documentation>
    </xs:annotation>
    <xs:attribute name="ItemType" type="PcdItemTypes" use="required"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="PcdBuildDefinitionAttributes">
    <xs:attribute name="ItemType" type="PcdItemTypes" use="required"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="PcdCodedAttributes">
    <!-- We need to modify ALL the MSA files that have PcdCoded sections to 
      set the PcdUsage.  Once we modify all the MSA files and we modify the 
      wizard and the build tools, we need to make this required. -->
    <xs:attribute name="Usage" type="PcdUsage" use="optional"/>
    <xs:attribute name="PcdItemType" type="PcdItemTypes" use="required"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="PcdDeclarationAttributes">
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="PlatformAttributes">
    <xs:attribute name="PlatformGuid" type="GuidType" use="required"/>
    <xs:attribute name="PlatformVersion" type="VersionDataType" use="required"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="PpiDeclarationAttributes">
    <xs:attribute name="Name" type="UiNameType" use="required"/>
    <xs:attribute name="GuidTypeList" type="GuidListType" use="optional"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="PpiAttributes">
    <xs:attribute name="Usage" type="PpiUsage" use="required"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="PpiNotifyAttributes">
    <xs:attribute name="Usage" type="PpiNotifyUsage" use="required"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="ProcessStepAttributes">
    <xs:annotation>
      <xs:documentation xml:lang="en">Attributes are either compressable and/or sequence order binding</xs:documentation>
    </xs:annotation>
    <xs:attribute name="BindingOrder" type="xs:int" use="optional"/>
    <xs:attribute name="SectionType" type="EfiSectionType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="ProtocolAttributes">
    <xs:attribute name="Usage" type="ProtocolUsage" use="required"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="ProtocolDeclarationAttributes">
    <xs:attribute name="Name" type="UiNameType" use="required"/>
    <xs:attribute name="GuidTypeList" type="GuidListType" use="optional"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="ProtocolNotifyAttributes">
    <xs:attribute name="Usage" type="ProtocolNotifyUsage" use="required"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="RawDataAttributes">
    <xs:attribute name="Name" type="xs:string" use="required"/>
    <xs:attribute name="Region" type="xs:string" use="required"/>
    <xs:attribute name="SubRegion" type="xs:string" use="required"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="RegionAttributes">
    <xs:attribute name="Name" type="xs:string" use="required"/>
    <xs:attribute name="Size" type="HexAddressType" use="required"/>
    <xs:attribute name="Flags" type="HexAddressType" use="optional"/>
    <xs:attribute name="Attributes" type="xs:string" use="required"/>
    <xs:attribute name="AreaType" type="EfiFvAreaType" use="required"/>
    <xs:attribute name="Alignment" type="HexAddressType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="SectionsAttributes">
    <xs:annotation>
      <xs:documentation xml:lang="en">Attributes for Sections, EncapsulationTag and EncapsulationType</xs:documentation>
    </xs:annotation>
    <xs:attribute name="BindingOrder" type="xs:nonNegativeInteger" use="optional"/>
    <xs:attribute name="Compressible" type="xs:boolean" default="true" use="optional"/>
    <xs:attribute name="SectionType" type="EfiSectionType" use="optional"/>
    <xs:attribute name="EncapsulationType" type="xs:normalizedString" use="optional"/>
    <xs:attribute name="ToolName" type="xs:string" use="optional"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="SubRegionAttributes">
    <xs:attribute name="CreateHob" type="xs:boolean" use="required"/>
    <xs:attribute name="Name" type="xs:string" use="required"/>
    <xs:attribute name="Size" type="HexAddressType" use="required"/>
    <xs:attribute name="Attributes" type="xs:string" use="required"/>
    <xs:attribute name="AreaType" type="EfiFvAreaType" use="required"/>
    <xs:attribute name="NameGuid" type="xs:string" use="required"/>
    <xs:attribute name="AreaTypeGuid" type="xs:string" use="optional"/>
    <xs:attribute name="FileSystemGuid" type="xs:string" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="SystemTableAttributes">
    <xs:attribute name="Usage" type="SystemTableUsage" use="required"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="UrlAttribute">
    <xs:attribute name="Url" type="xs:anyURI"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="VariableAttributes">
    <xs:attribute name="Usage" type="VariableUsage" use="required"/>
    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
  </xs:attributeGroup>
</xs:schema>