summaryrefslogtreecommitdiff
path: root/Tools/XMLSchema/FrameworkDataAttributes.xsd
blob: 778d339e1550e8a52975042272096bff0059ea17 (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
<?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:attributeGroup name="BaseNameAttributes">
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="Version" type="VersionDataType" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="BootModeAttributes">
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="BootModeName" type="BootModeNames" use="required"/>
        <xs:attribute name="Usage" type="BootModeUsage" use="required"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="ConvertAttributeString">
        <xs:attribute name="SourceString" type="xs:string" use="optional"/>
        <xs:attribute default="Unicode" name="OutputFiletype" type="xs:string" use="optional"/>
        <xs:attribute name="OutputFilename" type="FileNameConvention" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="DataHubAttributes">
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="Usage" type="DataHubUsage" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="DirectoryAttributes">
        <xs:attribute name="Separator" type="ToothPick"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="EventAttributes">
        <xs:attribute name="Usage" type="EventUsage" use="optional"/>
        <xs:attribute name="EventGroup" type="EventTypes" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="ExternAttributes">
        <xs:attribute name="Usage" type="ExternUsage" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="FilenameAttributes">
        <xs:attribute name="Usage" type="FileNameUsage" use="optional"/>
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="GuidValue" type="GuidType" use="optional"/>
        <xs:attribute name="Path" type="DirectoryNamingConvention" use="optional"/>
        <xs:attribute name="FileType" type="xs:string" use="optional"/>
        <xs:attribute name="ToolChain" type="ToolChains" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="FormsetAttributes">
        <xs:attribute name="Usage" type="FormSetUsage" use="optional"/>
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="GuidAttributes">
        <xs:attribute name="Usage" type="GuidUsage" use="optional"/>
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="HobAttributes">
        <xs:attribute name="Usage" type="HobUsage" use="optional"/>
        <xs:attribute name="HobType" type="HobTypes" use="required"/>
        <xs:attribute default="true" name="HobEnabled" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="IncludeAttributes">
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="Path" type="DirectoryNamingConvention" use="optional"/>
        <xs:attribute name="Class" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="Version" type="VersionDataType" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
        <xs:attribute name="ModuleType" type="ModuleTypeDef" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="LibraryAttributes">
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="LibraryClass" type="BaseNameConvention" use="optional"/>
        <xs:attribute name="ClassGuid" type="GuidType" use="optional"/>
        <xs:attribute name="Version" type="VersionDataType" use="optional"/>
        <xs:attribute name="Usage" type="LibraryUsage" use="optional"/>
        <xs:attribute name="Package" type="xs:string" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="ModuleNameAttributes">
        <xs:attribute name="Guid" type="GuidType" use="required"/>
        <xs:attribute name="Version" type="VersionDataType" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="ModuleNameSaAttributes">
        <xs:attribute name="ModuleName" type="xs:NCName" use="required"/>
        <xs:attribute name="Guid" type="GuidType" use="required"/>
        <xs:attribute name="Version" type="VersionDataType" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="MsaAttributes">
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="FvBinding" type="xs:string" use="optional"/>
        <xs:attribute name="ModuleName" type="C_Name" use="optional"/>
        <xs:attribute name="ModuleGuid" type="GuidType" use="optional"/>
        <xs:attribute name="PackageName" type="C_Name" use="optional"/>
        <xs:attribute name="PackageGuid" type="GuidType" use="optional"/>
        <xs:attribute name="BuildSequence" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="OptionAttributes">
        <xs:attribute name="Platform" type="PlatformNamingConvention" use="optional"/>
        <xs:attribute name="ToolChain" type="ToolChains" use="optional"/>
        <xs:attribute name="BuildTarget" type="BuildTargets" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="PackageAttributes">
        <xs:attribute name="Usage" type="PackageUsage" use="optional"/>
        <xs:attribute name="PackageType" type="PackageType" use="optional"/>
        <xs:attribute name="UpdatedDate" type="DateType" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="PackageNameAttributes">
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="Version" type="VersionDataType" use="optional"/>
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="PcdAttributes">
        <xs:annotation>
            <xs:documentation xml:lang="en">These attributes are for the Pcds listed in PcdData, PcdEntry and/or PcdBuildData entries.</xs:documentation>
            <xs:documentation xml:lang="en">PcdUsage is only valid for PcdItemTypes = FEATURE_FLAG</xs:documentation>
        </xs:annotation>
        <xs:attribute name="ItemType" type="PcdItemTypes" use="required"/>
        <xs:attribute name="PcdUsage" type="PcdUsage" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="PlatformAttributes">
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="Version" type="VersionDataType" use="optional"/>
        <xs:attribute name="AlternateName" type="FileNameConvention" use="optional"/>
        <xs:attribute name="PlatformName" type="BaseNameConvention" use="optional"/>
        <xs:attribute name="PlatformGuid" type="GuidType" use="optional"/>
        <xs:attribute name="PlatformVersion" type="xs:string" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="PpiAttributes">
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="Usage" type="PpiUsage" use="optional"/>
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="PpiNotifyAttributes">
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="Usage" type="PpiNotifyUsage" use="optional"/>
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="ProtocolAttributes">
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="Usage" type="ProtocolUsage" use="optional"/>
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="ProtocolNotifyAttributes">
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="Usage" type="ProtocolNotifyUsage" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="SectionAttributes">
        <xs:annotation>
            <xs:documentation xml:lang="en">Attributes are either compressable and/or sequence order binding</xs:documentation>
        </xs:annotation>
        <xs:attribute name="SectionType" type="EfiSectionType" use="optional"/>
        <xs:attribute default="true" name="Compressible" type="xs:boolean" use="optional"/>
        <xs:attribute name="BindingOrder" type="xs:int" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="SectionsAttributes">
        <xs:annotation>
            <xs:documentation xml:lang="en">Attributes for Sections, EncapsulationTag, EncapsulationType and OverrideID</xs:documentation>
        </xs:annotation>
        <xs:attribute name="EncapsulationType" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="EncapsulationTag" type="xs:string" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="SystemTableAttributes">
        <xs:attribute name="Usage" type="SystemTableUsage" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" 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="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
</xs:schema>