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">
4 Filename: FrameworkDataAttributes.xsd
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
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.
16 <xs:documentation xml:lang="en">This schema defines EFI and Framework Attribute. Only attributeGroups are specified in this file. </xs:documentation>
18 <xs:include schemaLocation="NamingConvention.xsd"/>
19 <xs:include schemaLocation="FrameworkDataTypes.xsd"/>
20 <xs:attributeGroup name="BaseNameAttributes">
21 <xs:attribute name="Guid" type="GuidType" use="optional"/>
22 <xs:attribute name="Version" type="VersionDataType" use="optional"/>
24 <xs:attributeGroup name="BootModeAttributes">
25 <xs:attribute name="Guid" type="GuidType" use="optional"/>
26 <xs:attribute name="BootModeName" type="BootModeNames" use="required"/>
27 <xs:attribute name="Usage" type="BootModeUsage" use="required"/>
28 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
30 <xs:attributeGroup name="ConvertAttributeString">
31 <xs:attribute name="SourceString" type="xs:string" use="optional"/>
32 <xs:attribute default="Unicode" name="OutputFiletype" type="xs:string" use="optional"/>
33 <xs:attribute name="OutputFilename" type="FileNameConvention" use="optional"/>
35 <xs:attributeGroup name="DataHubAttributes">
36 <xs:attribute name="Guid" type="GuidType" use="optional"/>
37 <xs:attribute name="Usage" type="DataHubUsage" use="optional"/>
38 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
40 <xs:attributeGroup name="DirectoryAttributes">
41 <xs:attribute name="Separator" type="ToothPick"/>
43 <xs:attributeGroup name="EventAttributes">
44 <xs:attribute name="Usage" type="EventUsage" use="optional"/>
45 <xs:attribute name="EventGroup" type="EventTypes" use="optional"/>
46 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
48 <xs:attributeGroup name="ExternAttributes">
49 <xs:attribute name="Usage" type="ExternUsage" use="optional"/>
50 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
52 <xs:attributeGroup name="FilenameAttributes">
53 <xs:attribute name="Usage" type="FileNameUsage" use="optional"/>
54 <xs:attribute name="Guid" type="GuidType" use="optional"/>
55 <xs:attribute name="GuidValue" type="GuidType" use="optional"/>
56 <xs:attribute name="Path" type="DirectoryNamingConvention" use="optional"/>
57 <xs:attribute name="FileType" type="xs:string" use="optional"/>
58 <xs:attribute name="ToolChain" type="ToolChains" use="optional"/>
59 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
61 <xs:attributeGroup name="FormsetAttributes">
62 <xs:attribute name="Usage" type="FormSetUsage" use="optional"/>
63 <xs:attribute name="Guid" type="GuidType" use="optional"/>
64 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
66 <xs:attributeGroup name="GuidAttributes">
67 <xs:attribute name="Usage" type="GuidUsage" use="optional"/>
68 <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
69 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
71 <xs:attributeGroup name="HobAttributes">
72 <xs:attribute name="Usage" type="HobUsage" use="optional"/>
73 <xs:attribute name="HobType" type="HobTypes" use="required"/>
74 <xs:attribute default="true" name="HobEnabled" type="xs:boolean" use="optional"/>
75 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
77 <xs:attributeGroup name="IncludeAttributes">
78 <xs:attribute name="Guid" type="GuidType" use="optional"/>
79 <xs:attribute name="Path" type="DirectoryNamingConvention" use="optional"/>
80 <xs:attribute name="Class" type="xs:normalizedString" use="optional"/>
81 <xs:attribute name="Version" type="VersionDataType" use="optional"/>
82 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
83 <xs:attribute name="ModuleType" type="ModuleTypeDef" use="optional"/>
85 <xs:attributeGroup name="LibraryAttributes">
86 <xs:attribute name="Guid" type="GuidType" use="optional"/>
87 <xs:attribute name="LibraryClass" type="BaseNameConvention" use="optional"/>
88 <xs:attribute name="ClassGuid" type="GuidType" use="optional"/>
89 <xs:attribute name="Version" type="VersionDataType" use="optional"/>
90 <xs:attribute name="Usage" type="LibraryUsage" use="optional"/>
91 <xs:attribute name="Package" type="xs:string" use="optional"/>
92 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
94 <xs:attributeGroup name="ModuleNameAttributes">
95 <xs:attribute name="Guid" type="GuidType" use="required"/>
96 <xs:attribute name="Version" type="VersionDataType" use="optional"/>
98 <xs:attributeGroup name="ModuleNameSaAttributes">
99 <xs:attribute name="ModuleName" type="xs:NCName" use="required"/>
100 <xs:attribute name="Guid" type="GuidType" use="required"/>
101 <xs:attribute name="Version" type="VersionDataType" use="optional"/>
103 <xs:attributeGroup name="MsaAttributes">
104 <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
105 <xs:attribute name="FvBinding" type="xs:string" use="optional"/>
106 <xs:attribute name="ModuleName" type="C_Name" use="optional"/>
107 <xs:attribute name="ModuleGuid" type="GuidType" use="optional"/>
108 <xs:attribute name="PackageName" type="C_Name" use="optional"/>
109 <xs:attribute name="PackageGuid" type="GuidType" use="optional"/>
110 <xs:attribute name="BuildSequence" type="xs:int" use="optional"/>
112 <xs:attributeGroup name="OptionAttributes">
113 <xs:attribute name="Platform" type="PlatformNamingConvention" use="optional"/>
114 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
115 <xs:attribute name="ToolChain" type="ToolChains" use="optional"/>
116 <xs:attribute name="BuildTarget" type="BuildTargets" use="optional"/>
118 <xs:attributeGroup name="PackageAttributes">
119 <xs:attribute name="Usage" type="PackageUsage" use="optional"/>
120 <xs:attribute name="PackageType" type="PackageType" use="optional"/>
121 <xs:attribute name="UpdatedDate" type="DateType" use="optional"/>
123 <xs:attributeGroup name="PackageNameAttributes">
124 <xs:attribute name="Guid" type="GuidType" use="optional"/>
125 <xs:attribute name="Version" type="VersionDataType" use="optional"/>
126 <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
128 <xs:attributeGroup name="PcdAttributes">
130 <xs:documentation xml:lang="en">These attributes are for the Pcds listed in PcdData, PcdEntry and/or PcdBuildData entries.</xs:documentation>
131 <xs:documentation xml:lang="en">PcdUsage is only valid for PcdItemTypes = FEATURE_FLAG</xs:documentation>
133 <xs:attribute name="ItemType" type="PcdItemTypes" use="required"/>
134 <xs:attribute name="PcdUsage" type="PcdUsage" use="optional"/>
135 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
137 <xs:attributeGroup name="PlatformAttributes">
138 <xs:attribute name="Guid" type="GuidType" use="optional"/>
139 <xs:attribute name="Version" type="VersionDataType" use="optional"/>
140 <xs:attribute name="AlternateName" type="FileNameConvention" use="optional"/>
141 <xs:attribute name="PlatformName" type="BaseNameConvention" use="optional"/>
142 <xs:attribute name="PlatformGuid" type="GuidType" use="optional"/>
143 <xs:attribute name="PlatformVersion" type="xs:string" use="optional"/>
145 <xs:attributeGroup name="PpiAttributes">
146 <xs:attribute name="Guid" type="GuidType" use="optional"/>
147 <xs:attribute name="Usage" type="PpiUsage" use="optional"/>
148 <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
149 <xs:attribute name="FeatureFlag" type="C_Name" use="optional"/>
150 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
152 <xs:attributeGroup name="PpiNotifyAttributes">
153 <xs:attribute name="Guid" type="GuidType" use="optional"/>
154 <xs:attribute name="Usage" type="PpiNotifyUsage" use="optional"/>
155 <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
156 <xs:attribute name="FeatureFlag" type="C_Name" use="optional"/>
157 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
159 <xs:attributeGroup name="ProtocolAttributes">
160 <xs:attribute name="Guid" type="GuidType" use="optional"/>
161 <xs:attribute name="Usage" type="ProtocolUsage" use="optional"/>
162 <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
163 <xs:attribute name="FeatureFlag" type="C_Name" use="optional"/>
164 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
166 <xs:attributeGroup name="ProtocolNotifyAttributes">
167 <xs:attribute name="Guid" type="GuidType" use="optional"/>
168 <xs:attribute name="Usage" type="ProtocolNotifyUsage" use="optional"/>
169 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
171 <xs:attributeGroup name="SectionAttributes">
173 <xs:documentation xml:lang="en">Attributes are either compressable and/or sequence order binding</xs:documentation>
175 <xs:attribute name="SectionType" type="EfiSectionType" use="optional"/>
176 <xs:attribute default="true" name="Compressible" type="xs:boolean" use="optional"/>
177 <xs:attribute name="BindingOrder" type="xs:int" use="optional"/>
178 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
180 <xs:attributeGroup name="SectionsAttributes">
182 <xs:documentation xml:lang="en">Attributes for Sections, EncapsulationTag, EncapsulationType and OverrideID</xs:documentation>
184 <xs:attribute name="EncapsulationType" type="xs:normalizedString" use="optional"/>
185 <xs:attribute name="EncapsulationTag" type="xs:string" use="optional"/>
186 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
188 <xs:attributeGroup name="SystemTableAttributes">
189 <xs:attribute name="Usage" type="SystemTableUsage" use="optional"/>
190 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
192 <xs:attributeGroup name="VariableAttributes">
193 <xs:attribute name="Usage" type="VariableUsage" use="optional"/>
194 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
196 <xs:attributeGroup name="UrlAttribute">
197 <xs:attribute name="Url" type="xs:anyURI"/>