]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/XMLSchema/FrameworkDataAttributes.xsd
FPD.BuildOptions.Ffs.Attribute:Value=”xs:string” [0..1]
[mirror_edk2.git] / Tools / XMLSchema / FrameworkDataAttributes.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/2006/Edk2.0" targetNamespace="http://www.TianoCore.org/2006/Edk2.0">
3 <!--
4 Filename: FrameworkDataAttributes.xsd
5
6 Copyright (c) 2006, 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 Attribute. Only attributeGroups are specified in this file. </xs:documentation>
17 </xs:annotation>
18 <xs:include schemaLocation="NamingConvention.xsd"/>
19 <xs:include schemaLocation="FrameworkDataTypes.xsd"/>
20 <xs:include schemaLocation="FrameworkPlatformDataTypes.xsd"/>
21 <!-- Fix Name data type from xs:string -->
22 <xs:attributeGroup name="BlockAttributes">
23 <xs:attribute name="Name" type="BlockNameType" use="required"/>
24 <xs:attribute name="Size" type="HexAddressType" use="required"/>
25 <xs:attribute name="Flags" type="HexAddressType" use="optional"/>
26 </xs:attributeGroup>
27 <xs:attributeGroup name="BootModeAttributes">
28 <xs:attribute name="BootModeName" type="BootModeNames" use="required"/>
29 <xs:attribute name="Usage" type="BootModeUsage" use="required"/>
30 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
31 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
32 </xs:attributeGroup>
33 <xs:attributeGroup name="DataHubAttributes">
34 <xs:attribute name="Usage" type="DataHubUsage" use="required"/>
35 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
36 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
37 </xs:attributeGroup>
38 <xs:attributeGroup name="EventAttributes">
39 <xs:attribute name="Usage" type="EventUsage" use="required"/>
40 <xs:attribute name="EventGuidCName" type="C_NameType" use="optional"/>
41 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
42 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
43 </xs:attributeGroup>
44 <xs:attributeGroup name="ExternAttributes">
45 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
46 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
47 </xs:attributeGroup>
48 <xs:attributeGroup name="FfsAttributes">
49 <xs:attribute name="FfsFormatKeyword" type="KeywordType" use="required"/>
50 <xs:attribute name="FfsFileType" type="EfiFfsFileTypes" use="optional"/>
51 <xs:attribute name="FfsAttribTailPresent" type="xs:boolean" use="optional"/>
52 <xs:attribute name="FfsAttribRecovery" type="xs:boolean" use="optional" default="false"/>
53 <xs:attribute name="FfsAttribDataAlignment" type="FfsDataAlignmentType" use="optional"/>
54 <xs:attribute name="FfsAttribChecksumRequired" type="xs:boolean" use="optional" default="true"/>
55 <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>
56 </xs:attributeGroup>
57 <xs:attributeGroup name="FilenameAttributes">
58 <xs:attribute name="TagName" type="ToolsNameConvention" use="optional"/>
59 <xs:attribute name="ToolCode" type="ToolsNameConvention" use="optional"/>
60 <xs:attribute name="ToolChainFamily" type="ToolsNameConvention" use="optional"/>
61 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
62 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
63 </xs:attributeGroup>
64 <xs:attributeGroup name="FlashDeviceImageAttributes">
65 <xs:attribute name="Name" type="xs:string" use="required"/>
66 </xs:attributeGroup>
67 <xs:attributeGroup name="FlashDeviceImageFileAttributes">
68 <xs:attribute name="Name" type="xs:string" use="required"/>
69 <xs:attribute name="Region" type="xs:string" use="required"/>
70 <xs:attribute name="SubRegion" type="xs:string" use="optional"/>
71 <xs:attribute name="Optional" type="xs:boolean" use="optional"/>
72 </xs:attributeGroup>
73 <xs:attributeGroup name="FlashDeviceInfoAttributes">
74 <xs:attribute name="Name" type="xs:string" use="required"/>
75 <xs:attribute name="Size" type="HexAddressType" use="required"/>
76 <xs:attribute name="BaseAddress" type="HexAddressType" use="required"/>
77 <xs:attribute name="ErasePolarity" type="Polarity" use="required"/>
78 </xs:attributeGroup>
79 <xs:attributeGroup name="FvRegionNameAttributes">
80 <xs:attribute name="FvBaseAddressPcdCName" type="C_NameType" use="required"/>
81 <xs:attribute name="FvRegionSizePcdCName" type="C_NameType" use="required"/>
82 <xs:attribute name="FvRegionAlignmentPcdCName" type="C_NameType" use="optional"/>
83 <xs:attribute name="FvPcdTokenSpaceGuid" type="GuidType" use="optional"/>
84 <xs:attribute name="Alignment" type="xs:positiveInteger" use="optional"/>
85 </xs:attributeGroup>
86 <xs:attributeGroup name="GuidAttributes">
87 <xs:attribute name="Usage" type="GuidUsage" use="required"/>
88 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
89 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
90 </xs:attributeGroup>
91 <xs:attributeGroup name="GuidDeclarationAttributes">
92 <xs:attribute name="Name" type="UiNameType" use="required"/>
93 <xs:attribute name="GuidTypeList" type="GuidListType" use="optional"/>
94 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
95 <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>
96 </xs:attributeGroup>
97 <xs:attributeGroup name="HiiPackageAttributes">
98 <xs:attribute name="Usage" type="HiiPackageUsage" use="required"/>
99 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
100 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
101 </xs:attributeGroup>
102 <xs:attributeGroup name="HobAttributes">
103 <xs:attribute name="Usage" type="HobUsage" use="required"/>
104 <xs:attribute name="HobGuidCName" type="C_NameType" use="optional"/>
105 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
106 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
107 </xs:attributeGroup>
108 <xs:attributeGroup name="IncludeHeaderAttributes">
109 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
110 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
111 <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>
112 </xs:attributeGroup>
113 <xs:attributeGroup name="IndustryStdHeaderAttributes">
114 <xs:attribute name="Name" type="KeywordType" use="required"/>
115 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
116 <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>
117 </xs:attributeGroup>
118 <xs:attributeGroup name="LibraryAttributes">
119 <!-- LibraryAttributes is used for Libraries / Library elements in FPD files -->
120 <xs:attribute name="ModuleGuid" type="GuidType" use="required"/>
121 <xs:attribute name="ModuleVersion" type="VersionDataType" use="optional"/>
122 <xs:attribute name="PackageGuid" type="GuidType" use="required"/>
123 <xs:attribute name="PackageVersion" type="VersionDataType" use="optional"/>
124 </xs:attributeGroup>
125 <xs:attributeGroup name="LibraryClassAttributes">
126 <xs:attribute name="Usage" type="LibraryUsage" use="required"/>
127 <xs:attribute name="RecommendedInstanceVersion" type="VersionDataType" use="optional"/>
128 <xs:attribute name="RecommendedInstanceGuid" type="GuidType" use="optional"/>
129 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
130 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
131 <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>
132 </xs:attributeGroup>
133 <xs:attributeGroup name="LibraryClassDeclarationAttributes">
134 <xs:attribute name="Name" type="KeywordType" use="required"/>
135 <xs:attribute name="RecommendedInstanceVersion" type="VersionDataType" use="optional"/>
136 <xs:attribute name="RecommendedInstanceGuid" type="GuidType" use="optional"/>
137 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
138 <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>
139 </xs:attributeGroup>
140 <xs:attributeGroup name="MsaGuidAttributes">
141 <xs:attribute name="Usage" type="GuidUsage" use="optional"/>
142 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
143 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
144 </xs:attributeGroup>
145 <xs:attributeGroup name="ModuleNameAttributes">
146 <xs:attribute name="ModuleGuid" type="GuidType" use="required"/>
147 <xs:attribute name="ModuleName" type="UiNameType" use="optional"/>
148 <xs:attribute name="ModuleVersion" type="VersionDataType" use="optional"/>
149 </xs:attributeGroup>
150 <xs:attributeGroup name="MsaAttributes">
151 <xs:attribute name="PackageGuid" type="GuidType" use="required"/>
152 <xs:attribute name="ModuleGuid" type="GuidType" use="required"/>
153 <xs:attribute name="ModuleVersion" type="VersionDataType" use="optional"/>
154 <xs:attribute name="PackageVersion" type="VersionDataType" use="optional"/>
155 <xs:attribute name="ForceDebug" type="xs:boolean" default="false" use="optional"/>
156 <xs:attribute name="BindingOrder" type="xs:int" use="optional"/>
157 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
158 </xs:attributeGroup>
159 <xs:attributeGroup name="OptionAttributes">
160 <xs:attribute name="BuildTargets" type="BuildTargetList" use="optional"/>
161 <xs:attribute name="ToolChainFamily" type="ToolsNameConvention" use="optional"/>
162 <xs:attribute name="TagName" type="ToolsNameConvention" use="optional"/>
163 <xs:attribute name="ToolCode" type="ToolsNameConvention" use="optional"/>
164 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
165 </xs:attributeGroup>
166 <xs:attributeGroup name="PackageHeaderAttributes">
167 <xs:attribute name="ModuleType" type="ModuleTypeDef" use="required"/>
168 </xs:attributeGroup>
169 <xs:attributeGroup name="PackageAttributes">
170 <!-- Used with the MSA File, PackageDependencies.Package -->
171 <xs:attribute name="PackageGuid" type="GuidType" use="required"/>
172 <xs:attribute name="PackageVersion" type="VersionDataType" use="optional"/>
173 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
174 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
175 </xs:attributeGroup>
176 <xs:attributeGroup name="PackageNameAttributes">
177 <!--Used with the FrameworkDatabase PackageList.Packagename -->
178 <xs:attribute name="PackageGuid" type="GuidType" use="required"/>
179 <xs:attribute name="PackageVersion" type="VersionDataType" use="optional"/>
180 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
181 </xs:attributeGroup>
182 <xs:attributeGroup name="DynamicBuildPcdAttributes">
183 <xs:annotation>
184 <xs:documentation xml:lang="en">These attributes are for the Pcds listed in PcdData, PcdEntry and/or PcdBuildData entries.</xs:documentation>
185 </xs:annotation>
186 <xs:attribute name="ItemType" type="PcdItemTypes" use="required"/>
187 </xs:attributeGroup>
188 <xs:attributeGroup name="PcdBuildDefinitionAttributes">
189 <xs:attribute name="ItemType" type="PcdItemTypes" use="required"/>
190 </xs:attributeGroup>
191 <xs:attributeGroup name="PcdCodedAttributes">
192 <!-- We need to modify ALL the MSA files that have PcdCoded sections to
193 set the PcdUsage. Once we modify all the MSA files and we modify the
194 wizard and the build tools, we need to make this required. -->
195 <xs:attribute name="Usage" type="PcdUsage" use="optional"/>
196 <xs:attribute name="PcdItemType" type="PcdItemTypes" use="required"/>
197 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
198 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
199 </xs:attributeGroup>
200 <xs:attributeGroup name="PcdDeclarationAttributes">
201 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
202 <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>
203 </xs:attributeGroup>
204 <xs:attributeGroup name="PlatformAttributes">
205 <xs:attribute name="PlatformGuid" type="GuidType" use="required"/>
206 <xs:attribute name="PlatformVersion" type="VersionDataType" use="required"/>
207 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
208 </xs:attributeGroup>
209 <xs:attributeGroup name="PpiDeclarationAttributes">
210 <xs:attribute name="Name" type="UiNameType" use="required"/>
211 <xs:attribute name="GuidTypeList" type="GuidListType" use="optional"/>
212 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
213 <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>
214 </xs:attributeGroup>
215 <xs:attributeGroup name="PpiAttributes">
216 <xs:attribute name="Usage" type="PpiUsage" use="required"/>
217 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
218 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
219 </xs:attributeGroup>
220 <xs:attributeGroup name="PpiNotifyAttributes">
221 <xs:attribute name="Usage" type="PpiNotifyUsage" use="required"/>
222 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
223 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
224 </xs:attributeGroup>
225 <xs:attributeGroup name="ProcessStepAttributes">
226 <xs:annotation>
227 <xs:documentation xml:lang="en">Attributes are either compressable and/or sequence order binding</xs:documentation>
228 </xs:annotation>
229 <xs:attribute name="BindingOrder" type="xs:int" use="optional"/>
230 <xs:attribute name="SectionType" type="EfiSectionType" use="optional"/>
231 </xs:attributeGroup>
232 <xs:attributeGroup name="ProtocolAttributes">
233 <xs:attribute name="Usage" type="ProtocolUsage" use="required"/>
234 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
235 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
236 </xs:attributeGroup>
237 <xs:attributeGroup name="ProtocolDeclarationAttributes">
238 <xs:attribute name="Name" type="UiNameType" use="required"/>
239 <xs:attribute name="GuidTypeList" type="GuidListType" use="optional"/>
240 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
241 <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>
242 </xs:attributeGroup>
243 <xs:attributeGroup name="ProtocolNotifyAttributes">
244 <xs:attribute name="Usage" type="ProtocolNotifyUsage" use="required"/>
245 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
246 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
247 </xs:attributeGroup>
248 <xs:attributeGroup name="RawDataAttributes">
249 <xs:attribute name="Name" type="xs:string" use="required"/>
250 <xs:attribute name="Region" type="xs:string" use="required"/>
251 <xs:attribute name="SubRegion" type="xs:string" use="required"/>
252 </xs:attributeGroup>
253 <xs:attributeGroup name="RegionAttributes">
254 <xs:attribute name="Name" type="xs:string" use="required"/>
255 <xs:attribute name="Size" type="HexAddressType" use="required"/>
256 <xs:attribute name="Flags" type="HexAddressType" use="optional"/>
257 <xs:attribute name="Attributes" type="xs:string" use="required"/>
258 <xs:attribute name="AreaType" type="EfiFvAreaType" use="required"/>
259 <xs:attribute name="Alignment" type="HexAddressType" use="optional"/>
260 </xs:attributeGroup>
261 <xs:attributeGroup name="SectionsAttributes">
262 <xs:annotation>
263 <xs:documentation xml:lang="en">Attributes for Sections, EncapsulationTag and EncapsulationType</xs:documentation>
264 </xs:annotation>
265 <xs:attribute name="BindingOrder" type="xs:nonNegativeInteger" use="optional"/>
266 <xs:attribute name="Compressible" type="xs:boolean" default="true" use="optional"/>
267 <xs:attribute name="SectionType" type="EfiSectionType" use="optional"/>
268 <xs:attribute name="EncapsulationType" type="xs:normalizedString" use="optional"/>
269 <xs:attribute name="EncapsulationTag" type="xs:string" use="optional"/>
270 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
271 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
272 </xs:attributeGroup>
273 <xs:attributeGroup name="SubRegionAttributes">
274 <xs:attribute name="CreateHob" type="xs:boolean" use="required"/>
275 <xs:attribute name="Name" type="xs:string" use="required"/>
276 <xs:attribute name="Size" type="HexAddressType" use="required"/>
277 <xs:attribute name="Attributes" type="xs:string" use="required"/>
278 <xs:attribute name="AreaType" type="EfiFvAreaType" use="required"/>
279 <xs:attribute name="NameGuid" type="xs:string" use="required"/>
280 <xs:attribute name="AreaTypeGuid" type="xs:string" use="optional"/>
281 <xs:attribute name="FileSystemGuid" type="xs:string" use="optional"/>
282 </xs:attributeGroup>
283 <xs:attributeGroup name="SystemTableAttributes">
284 <xs:attribute name="Usage" type="SystemTableUsage" use="required"/>
285 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
286 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
287 </xs:attributeGroup>
288 <xs:attributeGroup name="UrlAttribute">
289 <xs:attribute name="Url" type="xs:anyURI"/>
290 </xs:attributeGroup>
291 <xs:attributeGroup name="VariableAttributes">
292 <xs:attribute name="Usage" type="VariableUsage" use="required"/>
293 <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
294 <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
295 </xs:attributeGroup>
296 </xs:schema>