]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/XMLSchema/FrameworkDataTypes.xsd
Updated the FPD and SPD files to newer schema formats. Also updated a couple of...
[mirror_edk2.git] / Tools / XMLSchema / FrameworkDataTypes.xsd
index 31bd87ea1d2768adc03f878ec53846e8e163a645..8199df0f6adde3144c8b1b68378cb59ab333aa1f 100644 (file)
     \r
   -->\r
     <xs:annotation>\r
-        <xs:documentation xml:lang="en">This schema defines EFI and Framework Attribute and Data Types. Only simpleType and attributeGroups are specified in this file. </xs:documentation>\r
+        <xs:documentation xml:lang="en">This schema defines EFI and Framework Data Types. Only simpleType are specified in this file. </xs:documentation>\r
     </xs:annotation>\r
     <xs:include schemaLocation="NamingConvention.xsd"/>\r
+    <xs:simpleType name="ArchList">\r
+        <xs:annotation>\r
+            <xs:documentation xml:lang="en">A list of one or more: IA32, X64, IPF and/or EBC</xs:documentation>\r
+        </xs:annotation>\r
+        <xs:list itemType="SupportedArchitectures"/>\r
+    </xs:simpleType>\r
     <xs:simpleType name="BlockNameType">\r
         <xs:annotation>\r
             <xs:documentation xml:lang="en">FIRMWARE: Define a block name to be BLOCK[A-F0-9]{2}</xs:documentation>\r
             </xs:enumeration>\r
         </xs:restriction>\r
     </xs:simpleType>\r
+    <xs:simpleType name="BuildTargets">\r
+        <xs:restriction base="xs:NCName">\r
+            <xs:enumeration value="DEBUG"/>\r
+            <xs:enumeration value="RELEASE"/>\r
+            <xs:enumeration value="BOTH"/>\r
+        </xs:restriction>\r
+    </xs:simpleType>\r
     <xs:simpleType name="ComponentExecutionPhase">\r
         <xs:annotation>\r
             <xs:documentation xml:lang="en">These are the supported EFI/Framework Execution Phases</xs:documentation>\r
             <xs:enumeration value="APPLICATION"/>\r
             <xs:enumeration value="BS_DRIVER_EFI"/>\r
             <xs:enumeration value="SHELLAPP"/>\r
-            <xs:enumeration value="APPLICATION"/>\r
             <xs:enumeration value="UEFI_APPLICATION"/>\r
             <xs:enumeration value="BINARY"/>\r
             <xs:enumeration value="LOGO"/>\r
             </xs:enumeration>\r
         </xs:restriction>\r
     </xs:simpleType>\r
+    <xs:simpleType name="PcdListType">\r
+        <xs:list itemType="PcdItemTypes"/>\r
+    </xs:simpleType>\r
     <xs:simpleType name="PcdTypes">\r
         <xs:restriction base="NameConvention">\r
             <xs:enumeration value="FIXED_AT_BUILD">\r
                     <xs:documentation xml:lang="en">PCD Item is only a build time option and cannot be Dyanmic or Binary patched into the module.</xs:documentation>\r
                 </xs:annotation>\r
             </xs:enumeration>\r
+            <xs:enumeration value="FEATURE_FLAG"/>\r
             <xs:enumeration value="PATCHABLE_IN_MODULE">\r
                 <xs:annotation>\r
                     <xs:documentation xml:lang="en">PCD Item is set to a default value at build time and a binary of the module can be patched to update the value.</xs:documentation>\r
             </xs:enumeration>\r
         </xs:restriction>\r
     </xs:simpleType>\r
+    <xs:simpleType name="PcdDriverTypes">\r
+        <xs:restriction base="NameConvention">\r
+            <xs:enumeration value="PEI_PCD_DRIVER"/>\r
+            <xs:enumeration value="DXE_PCD_DRIVER"/>\r
+        </xs:restriction>\r
+    </xs:simpleType>\r
     <xs:simpleType name="PcdDataTypes">\r
         <xs:restriction base="xs:normalizedString">\r
             <xs:enumeration value="UINT8"/>\r
             <xs:element name="ToolArgs" type="xs:string"/>\r
         </xs:sequence>\r
     </xs:complexType>\r
-    <xs:attributeGroup name="BaseNameAttributes">\r
-        <xs:attribute name="Guid" type="GuidType" use="optional"/>\r
-        <xs:attribute name="Version" type="VersionDataType" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="BootModeAttributes">\r
-        <xs:attribute name="Guid" type="GuidType" use="optional"/>\r
-        <xs:attribute name="BootModeName" type="BootModeNames" use="required"/>\r
-        <xs:attribute name="Usage" type="BootModeUsage" use="required"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="ConvertAttributeString">\r
-        <xs:attribute name="SourceString" type="xs:string" use="optional"/>\r
-        <xs:attribute default="Unicode" name="OutputFiletype" type="xs:string" use="optional"/>\r
-        <xs:attribute name="OutputFilename" type="FileNameConvention" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="DataHubAttributes">\r
-        <xs:attribute name="Guid" type="GuidType" use="optional"/>\r
-        <xs:attribute name="Usage" type="DataHubUsage" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="DirectoryAttributes">\r
-        <xs:attribute name="Separator" type="ToothPick"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="EventAttributes">\r
-        <xs:attribute name="Usage" type="EventUsage" use="optional"/>\r
-        <xs:attribute name="EventGroup" type="EventTypes" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="ExternAttributes">\r
-        <xs:attribute name="Usage" type="ExternUsage" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="FilenameAttributes">\r
-        <xs:attribute name="Usage" type="FileNameUsage" use="optional"/>\r
-        <xs:attribute name="Guid" type="GuidType" use="optional"/>\r
-        <xs:attribute name="Path" type="DirectoryNamingConvention" use="optional"/>\r
-        <xs:attribute name="FileType" type="xs:string" use="optional"/>\r
-        <xs:attribute name="ToolChain" type="ToolChains" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="FormsetAttributes">\r
-        <xs:attribute name="Usage" type="FormSetUsage" use="optional"/>\r
-        <xs:attribute name="Guid" type="GuidType" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="GuidAttributes">\r
-        <xs:attribute name="Usage" type="GuidUsage" use="optional"/>\r
-        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="HobAttributes">\r
-        <xs:attribute name="Usage" type="HobUsage" use="optional"/>\r
-        <xs:attribute name="HobType" type="HobTypes" use="required"/>\r
-        <xs:attribute default="true" name="HobEnabled" type="xs:boolean" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="IncludeAttributes">\r
-        <xs:attribute name="Guid" type="GuidType" use="optional"/>\r
-        <xs:attribute name="Path" type="DirectoryNamingConvention" use="optional"/>\r
-        <xs:attribute name="Class" type="xs:normalizedString" use="optional"/>\r
-        <xs:attribute name="Version" type="VersionDataType" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-        <xs:attribute name="ModuleType" type="ModuleTypeDef" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="LibraryAttributes">\r
-        <xs:attribute name="Guid" type="GuidType" use="optional"/>\r
-        <xs:attribute name="LibraryClass" type="BaseNameConvention" use="optional"/>\r
-        <xs:attribute name="ClassGuid" type="GuidType" use="optional"/>\r
-        <xs:attribute name="Version" type="VersionDataType" use="optional"/>\r
-        <xs:attribute name="Usage" type="LibraryUsage" use="optional"/>\r
-        <xs:attribute name="Package" type="xs:string" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="ModuleNameAttributes">\r
-        <xs:attribute name="Guid" type="GuidType" use="optional"/>\r
-        <xs:attribute name="Version" type="VersionDataType" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="MsaAttributes">\r
-        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>\r
-        <xs:attribute name="FvBinding" type="xs:string" use="optional"/>\r
-        <xs:attribute name="ModuleName" type="C_Name" use="optional"/>\r
-        <xs:attribute name="ModuleGuid" type="GuidType" use="optional"/>\r
-        <xs:attribute name="PackageName" type="C_Name" use="optional"/>\r
-        <xs:attribute name="PackageGuid" type="GuidType" use="optional"/>\r
-        <xs:attribute name="BuildSequence" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="OptionAttributes">\r
-        <xs:attribute name="Platform" type="PlatformNamingConvention" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-        <xs:attribute name="ToolChain" type="ToolChains"  use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="PackageAttributes">\r
-        <xs:attribute name="Usage" type="PackageUsage" use="optional"/>\r
-        <xs:attribute name="PackageType" type="PackageType" use="optional"/>\r
-        <xs:attribute name="UpdatedDate" type="DateType" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="PackageNameAttributes">\r
-        <xs:attribute name="Guid" type="GuidType" use="optional"/>\r
-        <xs:attribute name="Version" type="VersionDataType" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="PcdAttributes">\r
-        <xs:annotation>\r
-            <xs:documentation xml:lang="en">These attributes are for the Pcds listed in PcdData, PcdEntry and/or PcdBuildData entries.</xs:documentation>\r
-            <xs:documentation xml:lang="en">PcdUsage is only valid for PcdItemTypes = FEATURE_FLAG</xs:documentation>\r
-        </xs:annotation>\r
-        <xs:attribute name="ItemType" type="PcdItemTypes" use="required"/>\r
-        <xs:attribute name="PcdUsage" type="PcdUsage" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="PlatformAttributes">\r
-        <xs:attribute name="Guid" type="GuidType" use="optional"/>\r
-        <xs:attribute name="Version" type="VersionDataType" use="optional"/>\r
-        <xs:attribute name="AlternateName" type="FileNameConvention" use="optional"/>\r
-        <xs:attribute name="PlatformName" type="BaseNameConvention" use="optional"/>\r
-        <xs:attribute name="PlatformGuid" type="GuidType" use="optional"/>\r
-        <xs:attribute name="PlatformVersion" type="xs:string" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="PpiAttributes">\r
-        <xs:attribute name="Guid" type="GuidType" use="optional"/>\r
-        <xs:attribute name="Usage" type="PpiUsage" use="optional"/>\r
-        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>\r
-        <xs:attribute name="FeatureFlag" type="C_Name" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="PpiNotifyAttributes">\r
-        <xs:attribute name="Guid" type="GuidType" use="optional"/>\r
-        <xs:attribute name="Usage" type="PpiNotifyUsage" use="optional"/>\r
-        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>\r
-        <xs:attribute name="FeatureFlag" type="C_Name" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="ProtocolAttributes">\r
-        <xs:attribute name="Guid" type="GuidType" use="optional"/>\r
-        <xs:attribute name="Usage" type="ProtocolUsage" use="optional"/>\r
-        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>\r
-        <xs:attribute name="FeatureFlag" type="C_Name" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="ProtocolNotifyAttributes">\r
-        <xs:attribute name="Guid" type="GuidType" use="optional"/>\r
-        <xs:attribute name="Usage" type="ProtocolNotifyUsage" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="SectionAttributes">\r
-        <xs:annotation>\r
-            <xs:documentation xml:lang="en">Attributes are either compressable and/or sequence order binding</xs:documentation>\r
-        </xs:annotation>\r
-        <xs:attribute name="SectionType" type="EfiSectionType" use="optional"/>\r
-        <xs:attribute default="true" name="Compressible" type="xs:boolean" use="optional"/>\r
-        <xs:attribute name="BindingOrder" type="xs:int" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="SectionsAttributes">\r
-        <xs:annotation>\r
-            <xs:documentation xml:lang="en">Attributes for Sections, EncapsulationTag, EncapsulationType and OverrideID</xs:documentation>\r
-        </xs:annotation>\r
-        <xs:attribute name="EncapsulationType" type="xs:normalizedString" use="optional"/>\r
-        <xs:attribute name="EncapsulationTag" type="xs:string" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="SystemTableAttributes">\r
-        <xs:attribute name="Usage" type="SystemTableUsage" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="VariableAttributes">\r
-        <xs:attribute name="Usage" type="VariableUsage" use="optional"/>\r
-        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>\r
-    </xs:attributeGroup>\r
-    <xs:attributeGroup name="UrlAttribute">\r
-        <xs:attribute name="Url" type="xs:anyURI"/>\r
-    </xs:attributeGroup>\r
 </xs:schema>\r