diff options
-rw-r--r-- | Tools/XMLSchema/FrameworkDataAttributes.xsd | 814 | ||||
-rw-r--r-- | Tools/XMLSchema/FrameworkDataElements.xsd | 2706 | ||||
-rw-r--r-- | Tools/XMLSchema/FrameworkDataTypes.xsd | 1093 | ||||
-rw-r--r-- | Tools/XMLSchema/FrameworkHeaders.xsd | 347 | ||||
-rw-r--r-- | Tools/XMLSchema/FrameworkPlatformDataElements.xsd | 903 | ||||
-rw-r--r-- | Tools/XMLSchema/FrameworkPlatformDataTypes.xsd | 192 | ||||
-rw-r--r-- | Tools/XMLSchema/NamingConvention.xsd | 498 | ||||
-rw-r--r-- | Tools/XMLSchema/SurfaceArea.xsd | 308 |
8 files changed, 2667 insertions, 4194 deletions
diff --git a/Tools/XMLSchema/FrameworkDataAttributes.xsd b/Tools/XMLSchema/FrameworkDataAttributes.xsd index 2210d9f..aedfc86 100644 --- a/Tools/XMLSchema/FrameworkDataAttributes.xsd +++ b/Tools/XMLSchema/FrameworkDataAttributes.xsd @@ -1,6 +1,6 @@ <?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.
@@ -12,547 +12,277 @@ 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="required"/>
+ <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="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">This schema defines EFI and Framework Attribute. Only attributeGroups are specified in this file. </xs:documentation>
+ <xs:documentation xml:lang="en">These attributes are for the Pcds listed in PcdData, PcdEntry and/or PcdBuildData entries.</xs:documentation>
</xs:annotation>
- <xs:include schemaLocation="NamingConvention.xsd"/>
- <xs:include schemaLocation="FrameworkDataTypes.xsd"/>
- <xs:include schemaLocation="FrameworkPlatformDataTypes.xsd"/>
- <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="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="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="Alignment" type="HexAddressType" use="optional"/>
- <xs:attribute name="Attributes" type="xs:string" use="required"/>
- <xs:attribute name="AreaType" type="EfiFvAreaType" use="required"/>
- </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="BaseNameAttributes">
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <xs:attribute name="Version" type="VersionDataType" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="BootModeAttributes">
- <!-- Make Usage REQUIRED in final -->
- <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"/>
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <!-- DO NOT USE, remove Guid from use -->
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="ConvertAttributeString">
- <xs:attribute name="OutputFilename" type="FileNameConvention" use="optional"/>
- <xs:attribute name="SourceString" type="xs:string" use="optional"/>
- <xs:attribute default="Unicode" name="OutputFiletype" type="xs:string" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="DataHubAttributes">
- <!-- Make Usage REQUIRED in final -->
- <xs:attribute name="Usage" type="DataHubUsage" use="optional"/>
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <!-- DO NOT USE remove EnableFeature from use -->
- <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
- <!-- DO NOT USE, remove Guid from use -->
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <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">
- <!-- Make Usage REQUIRED in final -->
- <xs:attribute name="Usage" type="EventUsage" use="optional"/>
- <!-- Make EventGroup Required in final -->
- <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"/>
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <!-- DO NOT USE remove EnableFeature from use -->
- <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
- <!-- DO NOT USE, remove Guid from use -->
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
- <xs:attribute name="EventGroup" type="EventTypes" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="ExternAttributes">
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <!-- DO NOT USE remove EnableFeature from use -->
- <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <xs:attribute name="Usage" type="ExternUsage" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <xs:attribute name="OverrideID" type="xs:int" 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"/>
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <xs:attribute name="ModuleName" type="xs:NCName" use="optional"/>
- <xs:attribute name="ModuleVersion" type="VersionDataType" use="optional"/>
- <xs:attribute name="ModuleGuid" type="GuidType" use="optional"/>
- <!-- DO NOT USE remove EnableFeature from use -->
- <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
- <xs:attribute name="FileType" type="xs:string" use="optional"/>
- <!-- DO NOT USE, remove Guid from use -->
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <!-- DO NOT USE, remove Path from use -->
- <xs:attribute name="Path" type="DirectoryNamingConvention" use="optional"/>
- <!-- DO NOT USE, remove ToolChain from use, use ToolChainFamily -->
- <xs:attribute name="ToolChain" type="ToolChains" use="optional"/>
- <!-- DO NOT USE, remove Usage from use -->
- <xs:attribute name="Usage" type="FileNameUsage" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="FormsetAttributes">
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <!-- DO NOT USE remove EnableFeature from use -->
- <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <xs:attribute name="Usage" type="FormSetUsage" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="GuidAttributes">
- <!-- Make Usage REQUIRED in final -->
- <xs:attribute name="Usage" type="GuidUsage" use="optional"/>
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <!-- DO NOT USE remove EnableFeature from use -->
- <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="GuidDeclarationAttributes">
- <xs:attribute name="Name" type="UiNameType" use="required"/>
- <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:attribute name="GuidTypeList" type="GuidListType" 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">
- <!-- USAGE is required in final -->
- <xs:attribute name="Usage" type="HobUsage" use="optional"/>
- <xs:attribute name="HobGuidCName" type="C_NameType" use="optional"/>
- <xs:attribute name="HobType" type="HobTypes" use="required"/>
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <!-- DO NOT USE remove EnableFeature from use -->
- <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
- <!-- DO NOT USE remove Guid from use -->
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <!-- DO NOT USE remove HobEnabled from use -->
- <xs:attribute default="true" name="HobEnabled" type="xs:boolean" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
- </xs:attributeGroup>
- <!-- DO NOT USE remove IncludeAttributes from use -->
- <xs:attributeGroup name="IncludeAttributes">
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <!-- DO NOT USE remove Class from use -->
- <xs:attribute name="Class" type="BaseNameConvention" use="optional"/>
- <!-- DO NOT USE remove EnableFeature from use -->
- <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <!-- DO NOT USE remove Guid from use -->
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <xs:attribute name="ModuleType" type="ModuleTypeDef" use="optional"/>
- <!-- DO NOT USE remove Path from use -->
- <xs:attribute name="Path" type="DirectoryNamingConvention" use="optional"/>
- <!-- DO NOT USE remove Version from use -->
- <xs:attribute name="Version" type="VersionDataType" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
- <xs:attribute name="ModuleTypeList" type="ModuleTypeList" 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="ModuleTypeList" type="ModuleTypeList" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="IndustryStdHeaderAttributes">
- <xs:attribute name="Name" type="KeywordType" 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="LibraryAttributes">
- <!-- LibraryAttributes is used for Libraries / Library elements in FPD files -->
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <!-- DO NOT USE remove EnableFeature from use -->
- <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
- <!-- LAH Does a LibraryInstance need to have FeatureFlag Attribute? -->
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <!-- DO NOT USE remove Guid from use, Start using ModuleGuid instead -->
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <!-- DO NOT USE remove ClassGuid from use, Start using LibraryClassGuid instead -->
- <xs:attribute name="ClassGuid" type="GuidType" use="optional"/>
- <!-- DO NOT USE remove LibraryGuid from use, Start using ModuleGuid instead -->
- <xs:attribute name="LibraryGuid" type="GuidType" use="optional"/>
- <xs:attribute name="LibraryClass" type="BaseNameConvention" use="optional"/>
- <xs:attribute name="LibraryClassGuid" type="GuidType" use="optional"/>
- <xs:attribute name="ModuleGuid" type="GuidType" use="optional"/>
- <xs:attribute name="ModuleVersion" type="VersionDataType" use="optional"/>
- <!-- DO NOT USE remove Package from use, Start using PackageName instead -->
- <xs:attribute name="Package" type="xs:string" use="optional"/>
- <xs:attribute name="PackageGuid" type="GuidType" use="optional"/>
- <xs:attribute name="PackageName" type="BaseNameConvention" use="optional"/>
- <xs:attribute name="PackageVersion" type="VersionDataType" use="optional"/>
- <xs:attribute name="Usage" type="LibraryUsage" use="optional"/>
- <!-- DO NOT USE remove Version from use, Start using ModuleVersion instead -->
- <xs:attribute name="Version" type="VersionDataType" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <xs:attribute name="OverrideID" type="xs:int" 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="Name" type="KeywordType" use="optional"/>
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="MsaGuidAttributes">
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <xs:attribute name="Usage" type="GuidUsage" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="ModuleNameAttributes">
- <xs:attribute name="Guid" type="GuidType" use="required"/>
- <!-- DO NOT USE remove Guid from use, Start using ModuleGuid instead -->
- <xs:attribute name="ModuleGuid" type="GuidType" use="required"/>
- <xs:attribute name="ModuleVersion" type="VersionDataType" use="optional"/>
- <!-- DO NOT USE remove Version from use, Start using ModuleVersion instead -->
- <xs:attribute name="Version" type="VersionDataType" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="ModuleNameSaAttributes">
- <!-- DO NOT USE remove Guid from use, Start using ModuleGuid instead -->
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <xs:attribute name="ModuleGuid" type="GuidType" use="required"/>
- <xs:attribute name="ModuleName" type="xs:NCName" use="required"/>
- <xs:attribute name="ModuleVersion" type="VersionDataType" use="optional"/>
- <!-- DO NOT USE remove Version from use, Start using ModuleVersion instead -->
- <xs:attribute name="Version" type="VersionDataType" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="FfsAttributes">
- <xs:attribute name="FfsFormatKeyword" type="FfsNameType" 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="MsaAttributes">
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <xs:attribute name="BuildSequence" type="xs:int" use="optional"/>
- <xs:attribute name="FvBinding" type="xs:string" use="optional"/>
- <xs:attribute name="ModuleName" type="xs:NCName" use="optional"/>
- <xs:attribute name="ModuleGuid" type="GuidType" use="optional"/>
- <xs:attribute name="ModuleVersion" type="VersionDataType" use="optional"/>
- <xs:attribute name="PackageVersion" type="VersionDataType" use="optional"/>
- <xs:attribute name="PackageName" type="BaseNameConvention" use="optional"/>
- <xs:attribute name="PackageGuid" type="GuidType" 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="ToolCommand" type="ToolsNameConvention" use="optional"/>
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <!-- DO NOT USE remove EnableFeature from use -->
- <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
- <!-- LAH Does an Option need to have FeatureFlag Attribute? -->
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <xs:attribute name="Platform" type="PlatformNamingConvention" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="PackageHeaderAttributes">
- <xs:attribute name="ModuleType" type="ModuleTypeDef" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="PackageAttributes">
- <xs:attribute name="PackageGuid" type="GuidType" use="optional"/>
- <xs:attribute name="PackageVersion" type="VersionDataType" use="optional"/>
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <xs:attribute name="PackageType" type="PackageType" use="optional"/>
- <xs:attribute name="UpdatedDate" type="DateType" use="optional"/>
- <xs:attribute name="Usage" type="PackageUsage" use="optional"/>
- </xs:attributeGroup>
- <!-- PackageNameAttributres are only used in the Package Dependencies section of an SPD file. -->
- <xs:attributeGroup name="PackageNameAttributes">
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <!-- DO NOT USE remove Guid and start using PackageGuid instead -->
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <!-- CHANGE PackageGuid to REQUIRED in final -->
- <xs:attribute name="PackageGuid" type="GuidType" use="optional"/>
- <!-- DO NOT USE remove PackageTypeDependency from Use -->
- <!-- PackageTypeDepencency is used to identify if a SOURCE or BINARY PackageType is required, in case PackageGuid and/or PackageVersion are not tracked. -->
- <xs:attribute name="PackageTypeDependency" type="PackageType" use="optional"/>
- <xs:attribute name="PackageVersion" type="xs:string" use="optional"/>
- <!-- DO NOT USE remove Version and start using PackageVersion instead -->
- <xs:attribute name="Version" type="VersionDataType" 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:documentation xml:lang="en">Only NON FEATURE_FLAG PCDS should have the FeatureFlag attribute set.</xs:documentation>
- </xs:annotation>
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <!-- DO NOT USE remove EnableFeature from use -->
- <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <xs:attribute name="ItemType" type="PcdItemTypes" use="required"/>
- <xs:attribute name="PcdUsage" type="PcdUsage" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <xs:attribute name="OverrideID" type="xs:int" 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">
- <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="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <xs:attribute name="SupModuleTypes" type="ModuleTypeList" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="PlatformAttributes">
- <!-- DO NOT USE remove AlternateName from use -->
- <xs:attribute name="AlternateName" type="FileNameConvention" use="optional"/>
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <!-- DO NOT USE remove Guid from use -->
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <xs:attribute name="PlatformName" type="PlatformNamingConvention" use="optional"/>
- <xs:attribute name="PlatformGuid" type="GuidType" use="optional"/>
- <xs:attribute name="PlatformVersion" type="xs:string" use="optional"/>
- <!-- DO NOT USE remove Version and start using PlatformVersion instead -->
- <xs:attribute name="Version" type="VersionDataType" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="PpiDeclarationAttributes">
- <xs:attribute name="Name" type="UiNameType" use="required"/>
- <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="PpiAttributes">
- <!-- Make Usage REQUIRED in final -->
- <xs:attribute name="Usage" type="PpiUsage" use="optional"/>
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <!-- DO NOT USE remove EnableFeature from use -->
- <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
- <!-- DO NOT USE remove Guid from use -->
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="PpiNotifyAttributes">
- <!-- Make Usage REQUIRED in final -->
- <xs:attribute name="Usage" type="PpiNotifyUsage" use="optional"/>
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <!-- DO NOT USE remove EnableFeature from use -->
- <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
- <!-- DO NOT USE remove Guid from use -->
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="ProtocolAttributes">
- <!-- Make Usage REQUIRED in final -->
- <xs:attribute name="Usage" type="ProtocolUsage" use="optional"/>
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <!-- DO NOT USE remove Arch from use, use SupArchList instead-->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <!-- DO NOT USE remove EnableFeature from use -->
- <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
- <!-- DO NOT USE remove Guid from use -->
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="ProtocolDeclarationAttributes">
- <xs:attribute name="Name" type="UiNameType" use="required"/>
- <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="ProtocolNotifyAttributes">
- <!-- Make Usage REQUIRED in final -->
- <xs:attribute name="Usage" type="ProtocolNotifyUsage" use="optional"/>
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <!-- DO NOT USE remove Guid from use -->
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <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="BindingOrder" type="xs:int" use="optional"/>
- <xs:attribute default="true" name="Compressible" type="xs:boolean" use="optional"/>
- <!-- DO NOT USE remove EnableFeature from use -->
- <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
- <!-- LAH Does a Section need to have FeatureFlag Attribute? -->
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <xs:attribute name="SectionType" type="EfiSectionType" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <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 FeatureFlag</xs:documentation>
- </xs:annotation>
- <xs:attribute name="EncapsulationType" type="xs:normalizedString" use="optional"/>
- <xs:attribute name="EncapsulationTag" type="xs:string" use="optional"/>
- <!-- DO NOT USE remove EnableFeature from use -->
- <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
- <!-- LAH Does a Filename need to have FeatureFlag Attribute? -->
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="SystemTableAttributes">
- <!-- Make Usage REQUIRED in final -->
- <xs:attribute name="Usage" type="SystemTableUsage" use="optional"/>
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <!-- DO NOT USE remove EnableFeature from use -->
- <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
- <!-- DO NOT USE remove Guid from use -->
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <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">
- <!-- Make Usage REQUIRED in final -->
- <xs:attribute name="Usage" type="VariableUsage" use="optional"/>
- <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
- <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
- <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
- <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
- <!-- DO NOT USE remove EnableFeature from use -->
- <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
- <!-- DO NOT USE remove Guid from use -->
- <xs:attribute name="Guid" type="GuidType" use="optional"/>
- <!-- DO NOT USE remove OverrideID from use -->
- <xs:attribute name="OverrideID" type="xs:int" 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="FvRegionNameAttributes">
- <xs:attribute name="BaseAddressPcdCName" type="C_NameType" use="required"/>
- <xs:attribute name="BaseAddressPcdTokenSpaceGuid" type="GuidType" use="optional"/>
- </xs:attributeGroup>
+ <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">
+ <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="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="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="EncapsulationTag" 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>
diff --git a/Tools/XMLSchema/FrameworkDataElements.xsd b/Tools/XMLSchema/FrameworkDataElements.xsd index 4bf1ee1..59bdcbd 100644 --- a/Tools/XMLSchema/FrameworkDataElements.xsd +++ b/Tools/XMLSchema/FrameworkDataElements.xsd @@ -1,6 +1,6 @@ <?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: FrameworkDataElements.xsd
Copyright (c) 2006, Intel Corp.
@@ -12,1823 +12,957 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-->
+ <xs:annotation>
+ <xs:documentation xml:lang="en"> This schema defines EFI and Framework Data Elements </xs:documentation>
+ </xs:annotation>
+ <xs:include schemaLocation="NamingConvention.xsd"/>
+ <xs:include schemaLocation="FrameworkDataTypes.xsd"/>
+ <xs:include schemaLocation="FrameworkPlatformDataTypes.xsd"/>
+ <xs:include schemaLocation="FrameworkDataAttributes.xsd"/>
+ <xs:element name="Abstract" type="Sentence">
<xs:annotation>
- <xs:documentation xml:lang="en"> This schema defines EFI and Framework Data Elements </xs:documentation>
+ <xs:documentation xml:lang="en">Abstract is valid for all Description Files</xs:documentation>
+ <xs:documentation xml:lang="en">This section is required. This is a single sentence to describe the module and will be used in sample files as the abstract data in the header comment section.</xs:documentation>
</xs:annotation>
- <xs:include schemaLocation="NamingConvention.xsd"/>
- <xs:include schemaLocation="FrameworkDataTypes.xsd"/>
- <xs:include schemaLocation="FrameworkPlatformDataTypes.xsd"/>
- <xs:include schemaLocation="FrameworkDataAttributes.xsd"/>
- <xs:element name="Abstract" type="Sentence">
- <xs:annotation>
- <xs:documentation xml:lang="en">Abstract is valid for all Description Files</xs:documentation>
- <xs:documentation xml:lang="en">This section is required. This is a single sentence to describe the module and will be used in sample files as the abstract data in the header comment section.</xs:documentation>
- </xs:annotation>
- </xs:element>
- <xs:element name="AntCmd">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is a sub-element of AntTask</xs:documentation>
- <xs:documentation xml:lang="en">This is an ant command that will be inserted into a biuld sequence. Since ant commands are valid XML statements, special care must be taken to use the correct tokens for reserved words and escape quote characters.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="Id" type="xs:int"/>
- <xs:element name="ExecutionOrder">
- <xs:simpleType>
- <xs:list itemType="xs:normalizedString"/>
- </xs:simpleType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="AntTask">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is a sub-element of UserDefinedAntTasks</xs:documentation>
- <xs:documentation xml:lang="en">Define a file that contains one or more ant tasks that are to be added into or replacing of sequences of build steps. These files will be called using the ant-call task on a file name. These files must be valid apache-ant formatted task files.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:choice>
- <xs:element ref="AntCmd"/>
- <xs:element ref="Filename"/>
- </xs:choice>
- <xs:attribute name="Id" type="xs:int" use="required"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="BaseName">
- <xs:annotation>
- <xs:documentation xml:lang="en">BaseName is valid for all Description Files</xs:documentation>
- <xs:documentation xml:lang="en"> We need to be able to permit different attributes for every basename </xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ </xs:element>
+ <xs:element name="AntTask">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This is a sub-element of UserDefinedAntTasks</xs:documentation>
+ <xs:documentation xml:lang="en">Define a file that contains one or more ant tasks that are to be added into or replacing of sequences of build steps. These files will be called using the ant-call task on a file name. These files must be valid apache-ant formatted task files.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="1" name="AntCmdOptions" type="xs:normalizedString"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="Filename" type="PathAndFilename"/>
+ </xs:sequence>
+ <xs:attribute name="Id" type="xs:int" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="BootModes">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">BootModes is valid for all Description Files</xs:documentation>
+ <xs:documentation xml:lang="en">This is a list of BootModes Supported by the Module</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="BootMode">
+ <xs:complexType>
+ <xs:sequence minOccurs="0">
+ <xs:element name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="BootModeAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="BuildOptions">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">BuildOptions is valid for FPD files.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="1" ref="UserDefinedAntTasks"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="Options"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>
+ <!-- The following sections are legacy and will be removed -->
+ <xs:element minOccurs="0" maxOccurs="1" name="OutputDirectory">
+ <xs:complexType>
<xs:simpleContent>
- <xs:extension base="BaseNameConvention">
- <xs:attributeGroup ref="BaseNameAttributes"/>
- </xs:extension>
+ <xs:extension base="xs:anyURI">
+ <xs:attribute default="UNIFIED" name="IntermediateDirectories" use="optional">
+ <xs:simpleType>
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="MODULE"/>
+ <xs:enumeration value="UNIFIED"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:extension>
</xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <xs:element name="BootModes">
- <xs:annotation>
- <xs:documentation xml:lang="en">BootModes is valid for all Description Files</xs:documentation>
- <xs:documentation xml:lang="en">This is a list of BootModes Supported by the Module</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="1" maxOccurs="unbounded">
- <xs:element name="BootMode">
- <xs:complexType>
- <xs:sequence minOccurs="0">
- <xs:element name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="BootModeAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="BuildOptions">
- <xs:annotation>
- <xs:documentation xml:lang="en">BuildOptions is valid for MBD and FPD files.</xs:documentation>
- <xs:documentation xml:lang="en">Specific Build Options, by Tool Chain, than should be applied, overriding any global options</xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ </xs:complexType>
+ </xs:element>
+ <xs:element minOccurs="0" maxOccurs="unbounded" name="Ffs">
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" ref="UserDefinedAntTasks"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="ImageEntryPoint"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="OutputDirectory"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="Ffs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Sections"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="Filenames"/>
- <xs:element ref="Options" minOccurs="0" maxOccurs="1"/>
- <xs:sequence minOccurs="0">
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Option">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="xs:normalizedString">
- <xs:attributeGroup ref="OptionAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <!-- Arch element should be removed - use Arch attributes to the above instead. -->
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
- <xs:complexType>
- <xs:sequence minOccurs="1">
- <xs:element maxOccurs="unbounded" name="Option">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="xs:normalizedString">
- <xs:attributeGroup ref="OptionAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attribute name="ArchType" type="SupportedArchitectures"/>
- </xs:complexType>
+ <xs:element minOccurs="0" maxOccurs="unbounded" name="Attribute">
+ <xs:complexType>
+ <xs:attribute name="Name" type="C_NameType"/>
+ <xs:attribute name="Value" type="C_NameType"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element minOccurs="0" maxOccurs="1" name="Sections">
+ <xs:complexType>
+ <xs:sequence minOccurs="1">
+ <xs:element name="Section" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref=" Filenames " minOccurs="0"/>
+ <xs:element name="Args" type=" ArgsType " minOccurs="0"/>
+ <xs:element name="OutFile" type=" FileNameConvention " minOccurs="0"/>
+ <xs:element name="OutputFileExtension" type=" xs:string " minOccurs="0"/>
+ <xs:element name="ToolName" type=" ToolType " minOccurs="0"/>
+ </xs:sequence>
+ <xs:attributeGroup ref=" SectionsAttributes "/>
+ </xs:complexType>
</xs:element>
- </xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>
- </xs:sequence>
- <xs:attribute name="ToolChain" type="ToolChains"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="Options">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="unbounded" ref="Option"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Option">
- <!-- This element is used to store flags from the Tools -->
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="xs:normalizedString">
- <xs:attributeGroup ref="OptionAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <xs:element name="ModuleBuildOptions">
- <xs:complexType>
- <xs:sequence>
- <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax" namespace="##local"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="ModuleSaBuildOptions">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="FvBinding" type="FfsNameType"/>
- <!-- The FfsFileNameGuid allows the Platform Integrator to specify a GUID for the FFS File Name GUID -->
- <xs:element minOccurs="0" maxOccurs="1" name="FfsFileNameGuid" type="GuidType"/>
- <!-- If binding is specified, you MUST specify the FfsFormatKey -->
- <xs:element minOccurs="0" maxOccurs="1" name="FfsFormatKey" type="FfsNameType"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Options"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="ModuleDefinitions">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="SupportedArchitectures" type="ArchListType"/>
- <xs:element minOccurs="1" maxOccurs="1" name="BinaryModule" type="xs:boolean" default="false"/>
- <xs:element minOccurs="1" maxOccurs="1" name="OutputFileBasename" type="FileNameConvention"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="C_Name" type="C_Name">
- <xs:annotation>
- <xs:documentation xml:lang="en">C_Name is valid for all Description Files</xs:documentation>
- </xs:annotation>
- </xs:element>
- <xs:element name="ComponentName" type="C_Name">
- <xs:annotation>
- <xs:documentation xml:lang="en">ComponentName is valid for all Description Files</xs:documentation>
- </xs:annotation>
- </xs:element>
- <xs:element name="ComponentType" type="FrameworkComponentTypes">
- <xs:annotation>
- <xs:documentation xml:lang="en">Describe the valid Framework Component Type</xs:documentation>
- </xs:annotation>
- </xs:element>
- <xs:element name="ConditionalExpression">
- <!-- DO NOT USE remove and use FeatureFlag instead -->
- <xs:annotation>
- <xs:documentation xml:lang="en">A conditional expression that must be evaluated to determine whether a feature is implemented or not. The expression must be either numeric, string or boolean.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="unbounded" name="Condition" type="xs:normalizedString"/>
- </xs:sequence>
- <xs:attribute name="ConditionalTarget" type="ConditionalTarget" use="optional"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="Constructor" type="C_Name"/>
- <xs:element name="Copyright" type="Sentence"/>
- <xs:element name="Created" type="DateType"/>
- <xs:element name="CreatedDate" type="DateType"/>
- <xs:element name="CreatedBy" type="UserName"/>
- <xs:element name="DataHubs">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is a list of DataHubRecord elements.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="1" maxOccurs="unbounded">
- <xs:element name="DataHubRecord">
- <xs:complexType mixed="true">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="DataHubCName" type="C_NameType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="DataHubAttributes"/>
- </xs:complexType>
- </xs:element>
- <!-- Remove Arch and use Arch Attribute for DataHubRecord instead. -->
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="DataHubRecord">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="xs:normalizedString">
- <xs:attributeGroup ref="DataHubAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attribute name="ArchType" type="SupportedArchitectures"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="DatabaseName">
- <xs:annotation>
- <xs:documentation xml:lang="en">The Name of the Database, "FrameworkDatabase"</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="BaseNameConvention">
- <xs:attributeGroup ref="BaseNameAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <xs:element name="DefaultValue">
- <xs:annotation>
- <xs:documentation xml:lang="en">The default setting of a PCD entry.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="xs:normalizedString"/>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <xs:element name="Description" type="Paragraph">
- <xs:annotation>
- <xs:documentation xml:lang="en">This section is required for new modules and libraries and must contain more information than the Abstract.</xs:documentation>
- </xs:annotation>
- </xs:element>
- <xs:element name="Destructor" type="C_Name"/>
- <xs:element name="DriverBinding" type="C_Name"/>
- <xs:element name="DriverConfig" type="C_Name"/>
- <xs:element name="DriverDiag" type="C_Name"/>
- <xs:element name="E-Mail" type="E-Mail"/>
- <xs:element name="Events">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is a list of MSA Events</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="CreateEvents">
- <xs:complexType>
- <xs:sequence minOccurs="1" maxOccurs="unbounded">
- <xs:element minOccurs="0" maxOccurs="unbounded" name="EventTypes">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="EventType" type="EventTypes"/>
- <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="EventAttributes"/>
- </xs:complexType>
- </xs:element>
- <xs:element minOccurs="0" name="Event">
- <xs:complexType>
- <xs:sequence>
- <xs:choice>
- <xs:element minOccurs="0" maxOccurs="1" name="GuidC_Name" type="C_NameType"/>
- <!-- DO NOT USE, removing C_Name in final -->
- <xs:element minOccurs="0" maxOccurs="1" ref="C_Name"/>
- </xs:choice>
- <!-- DO NOT USE, removing Guid and GuidValue from Final -->
- <xs:choice minOccurs="0">
- <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
- </xs:choice>
- </xs:sequence>
- <xs:attributeGroup ref="EventAttributes"/>
- </xs:complexType>
- </xs:element>
- <!-- Remove Arch Section and use Arch Attribute instead in Event. -->
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Event">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
- <xs:choice minOccurs="0">
- <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
- </xs:choice>
- </xs:sequence>
- <xs:attributeGroup ref="EventAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attribute name="ArchType" type="SupportedArchitectures"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element minOccurs="0" maxOccurs="1" name="SignalEvents">
- <xs:annotation>
- <xs:documentation xml:lang="en">Module has an event that is waiting to be signaled. Event is named by GUID.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ <xs:element name="Sections" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
- <xs:element minOccurs="0" maxOccurs="unbounded" name="EventTypes">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="EventType" type="EventTypes"/>
- <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="EventAttributes"/>
- </xs:complexType>
- </xs:element>
- <xs:element minOccurs="0" name="Event">
- <xs:complexType>
- <xs:sequence>
- <xs:choice>
- <xs:element minOccurs="0" maxOccurs="1" name="GuidC_Name" type="C_NameType"/>
- <!-- DO NOT USE, removing C_Name in final -->
- <xs:element minOccurs="0" maxOccurs="1" ref="C_Name"/>
- </xs:choice>
- <!-- DO NOT USE, removing Guid and GuidValue from Final -->
- <xs:choice minOccurs="0">
- <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
- </xs:choice>
- </xs:sequence>
- <xs:attributeGroup ref="EventAttributes"/>
- </xs:complexType>
- </xs:element>
- <!-- Remove Arch and use Arch attribute in Event above -->
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Event">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
- </xs:sequence>
- <xs:attributeGroup ref="EventAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attribute name="ArchType" type="SupportedArchitectures"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="ExitBootServicesCallBack" type="C_Name"/>
- <xs:element name="Externs">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is a child of MSA files.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ <xs:element name="Section">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref=" Filenames " minOccurs="0"/>
+ <xs:element name="Args" type=" ArgsType " minOccurs="0"/>
+ <xs:element name="OutFile" type=" FileNameConvention " minOccurs="0"/>
+ <xs:element name="OutputFileExtension" type=" xs:string " minOccurs="0"/>
+ <xs:element name="ToolName" type=" ToolType " minOccurs="0"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="SectionsAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attributeGroup ref=" SectionsAttributes "/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attributeGroup ref=" SectionsAttributes "/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="FfsKey" type="KeywordType" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element minOccurs="0" maxOccurs="1" name="Sections">
+ <xs:complexType>
<xs:sequence minOccurs="1">
- <xs:element minOccurs="0" maxOccurs="1" name="PcdIsDriver" type="PcdDriverTypes"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Specification" type="Sentence"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Extern">
- <xs:complexType>
- <xs:choice minOccurs="1">
- <xs:sequence minOccurs="0" maxOccurs="1">
- <xs:annotation>
- <xs:documentation xml:lang="en">Driver Module</xs:documentation>
- </xs:annotation>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="ModuleEntryPoint"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="ModuleUnloadImage"/>
- </xs:sequence>
- <xs:sequence minOccurs="0" maxOccurs="1">
- <xs:annotation>
- <xs:documentation xml:lang="en">Library Module</xs:documentation>
- </xs:annotation>
- <xs:element minOccurs="0" maxOccurs="1" ref="Constructor"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Destructor"/>
- </xs:sequence>
- <xs:sequence minOccurs="0" maxOccurs="1">
- <xs:annotation>
- <xs:documentation xml:lang="en">Allow multiple entries for DriverBinding, ComponentName, DriverConfig and DriverDiag elements. For ComponentName, DriverConfig and/or DriverDiag - you must have a 1:1 mapping to DriverBinding if the element is defined.</xs:documentation>
- <xs:documentation xml:lang="en">Permit User Defined Extern Tags</xs:documentation>
- </xs:annotation>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="DriverBinding"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="ComponentName"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="DriverConfig"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="DriverDiag"/>
- </xs:sequence>
- <xs:sequence minOccurs="0" maxOccurs="1">
- <xs:annotation>
- <xs:documentation xml:lang="en"> Module Call Backs</xs:documentation>
- </xs:annotation>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="SetVirtualAddressMapCallBack"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="ExitBootServicesCallBack"/>
- </xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="UserDefined" type="C_Name"/>
- </xs:choice>
- <xs:attributeGroup ref="ExternAttributes"/>
- </xs:complexType>
- </xs:element>
- <!-- Remove Arch and use Arch Attribute in above. -->
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Extern">
- <xs:complexType>
- <xs:choice minOccurs="1">
- <xs:sequence minOccurs="0" maxOccurs="1">
- <xs:annotation>
- <xs:documentation xml:lang="en">Driver Module</xs:documentation>
- </xs:annotation>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="ModuleEntryPoint"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="ModuleUnloadImage"/>
- </xs:sequence>
- <xs:sequence minOccurs="0" maxOccurs="1">
- <xs:annotation>
- <xs:documentation xml:lang="en">Library Module</xs:documentation>
- </xs:annotation>
- <xs:element minOccurs="0" maxOccurs="1" ref="Constructor"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Destructor"/>
- </xs:sequence>
- <xs:sequence minOccurs="0" maxOccurs="1">
- <xs:annotation>
- <xs:documentation xml:lang="en">Allow multiple entries for DriverBinding, ComponentName, DriverConfig and DriverDiag elements. For ComponentName, DriverConfig and/or DriverDiag - you must have a 1:1 mapping to DriverBinding if the element is defined.</xs:documentation>
- <xs:documentation xml:lang="en">Permit User Defined Extern Tags</xs:documentation>
- </xs:annotation>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="DriverBinding"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="ComponentName"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="DriverConfig"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="DriverDiag"/>
- </xs:sequence>
- <xs:sequence minOccurs="0" maxOccurs="1">
- <xs:annotation>
- <xs:documentation xml:lang="en"> Module Call Backs</xs:documentation>
- </xs:annotation>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="SetVirtualAddressMapCallBack"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="ExitBootServicesCallBack"/>
- </xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="UserDefined" type="C_Name"/>
- </xs:choice>
- <xs:attributeGroup ref="ExternAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attribute name="ArchType" type="SupportedArchitectures"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Ffs">
- <xs:annotation>
- <xs:documentation xml:lang="en">Define the FFS File attributes within a sections and containing sections information</xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ <xs:element name="Section" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref=" Filenames " minOccurs="0"/>
+ <xs:element name="Args" type=" ArgsType " minOccurs="0"/>
+ <xs:element name="OutFile" type=" FileNameConvention " minOccurs="0"/>
+ <xs:element name="OutputFileExtension" type=" xs:string " minOccurs="0"/>
+ <xs:element name="ToolName" type=" ToolType " minOccurs="0"/>
+ </xs:sequence>
+ <xs:attributeGroup ref=" SectionsAttributes "/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Sections" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence minOccurs="1" maxOccurs="unbounded">
+ <xs:element name="Section">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref=" Filenames " minOccurs="0"/>
+ <xs:element name="Args" type=" ArgsType " minOccurs="0"/>
+ <xs:element name="OutFile" type=" FileNameConvention " minOccurs="0"/>
+ <xs:element name="OutputFileExtension" type=" xs:string " minOccurs="0"/>
+ <xs:element name="ToolName" type=" ToolType " minOccurs="0"/>
+ </xs:sequence>
+ <xs:attributeGroup ref=" SectionsAttributes "/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attributeGroup ref=" SectionsAttributes "/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attributeGroup ref=" SectionsAttributes "/>
+ </xs:complexType>
+ </xs:element>
+ <!-- Remove to Here -->
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Copyright" type="Paragraph"/>
+ <xs:element name="DataHubs">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This is a list of DataHubRecord elements.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="DataHubRecord">
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Attribute">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="Name" type="C_Name"/>
- <xs:element minOccurs="1" maxOccurs="1" name="Value" type="C_Name"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element minOccurs="0" maxOccurs="1" ref="Sections"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Filename">
- <xs:annotation>
- <xs:documentation xml:lang="en">Describe the valid content of a filename This should extend PathAndFilename - Variable names not allowed here!</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="PathAndFilename">
- <xs:attributeGroup ref="FilenameAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <xs:element name="Filenames">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is a list of Filenames</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="1">
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="Filename"/>
- <!-- DO NOT USE Arch remove it element and use Arch Attribute to Filename instead -->
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
- <xs:complexType>
- <xs:sequence minOccurs="1">
- <xs:element maxOccurs="unbounded" ref="Filename"/>
- </xs:sequence>
- <xs:attribute name="ArchType" type="SupportedArchitectures"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Formsets">
- <xs:annotation>
- <xs:documentation xml:lang="en">Describe the list of a Formset elements</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="1" maxOccurs="unbounded">
- <xs:element name="Formset">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="C_Name">
- <xs:attributeGroup ref="FormsetAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <!-- DO NOT USE! removing Arch element, use Arch attribute in Formset instead. -->
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Formset">
- <xs:annotation>
- <xs:documentation xml:lang="en">Describe the valid content of a Formset</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="C_Name">
- <xs:attributeGroup ref="FormsetAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attribute name="ArchType" type="SupportedArchitectures"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Guid">
- <xs:annotation>
- <xs:documentation xml:lang="en">Describe the valid content of a GUID</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="GuidType">
- <xs:attributeGroup ref="GuidAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <xs:element name="GuidDeclarations">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is a child of PackageSurfaceArea (SPD) </xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="1" name="DataHubCName" type="C_NameType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="DataHubAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="DefaultValue">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">The default setting of a PCD entry.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:normalizedString"/>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Description" type="Paragraph">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This section is required for new modules and libraries and must contain more information than the Abstract.</xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="DynamicPcdBuildDefinitions">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Child of Framework Platform Description (FPD)</xs:documentation>
+ <xs:documentation xml:lang="en">FPD uses this PCD information for Dynamic PCDs Only</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="PcdBuildData">
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="1" maxOccurs="unbounded" name="Entry">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="C_Name" type="C_NameType"/>
- <xs:choice minOccurs="1">
- <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
- </xs:choice>
- <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="GuidDeclarationAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Guids">
- <xs:complexType>
- <xs:sequence minOccurs="1" maxOccurs="unbounded">
- <xs:element minOccurs="0" maxOccurs="unbounded" name="GuidCNames">
- <xs:annotation>
- <xs:documentation xml:lang="en">Describe the valid content of a GUID element in and MSA file.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="GuidCName" type="C_NameType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="GuidAttributes"/>
- </xs:complexType>
- </xs:element>
- <xs:element minOccurs="0" name="GuidEntry">
- <xs:annotation>
- <xs:documentation xml:lang="en">Describe the valid content of a GUID element in and MSA file.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="0" maxOccurs="1">
- <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
- <!-- DO NOT USE removing GuidValue from use -->
- <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
- <!-- DO NOT USE removing FeatureFlag from use, use FeatureFlag Attribute instead -->
- <xs:element minOccurs="0" maxOccurs="unbounded" name="FeatureFlag" type="C_Name"/>
- <!-- DO NOT USE remove ConditionalExpression and use FeatureFlag instead -->
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="ConditionalExpression"/>
- <!-- DO NOT USE, remove DefaultValue from use -->
- <xs:element minOccurs="0" maxOccurs="1" ref="DefaultValue"/>
- <!-- DO NOT USE, remove HelpText from use -->
- <xs:element minOccurs="0" maxOccurs="1" ref="HelpText"/>
- </xs:sequence>
- <xs:attributeGroup ref="GuidAttributes"/>
- </xs:complexType>
- </xs:element>
- <!-- DO NOT USE Arch, Arch should be removed and the attribute Arch should be used in the above. -->
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="GuidEntry">
- <xs:annotation>
- <xs:documentation xml:lang="en">Describe the valid content of a PCD GUID element</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="0" maxOccurs="1">
- <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="FeatureFlag" type="C_Name"/>
- <!-- DO NOT USE remove ConditionalExpression and use FeatureFlag instead -->
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="ConditionalExpression"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="DefaultValue"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="HelpText"/>
- </xs:sequence>
- <xs:attributeGroup ref="GuidAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attribute name="ArchType" type="SupportedArchitectures"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="GuidValue" type="GuidType"/>
- <xs:element name="HelpText" type="Paragraph"/>
- <xs:element name="HiiPackages">
- <xs:annotation>
- <xs:documentation xml:lang="en">Describe the list of a HiiPackage elements</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="1" maxOccurs="unbounded">
- <xs:element name="HiiPackage">
- <xs:complexType mixed="true">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="HiiCName" type="C_NameType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="HiiPackageAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Hobs">
- <xs:complexType>
- <xs:sequence minOccurs="1" maxOccurs="unbounded">
- <xs:element minOccurs="0" maxOccurs="unbounded" name="HobTypes">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="HobType" type="HobTypes"/>
- <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="HobAttributes"/>
- </xs:complexType>
- </xs:element>
- <xs:element minOccurs="0" name="Hob">
- <xs:complexType>
- <xs:sequence>
- <xs:choice>
- <!-- Remove Name from use -->
- <xs:element minOccurs="0" maxOccurs="1" name="Name" type="xs:normalizedString"/>
- <xs:element minOccurs="0" maxOccurs="1" name="GuidC_Name" type="C_NameType"/>
- </xs:choice>
- <!-- Remove C_Name from use -->
- <xs:element minOccurs="0" maxOccurs="1" ref="C_Name"/>
- <!-- Remove Guid and GuidValue from use -->
- <xs:choice minOccurs="0">
- <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
- </xs:choice>
- </xs:sequence>
- <xs:attributeGroup ref="HobAttributes"/>
- </xs:complexType>
- </xs:element>
- <!-- DO NOT USE Arch, use attribute Arch for Hob in above -->
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Hob">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="Name" type="xs:normalizedString"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="C_Name"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
- </xs:sequence>
- <xs:attributeGroup ref="HobAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attribute name="ArchType" type="SupportedArchitectures"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="ImageEntryPoint" type="C_Name"/>
- <xs:element name="IncludeHeader">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="PathAndFilename">
- <!-- Need to use IncludeHeaderAttributes in final -->
- <xs:attributeGroup ref="IncludeAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <xs:element name="Includes">
- <xs:annotation>
- <xs:documentation xml:lang="en">One or More Package Names or Arch sections is required. Includes are not files, but paths to where header files are located.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="1" maxOccurs="unbounded">
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="PackageName"/>
- <!-- remove Arch element, start using the Arch attribute for the PackageName element above. -->
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
- <xs:complexType>
- <xs:sequence minOccurs="1">
- <xs:element maxOccurs="unbounded" ref="PackageName"/>
- </xs:sequence>
- <xs:attribute name="ArchType" type="SupportedArchitectures"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="IndustryStdIncludes">
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="1" name="C_Name" type="C_NameType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="Token" type="TokenDataType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="TokenSpaceGuidCName" type="C_NameType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="DatumType" type="PcdDataTypes"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="MaxDatumSize" type="DatumSizeLimitation"/>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="SkuInfo">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="SkuId" type="xs:nonNegativeInteger"/>
+ <xs:choice>
+ <xs:group minOccurs="0" maxOccurs="1" ref="HiiEnable"/>
+ <xs:group minOccurs="0" maxOccurs="1" ref="VpdEnable"/>
+ <xs:group minOccurs="0" maxOccurs="1" ref="DefaultGroup"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attributeGroup ref="DynamicBuildPcdAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Events">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This is a list of MSA Events</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="1" name="CreateEvents">
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="1" maxOccurs="unbounded" ref="IndustryStdHeader"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="IndustryStdHeader">
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="EventTypes">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="EventType" type="EventTypes"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="EventAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element minOccurs="0" maxOccurs="1" name="SignalEvents">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Module has an event that is waiting to be signaled. Event is named by GUID.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="Header" type="UiNameType"/>
- <xs:element minOccurs="1" maxOccurs="1" name="IncludeHeader" type="PathAndFilename"/>
- <xs:element minOccurs="1" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="IndustryStdHeaderAttributes"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="InstalledDate" type="DateType"/>
- <xs:element name="Libraries">
- <xs:annotation>
- <xs:documentation xml:lang="en">Different (Module) Instances of Libraries used ONLY in FPD Files.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="1">
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Library">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="xs:NCName">
- <xs:attributeGroup ref="LibraryAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <!-- remove Arch Element HERE, start using the Arch attribute in Library element above. -->
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
- <xs:complexType>
- <xs:choice minOccurs="1" maxOccurs="unbounded">
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Library">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="BaseNameConvention">
- <xs:attributeGroup ref="LibraryAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- </xs:choice>
- <xs:attribute name="ArchType" type="SupportedArchitectures"/>
- </xs:complexType>
- </xs:element>
- <!-- /remove Arch Element -->
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Instance">
- <xs:complexType>
- <xs:attributeGroup ref="LibraryAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="LibraryClass">
- <xs:annotation>
- <xs:documentation xml:lang="en">Used in MSA files. This defines what class of library is being supported = produced (library module) or consumed by a module.</xs:documentation>
- </xs:annotation>
- <xs:complexType mixed="true">
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="EventTypes">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="EventType" type="EventTypes"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="EventAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Externs">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This is a child of MSA files.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence minOccurs="1">
+ <xs:element minOccurs="0" maxOccurs="1" name="PcdIsDriver" type="PcdDriverTypes"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" name="Specification" type="Sentence"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" name="Extern">
+ <xs:complexType>
+ <xs:choice minOccurs="1">
+ <xs:sequence>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Driver Module</xs:documentation>
+ </xs:annotation>
+ <xs:element minOccurs="0" maxOccurs="1" name="ModuleEntryPoint" type="C_NameType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="ModuleUnloadImage" type="C_NameType"/>
+ </xs:sequence>
+ <xs:sequence>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Library Module</xs:documentation>
+ </xs:annotation>
+ <xs:element minOccurs="0" maxOccurs="1" name="Constructor" type="C_NameType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="Destructor" type="C_NameType"/>
+ </xs:sequence>
+ <xs:sequence>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Allow multiple entries for DriverBinding, ComponentName, DriverConfig and DriverDiag elements. For ComponentName, DriverConfig and/or DriverDiag - you must have a 1:1 mapping to DriverBinding if the element is defined.</xs:documentation>
+ <xs:documentation xml:lang="en">Permit User Defined Extern Tags</xs:documentation>
+ </xs:annotation>
+ <xs:element minOccurs="0" maxOccurs="1" name="DriverBinding" type="C_NameType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="ComponentName" type="C_NameType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="DriverConfig" type="C_NameType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="DriverDiag" type="C_NameType"/>
+ </xs:sequence>
+ <xs:sequence>
+ <xs:annotation>
+ <xs:documentation xml:lang="en"> Module Call Backs</xs:documentation>
+ </xs:annotation>
+ <xs:element minOccurs="0" maxOccurs="1" name="SetVirtualAddressMapCallBack" type="C_NameType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="ExitBootServicesCallBack" type="C_NameType"/>
+ </xs:sequence>
+ </xs:choice>
+ <xs:attributeGroup ref="ExternAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Filename">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Describe the valid content of a filename This should extend PathAndFilename - Variable names not allowed here!</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="PathAndFilename">
+ <xs:attributeGroup ref="FilenameAttributes"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Filenames">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This is a list of Filenames</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence minOccurs="1">
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="Filename"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="GuidDeclarations">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This is a child of PackageSurfaceArea (SPD) </xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="Entry">
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="Keyword" type="KeywordType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="LibraryClassAttributes"/>
- </xs:complexType>
- </xs:element>
- <!-- LAH This is LibraryClassDeclaration FINAL version -->
- <xs:element name="LibraryClassDeclaration">
- <xs:annotation>
- <xs:documentation xml:lang="en">This element defines a class of library, along with the path to the Include Header for this library</xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="1" name="C_Name" type="C_NameType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="GuidValue" type="GuidType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="GuidDeclarationAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Guids">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="GuidCNames">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Describe the valid content of a GUID element in and MSA file.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="LibraryClass">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="xs:NCName">
- <xs:attribute name="RecommendedInstanceGuid" type="GuidType" use="optional"/>
- <xs:attribute name="RecommendedInstanceVersion" type="xs:decimal" use="optional"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <xs:element minOccurs="0" maxOccurs="1" ref="IncludeHeader"/>
- <xs:element minOccurs="0" maxOccurs="1" name="RecommendedInstanceGuid" type="GuidType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="RecommendedInstanceVersion" type="xs:decimal"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="HelpText"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <!-- LAH This is LibraryClassDeclarations FINAL version -->
- <xs:element name="LibraryClassDeclarations">
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="1" name="GuidCName" type="C_NameType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="GuidAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="HiiPackages">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Describe the list of a HiiPackage elements</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="HiiPackage">
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="1" maxOccurs="unbounded" ref="LibraryClassDeclaration"/>
- <xs:element name="LibraryClass" minOccurs="0" maxOccurs="unbounded">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="IncludeHeader" type="PathAndFilename"/>
- <xs:element minOccurs="1" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="LibraryClassAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="LibraryClassDefinitions">
- <xs:annotation>
- <xs:documentation xml:lang="en">This section defines what Classes of Library that this library supports. A Library may belong to multiple different library classes.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="1" name="HiiCName" type="C_NameType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="HiiPackageAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Hobs">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="HobTypes">
+ <xs:complexType>
<xs:sequence>
- <xs:element ref="LibraryClass" minOccurs="1" maxOccurs="unbounded"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="License">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="Paragraph">
- <xs:attribute name="URL" type="xs:anyURI" use="optional"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <xs:element name="Modified" type="DateType"/>
- <xs:element name="ModifiedDate" type="DateType"/>
- <xs:element name="Module">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is record format for a Module entry in the Framework Database file.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:annotation>
- <xs:documentation xml:lang="en">This describes the fields in an Module record in the Framework Database. The Path field is relative to the workspace to Module Surface Area (MSA) files.</xs:documentation>
- </xs:annotation>
+ <xs:element minOccurs="1" maxOccurs="1" name="HobType" type="HobTypes"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="HobAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="IncludeHeader">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="PathAndFilename">
+ <xs:attributeGroup ref="IncludeHeaderAttributes"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="IndustryStdIncludes">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" ref="IndustryStdHeader"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="IndustryStdHeader">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="IncludeHeader" type="PathAndFilename"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="IndustryStdHeaderAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Libraries">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Different (Module) Instances of Libraries used ONLY in FPD Files.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="Instance">
+ <xs:complexType>
+ <xs:attributeGroup ref="LibraryAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="LibraryClass">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Used in MSA files. This defines what class of library is being supported = produced (library module) or consumed by a module.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="Keyword" type="KeywordType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="LibraryClassAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- LAH This is SPD LibraryClassDeclarations FINAL version -->
+ <xs:element name="LibraryClassDeclarations">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="LibraryClass">
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" ref="ModuleName"/>
- <xs:choice minOccurs="1">
- <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
- </xs:choice>
- <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Path"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="ModuleEntryPoint" type="xs:normalizedString"/>
- <xs:element name="ModuleList">
- <xs:annotation>
- <xs:documentation xml:lang="en">This tag is used in the Framework Package Database File to track package installation</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence maxOccurs="unbounded">
- <xs:element minOccurs="1" maxOccurs="unbounded" ref="Module"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="ModuleName">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is the valid content of a Module Name</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="xs:NCName">
- <xs:attributeGroup ref="ModuleNameAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <xs:element name="ModuleType" type="ModuleTypeDef">
- <xs:annotation>
- <xs:documentation xml:lang="en">Describe the valid EFI Phase that the Module is designed to execute under.</xs:documentation>
- </xs:annotation>
- </xs:element>
- <xs:element name="ModuleUnloadImage" type="xs:normalizedString"/>
- <xs:element name="MsaFiles">
- <xs:complexType>
- <xs:choice minOccurs="1" maxOccurs="unbounded">
- <xs:sequence minOccurs="1">
- <xs:element minOccurs="0" maxOccurs="unbounded" name="MsaFile">
- <xs:annotation>
- <xs:documentation xml:lang="en">Surface Area Package Description (SPD) list of Module Surface Area files</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="0" maxOccurs="1">
- <xs:element minOccurs="0" ref="Filename"/>
- <xs:element minOccurs="0" ref="BuildOptions"/>
- </xs:sequence>
- <xs:attributeGroup ref="MsaAttributes"/>
- </xs:complexType>
- </xs:element>
- <!-- DO NOT USE Arch element, use attribute Arch in above. -->
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
- <xs:complexType>
- <xs:sequence minOccurs="1">
- <xs:element maxOccurs="unbounded" name="MsaFile">
- <xs:annotation>
- <xs:documentation xml:lang="en">Describe the valid content of a Surface Area Package Description (SPD) file</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="0" maxOccurs="1">
- <xs:element minOccurs="0" ref="Filename"/>
- <xs:element minOccurs="0" ref="BuildOptions"/>
- </xs:sequence>
- <xs:attributeGroup ref="MsaAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attribute name="ArchType" type="SupportedArchitectures"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Filename" type="PathAndFilename"/>
- </xs:choice>
- </xs:complexType>
- </xs:element>
- <!-- Use in Final -->
- <xs:element name="MsaFileList">
- <xs:annotation>
- <xs:documentation xml:lang="en">Surface Area Package Description (SPD) list of Module Surface Area files</xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="1" name="IncludeHeader" type="PathAndFilename"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="LibraryClassDeclarationAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="LibraryClassDefinitions">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This section defines what Classes of Library that this library supports. A Library may belong to multiple different library classes.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" ref="LibraryClass"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="License">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="Paragraph">
+ <xs:attribute name="URL" type="xs:anyURI" use="optional"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="ModuleBuildOptions">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax" namespace="##local"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="ModuleSaBuildOptions">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="1" name="FvBinding" type="KeywordType"/>
+ <!-- The FfsFileNameGuid allows the Platform Integrator to specify a GUID for the FFS File Name GUID -->
+ <xs:element minOccurs="0" maxOccurs="1" name="FfsFileNameGuid" type="GuidType"/>
+ <!-- If binding is specified, you MUST specify the FfsFormatKey -->
+ <xs:element minOccurs="0" maxOccurs="1" name="FfsFormatKey" type="KeywordType"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="Options"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="ModuleDefinitions">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="SupportedArchitectures" type="ArchListType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="BinaryModule" type="xs:boolean" default="false"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="OutputFileBasename" type="FileNameConvention"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="ClonedFrom">
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Filename" type="PathAndFilename"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="OutputDirectory">
- <xs:annotation>
- <xs:documentation xml:lang="en">Define where we want our output to go. The Attribute, IntermediateDirectories, default MODULE, says that intermediate files will be local to the module, versus a unified directory structure.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="Cloned">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="PackageGuid" type="GuidType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="PackageVersion" type="VersionDataType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="ModuleGuid" type="GuidType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="ModuleVersion" type="VersionDataType"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="ModuleType" type="ModuleTypeDef">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Describe the valid EFI Phase that the Module is designed to execute under.</xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- Use in Final -->
+ <xs:element name="MsaFiles">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">MsaFiles is a child of Surface Area Package Description (SPD) files</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="Filename" type="PathAndFilename"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Options">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" ref="Option"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Option">
+ <!-- This element is used to store flags from the Tools -->
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:normalizedString">
+ <xs:attributeGroup ref="OptionAttributes"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="PackageDefinitions">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="ReadOnly" type="xs:boolean" default="false"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="RePackage" type="xs:boolean" default="false"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="ClonedFrom">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="Cloned">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="PackageGuid" type="GuidType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="PackageVersion" type="VersionDataType"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="PackageDependencies">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This tag is used in the Module Surface Area Description File (MSA) to track package dependencies for a module.</xs:documentation>
+ <xs:documentation xml:lang="en">Attributes to PackageName include Required: Usage PackageGuid PackageVesion, Optional: FeatureFlag</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="Package">
+ <xs:complexType>
+ <xs:attributeGroup ref="PackageAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="PackageHeaders">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">PackageHeaders is a child of PackageSurfaceArea (SPD) </xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="IncludePkgHeader">
+ <xs:complexType>
<xs:simpleContent>
- <xs:extension base="DirectoryNamingConvention">
- <xs:attribute default="MODULE" name="IntermediateDirectories">
- <xs:simpleType>
- <xs:restriction base="UCNameType">
- <xs:enumeration value="MODULE"/>
- <xs:enumeration value="UNIFIED"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- </xs:extension>
+ <xs:extension base="PathAndFilename">
+ <xs:attributeGroup ref="PackageHeaderAttributes"/>
+ </xs:extension>
</xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <xs:element name="ProcessStep">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="ToolName" type="xs:string"/>
- <xs:element minOccurs="1" maxOccurs="1" name="ToolArgs" type="xs:string"/>
- <!-- Input patterns to be processed by the tool above -->
- <xs:element minOccurs="1" maxOccurs="unbounded" name="InputPattern" type="xs:string"/>
- <!-- A pattern to match for the output -->
- <xs:element minOccurs="1" maxOccurs="1" name="OutputPattern" type="xs:string"/>
- </xs:sequence>
- <xs:attributeGroup ref="ProcessStepAttributes"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="FfsFormatDeclarations">
- <xs:complexType>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="PackageList">
+ <!-- Valid for DB usage only! -->
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This tag is used in the Framework Package Database File to track all packages (SPD files) installed in a workspace. (Database)</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="Filename" type="DbPathAndFilename"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <!-- PcdBuildDefinition is a child of FPD ModuleSA element for FIXED_AT_BUILD, PATCHABLE_IN_MODULE, and FEATURE_FLAG PCDS Only! -->
+ <xs:element name="PcdBuildDefinition">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Child of FPD ModuleSA element for FIXED_AT_BUILD, PATCHABLE_IN_MODULE, and FEATURE_FLAG PCDS Only!</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="PcdData">
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="1" maxOccurs="unbounded" name="FfsFormatDeclaration">
- <!-- Required Attributes are the FfsFormatKeyword and SupModuleList -->
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="unbounded" ref="ProcessStep"/>
- </xs:sequence>
- <xs:attributeGroup ref="FfsAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="PackageDefinitions">
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="1" name="C_Name" type="C_NameType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="Token" type="TokenDataType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="TokenSpaceGuidCName" type="C_NameType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="DatumType" type="PcdDataTypes"/>
+ <!-- MaxDatumSize is only required if the DatumType is VOID* -->
+ <xs:element minOccurs="0" maxOccurs="1" name="MaxDatumSize" type="DatumSizeLimitation"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="Value" type="DefaultValueType"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="PcdBuildDefinitionAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:group name="DefaultGroup">
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="Value" type="DefaultValueType"/>
+ </xs:sequence>
+ </xs:group>
+ <xs:group name="HiiEnable">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">If HiiEnable group is specified, then HiiEnable is default true</xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="VariableName" type="HexWordArrayType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="VariableGuid" type="C_NameType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="VariableOffset" type="Hex64BitDataType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="HiiDefaultValue" type="DefaultValueType"/>
+ </xs:sequence>
+ </xs:group>
+ <xs:group name="VpdEnable">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">If VpdEnable group is specified, then VpdEnable is default true</xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="VpdOffset" type="Hex64BitDataType"/>
+ </xs:sequence>
+ </xs:group>
+ <xs:element name="PcdCoded">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Child of Module Surface Area Description (MSA)</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="PcdEntry">
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="ReadOnly" type="xs:boolean" default="false"/>
- <xs:element minOccurs="1" maxOccurs="1" name="RePackage" type="xs:boolean" default="false"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="PCDs">
- <!-- PCDs section is going away to be replaced by something else TB Named later -->
- <xs:annotation>
- <xs:documentation xml:lang="en">Child of Module Surface Area documents, MSA and MBD files, Library Modules and Other Modules</xs:documentation>
- <xs:documentation xml:lang="en">One or more PcdData or PcdBuildData Elements Only one type is permitted</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="1">
- <xs:element maxOccurs="unbounded" name="PcdData">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is a child of PCDs and can occur in the MSA and MBD files.</xs:documentation>
- <xs:documentation xml:lang="en">This is date element is used in the Module Surface Area (MSA) file and contains references to be used by a Platform Build</xs:documentation>
- <xs:documentation xml:lang="en">There is ONE required Attribute, ItemType</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
- <xs:element minOccurs="1" maxOccurs="1" name="Token" type="HexDoubleWordDataType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="TokenSpaceGuid" type="GuidType"/>
- <xs:element minOccurs="1" maxOccurs="1" name="DatumType" type="PcdDataTypes"/>
- <xs:element default="false" minOccurs="0" maxOccurs="1" name="HiiEnable" type="xs:boolean"/>
- <xs:element default="false" minOccurs="0" maxOccurs="1" name="VpdEnable" type="xs:boolean"/>
- <xs:element default="false" minOccurs="0" maxOccurs="1" name="AlternateNameSpaceEnable" type="xs:boolean"/>
- <xs:element default="false" minOccurs="0" maxOccurs="1" name="SkuEnable" type="xs:boolean"/>
- <xs:element default="false" minOccurs="0" maxOccurs="1" name="SkuDataArrayEnable" type="xs:boolean"/>
- <xs:element default="0x00" minOccurs="0" maxOccurs="1" name="MaxSku" type="HexByteDataType"/>
- <xs:element default="0x00" minOccurs="0" maxOccurs="1" name="SkuId" type="HexByteDataType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="DatumSize" type="DatumSizeLimitation"/>
- <xs:element minOccurs="0" maxOccurs="1" name="VariableName" type="xs:normalizedString"/>
- <xs:element minOccurs="0" maxOccurs="1" name="VariableGuid" type="VariableGuidType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="DataOffset" type="Hex64BitDataType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="GuidOffset" type="Hex64BitDataType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="DefaultValue" type="xs:normalizedString"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="HelpText"/>
- </xs:sequence>
- <xs:attributeGroup ref="PcdAttributes"/>
- <xs:attribute name="PcdIsDriver" use="optional"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="PackageDependencies">
- <xs:annotation>
- <xs:documentation xml:lang="en">This tag is used in the Package Surface Area Description File (SPD) to track package dependencies for a module</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence maxOccurs="unbounded">
- <xs:choice>
- <xs:element minOccurs="1" maxOccurs="unbounded" ref="Package"/>
- <xs:element minOccurs="1" maxOccurs="unbounded" ref="PackageName"/>
- </xs:choice>
- </xs:sequence>
- <xs:attributeGroup ref="PackageNameAttributes"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="PackageHeaders">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is a child of PackageSurfaceArea (SPD) </xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="1" name="C_Name" type="C_NameType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="TokenSpaceGuidCName" type="C_NameType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="DefaultValue" type="DefaultValueType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <!-- MSA file declares a single usage, and must match one of the entries in what the SPD file declares as the set of possible Item Types. -->
+ <xs:attributeGroup ref="PcdCodedAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <!-- LAH This is PcdDeclarations FINAL version -->
+ <xs:element name="PcdDeclarations">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">PcdDeclaratins is a child of Package Surface Area Description (SPD)</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence minOccurs="1">
+ <xs:element maxOccurs="unbounded" name="PcdEntry">
+ <xs:complexType>
<xs:sequence>
- <xs:choice>
- <!-- DO NOT USE! removing IncludeHeader, use IncludePkgHeader instead. -->
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="IncludeHeader"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="IncludePkgHeader">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="PathAndFilename">
- <xs:attributeGroup ref="PackageHeaderAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- </xs:choice>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="PackageList">
- <xs:annotation>
- <xs:documentation xml:lang="en">This tag is used in the Framework Package Database File to track all packages installed in a workspace. (Database)</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence maxOccurs="unbounded">
- <xs:element minOccurs="0" name="Package">
- <xs:annotation>
- <xs:documentation xml:lang="en">This tag is used in the Framework Package Database File to track individual package information. The Path is a relative path to the SPD File.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence maxOccurs="unbounded">
- <xs:element minOccurs="0" maxOccurs="1" ref="PackageName"/>
- <xs:choice minOccurs="0">
- <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
- <!-- DO NOT USE Guid should be removed, use PackageGuid instead -->
- <xs:element minOccurs="0" maxOccurs="1" name="PackageGuid" type="GuidType"/>
- </xs:choice>
- <xs:choice minOccurs="0">
- <xs:element minOccurs="0" maxOccurs="1" ref="Version"/>
- <xs:element minOccurs="0" maxOccurs="1" name="PackageVersion" type="VersionDataType"/>
- </xs:choice>
- <xs:choice minOccurs="1">
- <xs:element minOccurs="0" maxOccurs="1" ref="Path"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Filename"/>
- </xs:choice>
- <xs:element minOccurs="1" maxOccurs="1" ref="InstalledDate"/>
- </xs:sequence>
- <xs:attributeGroup ref="PackageAttributes"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="Filename" type="PathAndFilename" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Package">
- <xs:annotation>
- <xs:documentation xml:lang="en">This tag is used in the Package Surface Area Description File to track package dependencies for a module (SPD) </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:attributeGroup ref="PackageAttributes"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="PackageName">
- <xs:annotation>
- <xs:documentation xml:lang="en">This tag is used in the Package Surface Area Description File to track package dependencies for a module (SPD) </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="UiNameType">
- <xs:attributeGroup ref="PackageAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <xs:element name="PackageType" type="PackageType"/>
- <xs:element name="Path">
- <xs:annotation>
- <xs:documentation xml:lang="en">Describe the valid content of a filename</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="DirectoryNamingConvention">
- <xs:attributeGroup ref="DirectoryAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <xs:element name="DynamicPcdBuildDefinitions">
- <xs:annotation>
- <xs:documentation xml:lang="en">Child of Framework Platform Description (FPD)</xs:documentation>
- <xs:documentation xml:lang="en">FPD uses this PCD information for Dynamic PCDs Only</xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="1" name="C_Name" type="C_NameType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="Token" type="TokenDataType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="TokenSpaceGuidCName" type="C_NameType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="DatumType" type="PcdDataTypes"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="ValidUsage" type="PcdListType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="DefaultValue" type="DefaultValueType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="PcdDeclarationAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="FarList">
+ <!-- Valid for DB usage only! -->
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This tag is used in the Framework Package Database File to track all DISTRIBUTION packages (FAR files) installed in a workspace. (Database)</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="Filename" type="DbPathAndFilename"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="FfsFormatDeclarations">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="FfsFormatDeclaration">
+ <!-- Required Attributes are the FfsFormatKeyword and SupModuleList -->
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="1" maxOccurs="unbounded" name="PcdBuildData">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="C_Name" type="C_NameType"/>
- <xs:element minOccurs="1" maxOccurs="1" name="Token" type="TokenDataType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="TokenSpaceGuid" type="GuidType"/>
- <xs:element minOccurs="1" maxOccurs="1" name="DatumType" type="PcdDataTypes"/>
- <xs:element minOccurs="0" maxOccurs="1" name="MaxDatumSize" type="DatumSizeLimitation"/>
- <xs:element minOccurs="1" maxOccurs="unbounded" name="SkuInfo">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="SkuId" type="xs:nonNegativeInteger"/>
- <xs:choice>
- <xs:group minOccurs="0" maxOccurs="1" ref="HiiEnable"/>
- <xs:group minOccurs="0" maxOccurs="1" ref="VpdEnable"/>
- <xs:group minOccurs="0" maxOccurs="1" ref="DefaultGroup"/>
- </xs:choice>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attributeGroup ref="DynamicBuildPcdAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="PcdBuildDefinition">
- <xs:annotation>
- <xs:documentation xml:lang="en">Child of FPD ModuleSA element for FIXED_AT_BUILD, PATCHABLE_IN_MODULE, and FEATURE_FLAG PCDS Only!</xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="unbounded" ref="ProcessStep"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="FfsAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="PpiDeclarations">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">PpiDeclarations is a child of PackageSurfaceArea (SPD) </xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="Entry">
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="1" maxOccurs="unbounded" name="PcdData">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="C_Name" type="C_NameType"/>
- <xs:element minOccurs="1" maxOccurs="1" name="Token" type="TokenDataType"/>
- <xs:element minOccurs="1" maxOccurs="1" name="TokenSpaceGuid" type="GuidType"/>
- <xs:element minOccurs="1" maxOccurs="1" name="DatumType" type="PcdDataTypes"/>
- <!-- MaxDatumSize is only required if the DatumType is VOID* -->
- <xs:element minOccurs="0" maxOccurs="1" name="MaxDatumSize" type="DatumSizeLimitation"/>
- <xs:element minOccurs="0" maxOccurs="1" name="Value" type="DefaultValueType"/>
- </xs:sequence>
- <xs:attributeGroup ref="PcdBuildDefinitionAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:group name="DefaultGroup">
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="Value" type="DefaultValueType"/>
- </xs:sequence>
- </xs:group>
- <xs:group name="HiiEnable">
- <xs:annotation>
- <xs:documentation xml:lang="en">If HiiEnable group is specified, then HiiEnable is default true</xs:documentation>
- </xs:annotation>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="VariableName" type="VariableNameDataType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="VariableGuid" type="C_NameType"/>
- <xs:element minOccurs="1" maxOccurs="1" name="VariableOffset" type="Hex64BitDataType"/>
- <xs:element minOccurs="1" maxOccurs="1" name="HiiDefaultValue" type="DefaultValueType"/>
- </xs:sequence>
- </xs:group>
- <xs:group name="VpdEnable">
- <xs:annotation>
- <xs:documentation xml:lang="en">If VpdEnable group is specified, then VpdEnable is default true</xs:documentation>
- </xs:annotation>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="VpdOffset" type="Hex64BitDataType"/>
- </xs:sequence>
- </xs:group>
- <xs:element name="PcdCoded">
- <xs:annotation>
- <xs:documentation xml:lang="en">Child of Module Surface Area Description (MSA)</xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="1" name="C_Name" type="C_NameType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="GuidValue" type="GuidType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="PpiDeclarationAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="PPIs">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Provide for one or more Ppi or PpiNotify sections. </xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence minOccurs="1">
+ <xs:element minOccurs="0" maxOccurs="unbounded" name="Ppi">
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="1" maxOccurs="unbounded" name="PcdEntry">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is the valid content of the PCD table of a Module. The contents may not be wired at build time, and these only refer to Platform Build values, not modules.</xs:documentation>
- <xs:documentation xml:lang="en">This element is valid for PcdInfo.xml and FPD files.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="C_Name" type="C_NameType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="TokenSpaceGuidCName" type="C_NameType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="DefaultValue" type="DefaultValueType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <!-- MSA file declares a single usage, and must match one of the entries in what the SPD file declares as the set of possible Item Types. -->
- <xs:attributeGroup ref="PcdCodedAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <!-- LAH This is PcdDeclarations FINAL version -->
- <xs:element name="PcdDeclarations">
- <xs:annotation>
- <xs:documentation xml:lang="en">Child of Package Surface Area Description (SPD)</xs:documentation>
- <xs:documentation xml:lang="en">This section is for entering information about a package's PCDs</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="1">
- <xs:element maxOccurs="unbounded" name="PcdEntry">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="C_Name" type="C_NameType"/>
- <xs:element minOccurs="1" maxOccurs="1" name="Token" type="TokenDataType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="TokenSpaceGuidCName" type="C_NameType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="TokenSpaceGuid" type="GuidType"/>
- <xs:element minOccurs="1" maxOccurs="1" name="DatumType" type="PcdDataTypes"/>
- <xs:element minOccurs="1" maxOccurs="1" name="ValidUsage" type="PcdListType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="DefaultValue" type="DefaultValueType"/>
- <xs:element minOccurs="1" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="PcdDeclarationAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <!-- DO NOT USE removing PcdDefinitions, use PcdDeclarations for SPD entries Use PcdBuildDeclarations for MSA Entires and PcdDynamicBuildDeclarations for FPD Entries -->
- <xs:element name="PcdDefinitions">
- <xs:annotation>
- <xs:documentation xml:lang="en">Child of Package Surface Area Description (SPD)</xs:documentation>
- <xs:documentation xml:lang="en">This permits entering information about a package's PCD information</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="1">
- <xs:element maxOccurs="unbounded" name="PcdEntry">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is the valid content of the PCD table of a Module. The contents may not be wired at build time, and these only refer to Platform Build values, not modules.</xs:documentation>
- <xs:documentation xml:lang="en">This element is valid for PcdInfo.xml and FPD files.</xs:documentation>
- <xs:documentation xml:lang="en">There is ONE required Attribute, ItemType</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" ref="C_Name"/>
- <xs:element minOccurs="1" maxOccurs="1" name="Token" type="Token"/>
- <xs:element minOccurs="0" maxOccurs="1" name="TokenSpaceGuid" type="GuidType"/>
- <xs:element minOccurs="1" maxOccurs="1" name="DatumType" type="PcdDataTypes"/>
- <xs:element default="false" minOccurs="0" maxOccurs="1" name="HiiEnable" type="xs:boolean"/>
- <xs:element default="false" minOccurs="0" maxOccurs="1" name="VpdEnable" type="xs:boolean"/>
- <xs:element default="false" minOccurs="0" maxOccurs="1" name="AlternateNameSpaceEnable" type="xs:boolean"/>
- <xs:element default="false" minOccurs="0" maxOccurs="1" name="SkuEnable" type="xs:boolean"/>
- <xs:element default="false" minOccurs="0" maxOccurs="1" name="SkuDataArrayEnable" type="xs:boolean"/>
- <xs:element default="0x00" minOccurs="0" maxOccurs="1" name="MaxSku" type="HexByteDataType"/>
- <xs:element default="0x00" minOccurs="0" maxOccurs="1" name="SkuId" type="HexByteDataType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="DatumSize">
- <xs:annotation>
- <xs:documentation xml:lang="en">Max Number of Bytes of the data.</xs:documentation>
- </xs:annotation>
- <xs:simpleType>
- <xs:restriction base="xs:int">
- <xs:minInclusive value="1"/>
- <xs:maxInclusive value="16777215"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element minOccurs="0" maxOccurs="1" name="VariableName" type="xs:normalizedString"/>
- <xs:element minOccurs="0" maxOccurs="1" name="VariableGuid" type="VariableGuidType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="DataOffset" type="Hex64BitDataType"/>
- <xs:element default="0" minOccurs="0" maxOccurs="1" name="GuidOffset" type="Hex64BitDataType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="DefaultValue" type="DefaultValueType"/>
- </xs:sequence>
- <xs:attributeGroup ref="PcdAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Platform">
- <xs:annotation>
- <xs:documentation xml:lang="en">Database Entry to locate the Platform Build Tips - path to FPD file.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="1" name="PpiCName" type="C_NameType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="PpiAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element minOccurs="0" maxOccurs="unbounded" name="PpiNotify">
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="PlatformName">
- <xs:annotation>
- <xs:documentation xml:lang="en">Define the Name of a Platform</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="PlatformNamingConvention">
- <xs:attributeGroup ref="PlatformAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <xs:choice minOccurs="0">
- <xs:element minOccurs="0" maxOccurs="1" ref="Path"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Filename"/>
- </xs:choice>
- <xs:element minOccurs="0" maxOccurs="1" ref="InstalledDate"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>
- <xs:element minOccurs="0" maxOccurs="1" name="AlternatePcdFile" type="FileNameConvention"/>
- <xs:element minOccurs="0" maxOccurs="1" name="AlternateFdfFile" type="FileNameConvention"/>
- </xs:sequence>
- <xs:attributeGroup ref="PlatformAttributes"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="PpiDeclarations">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is a child of PackageSurfaceArea (SPD) </xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="1" name="PpiNotifyCName" type="C_NameType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="PpiNotifyAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="ProtocolDeclarations">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">ProtocolDeclarations is a child of PackageSurfaceArea (SPD) </xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="Entry">
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="1" maxOccurs="unbounded" name="Entry">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="C_Name" type="C_NameType"/>
- <xs:choice>
- <!-- DO NOT USE removing Guid in final, use GuidValue instead -->
- <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
- </xs:choice>
- <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="PpiDeclarationAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="PPIs">
- <xs:annotation>
- <xs:documentation xml:lang="en">Provide for one or more Ppi or PpiNotify sections. </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="1">
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Ppi">
- <xs:complexType mixed="true">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="PpiCName" type="C_NameType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="PpiAttributes"/>
- </xs:complexType>
- </xs:element>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="PpiNotify">
- <xs:complexType mixed="true">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="PpiNotifyCName" type="C_NameType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="PpiNotifyAttributes"/>
- </xs:complexType>
- </xs:element>
- <!-- DO NOT USE Arch element, use Arch Attribute in above instead. -->
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Ppi">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="C_Name">
- <xs:attributeGroup ref="PpiAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="PpiNotify">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="C_Name">
- <xs:attributeGroup ref="PpiNotifyAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attribute name="ArchType" type="SupportedArchitectures"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="ProtocolDeclarations">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is a child of PackageSurfaceArea (SPD) </xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="1" name="C_Name" type="C_NameType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="GuidValue" type="GuidType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="ProtocolDeclarationAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Protocols">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">If either Protocol or ProtocolNotify sections are needed, one or more of them should be specified within this section</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" name="Protocol">
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="1" maxOccurs="unbounded" name="Entry">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="C_Name" type="C_NameType"/>
- <xs:choice>
- <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
- </xs:choice>
- <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="ProtocolDeclarationAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Protocols">
- <xs:annotation>
- <xs:documentation xml:lang="en">If either Protocol or ProtocolNotify sections are needed, one or more of them should be specified within this section</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="1" maxOccurs="unbounded">
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Protocol">
- <xs:complexType mixed="true">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="ProtocolCName" type="C_NameType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="ProtocolAttributes"/>
- </xs:complexType>
- </xs:element>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="ProtocolNotify">
- <xs:complexType mixed="true">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="ProtocolNotifyCName" type="C_NameType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="ProtocolNotifyAttributes"/>
- </xs:complexType>
- </xs:element>
- <!-- DO NOT USE! removing Arch element, use Arch attribute of Protocol or ProtocolNotify instead. -->
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Protocol">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="C_NameType">
- <xs:attributeGroup ref="ProtocolAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="ProtocolNotify">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="C_NameType">
- <xs:attributeGroup ref="ProtocolNotifyAttributes"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attribute name="ArchType" type="SupportedArchitectures"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element default="false" name="ReadOnly" type="xs:boolean"/>
- <xs:element default="false" name="RePackage" type="xs:boolean"/>
- <xs:element name="Sections">
- <xs:annotation>
- <xs:documentation xml:lang="en">Sections refers to the Firmware Filesystem sections, PE32, UI, VER, DXS, etc. and how they are made</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="1">
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Section">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" ref="Filenames"/>
- <xs:element minOccurs="0" name="Args" type="ArgsType"/>
- <xs:element minOccurs="0" name="OutFile" type="FileNameConvention"/>
- <xs:element minOccurs="0" name="OutputFileExtension" type="xs:string"/>
- <xs:element minOccurs="0" name="ToolName" type="ToolType"/>
- </xs:sequence>
- <xs:attributeGroup ref="SectionAttributes"/>
- </xs:complexType>
- </xs:element>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Sections">
- <xs:complexType>
- <xs:sequence minOccurs="1" maxOccurs="unbounded">
- <xs:element name="Section">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" ref="Filenames"/>
- <xs:element minOccurs="0" name="Args" type="ArgsType"/>
- <xs:element minOccurs="0" name="OutFile" type="FileNameConvention"/>
- <xs:element minOccurs="0" name="OutputFileExtension" type="xs:string"/>
- <xs:element minOccurs="0" name="ToolName" type="ToolType"/>
- </xs:sequence>
- <xs:attributeGroup ref="SectionAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attributeGroup ref="SectionsAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attributeGroup ref="SectionsAttributes"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="SetVirtualAddressMapCallBack" type="C_Name"/>
- <xs:element name="SourceFiles">
- <xs:annotation>
- <xs:documentation xml:lang="en">Multiple Filenames may be specified, and they may also be scoped to a specific Architecture.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="1">
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="Filename"/>
- <!-- DO NOT USE! removing Arch element, use Arch Attribute of Filename instead. -->
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
- <xs:complexType>
- <xs:sequence minOccurs="1">
- <xs:element maxOccurs="unbounded" ref="Filename"/>
- </xs:sequence>
- <xs:attribute name="ArchType" type="SupportedArchitectures"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="SkuInfo">
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="1" name="ProtocolCName" type="C_NameType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="ProtocolAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element minOccurs="0" maxOccurs="unbounded" name="ProtocolNotify">
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="1" maxOccurs="unbounded" name="UiSkuName">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="UiNameType">
- <xs:attribute name="SkuID" type="xs:nonNegativeInteger" use="required"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Specification">
- <xs:annotation>
- <xs:documentation xml:lang="en">This string is used to provide the name and version of the Specification that the component conforms to.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="1" name="ProtocolNotifyCName" type="C_NameType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="ProtocolNotifyAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="ProcessStep">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="ToolName" type="xs:string"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="ToolArgs" type="xs:string"/>
+ <!-- Input patterns to be processed by the tool above -->
+ <xs:element minOccurs="0" maxOccurs="1" name="InputPattern" type="xs:string"/>
+ <!-- A pattern to match for the output -->
+ <xs:element minOccurs="1" maxOccurs="1" name="OutputPattern" type="xs:string"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="ProcessStepAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="SourceFiles">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Multiple Filenames may be specified, and they may also be scoped to a specific Architecture.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" ref="Filename"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="SkuInfo">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="UiSkuName">
+ <xs:complexType>
<xs:simpleContent>
- <xs:extension base="xs:normalizedString">
- <xs:attribute name="Version" type="xs:normalizedString" use="optional"/>
- </xs:extension>
+ <xs:extension base="UiNameType">
+ <xs:attribute name="SkuID" type="xs:nonNegativeInteger" use="required"/>
+ </xs:extension>
</xs:simpleContent>
- </xs:complexType>
- </xs:element>
- <xs:element name="SystemTables">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is list of System Table elements.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="1" maxOccurs="unbounded">
- <xs:element name="SystemTable">
- <xs:complexType>
- <xs:sequence minOccurs="1" maxOccurs="unbounded">
- <!-- Remove Entry from Use -->
- <xs:element minOccurs="0" maxOccurs="1" name="Entry" type="xs:normalizedString"/>
- </xs:sequence>
- <xs:attributeGroup ref="SystemTableAttributes"/>
- </xs:complexType>
- </xs:element>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="SystemTableCNames">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="SystemTableCName" type="C_NameType"/>
- <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
- </xs:sequence>
- <xs:attributeGroup ref="SystemTableAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Updated" type="DateType"/>
- <xs:element name="UpdatedDate" type="DateType"/>
- <xs:element name="URL" type="xs:anyURI"/>
- <xs:element name="URI" type="xs:anyURI"/>
- <xs:element name="UserDefinedAntTasks">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is a sub-element of BuildOptions</xs:documentation>
- <xs:documentation xml:lang="en">Permit Users to define their own custom ANT tasks.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence maxOccurs="unbounded">
- <xs:element minOccurs="1" ref="AntTask"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="UserExtensions">
- <xs:complexType>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="SystemTables">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This is list of System Table elements.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="SystemTableCNames">
+ <xs:complexType>
<xs:sequence>
- <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax" namespace="##local"/>
- </xs:sequence>
- <xs:attribute name="UserID" type="xs:NCName" use="required"/>
- <xs:attribute name="Identifier" type="xs:nonNegativeInteger" use="required"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="Variables">
- <xs:annotation>
- <xs:documentation xml:lang="en">An MSA FILE list of EFI Variables described by string pair.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence minOccurs="1" maxOccurs="unbounded">
- <xs:element name="Variable">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is an EFI Variable Entry</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence>
- <xs:choice>
- <!-- DO NOT USE remove String from final -->
- <xs:element minOccurs="1" maxOccurs="1" name="String" type="xs:normalizedString"/>
- <!-- Make VariableName required -->
- <xs:element minOccurs="0" maxOccurs="1" name="VariableName" type="VariableNameDataType"/>
- </xs:choice>
- <xs:choice minOccurs="1">
- <!-- DO NOT USE, use GuidC_Name instead -->
- <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
- <!-- DO NOT USE, use GuidC_Name instead -->
- <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
- <!-- Make GuidC_Name required -->
- <xs:element minOccurs="0" maxOccurs="1" name="GuidC_Name" type="C_NameType"/>
- </xs:choice>
- <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
- <!-- DO NOT USE, removiing ByteOffset, Bit Offset and OffsetBitSize-->
- <xs:element minOccurs="0" maxOccurs="1" name="ByteOffset" type="HexWordDataType">
- <xs:annotation>
- <xs:documentation xml:lang="en">This entry represents the Hex Byte Offset {0x0, 0xn} to where the data starts.</xs:documentation>
- </xs:annotation>
- </xs:element>
- <xs:element minOccurs="0" maxOccurs="1" name="BitOffset">
- <xs:annotation>
- <xs:documentation xml:lang="en">This entry represents the Location of the Starting Bit {0,8} of the start of Data. A value of zero or 1 indicates that there is no BitOffset into the byte.</xs:documentation>
- </xs:annotation>
- <xs:simpleType>
- <xs:restriction base="xs:int">
- <xs:minInclusive value="0"/>
- <xs:maxInclusive value="8"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element minOccurs="0" maxOccurs="1" name="OffsetBitSize">
- <xs:annotation>
- <xs:documentation xml:lang="en">This number represents the number of bits to use {0, 7} starting at the BitOffset. A value of 0 indicates that the entire Byte should be used.</xs:documentation>
- </xs:annotation>
- <xs:simpleType>
- <xs:restriction base="xs:int">
- <xs:minInclusive value="0"/>
- <xs:maxInclusive value="7"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- </xs:sequence>
- <xs:attributeGroup ref="VariableAttributes"/>
- </xs:complexType>
- </xs:element>
- <!-- DO NOT USE Arch element, use attribute Arch in above. -->
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Arch">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Variable">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is an EFI Variable Entry</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="String" type="xs:normalizedString"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Guid"/>
- <xs:element minOccurs="0" maxOccurs="1" name="ByteOffset" type="HexWordDataType">
- <xs:annotation>
- <xs:documentation xml:lang="en">This entry represents the Hex Byte Offset {0x0, 0xn} to where the data starts.</xs:documentation>
- </xs:annotation>
- </xs:element>
- <xs:element minOccurs="0" maxOccurs="1" name="BitOffset">
- <xs:annotation>
- <xs:documentation xml:lang="en">This entry represents the Location of the Starting Bit {0,8} of the start of Data. A value of zero or 1 indicates that there is no BitOffset into the byte.</xs:documentation>
- </xs:annotation>
- <xs:simpleType>
- <xs:restriction base="xs:int">
- <xs:minInclusive value="0"/>
- <xs:maxInclusive value="8"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element minOccurs="0" maxOccurs="1" name="OffsetBitSize">
- <xs:annotation>
- <xs:documentation xml:lang="en">This number represents the number of bits to use {0, 7} starting at the BitOffset. A value of 0 indicates that the entire Byte should be used.</xs:documentation>
- </xs:annotation>
- <xs:simpleType>
- <xs:restriction base="xs:int">
- <xs:minInclusive value="0"/>
- <xs:maxInclusive value="7"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- </xs:sequence>
- <xs:attributeGroup ref="VariableAttributes"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attribute name="ArchType" type="SupportedArchitectures"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Version" type="xs:normalizedString"/>
- <xs:element name="FarList">
- <xs:annotation>
- <xs:documentation xml:lang="en">This tag is used in the Framework Package Database File to track all DISTRIBUTION packages (FAR files) installed in a workspace. (Database)</xs:documentation>
- </xs:annotation>
- <xs:complexType>
+ <xs:element minOccurs="1" maxOccurs="1" name="SystemTableCName" type="C_NameType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="SystemTableAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="UserDefinedAntTasks">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This is a sub-element of BuildOptions</xs:documentation>
+ <xs:documentation xml:lang="en">Permit Users to define their own custom ANT tasks.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" ref="AntTask"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="UserExtensions">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax" namespace="##local"/>
+ </xs:sequence>
+ <xs:attribute name="UserID" type="xs:NCName" use="required"/>
+ <xs:attribute name="Identifier" type="xs:nonNegativeInteger" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Variables">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">An MSA FILE list of EFI Variables described by string pair.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="Variable">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This is an EFI Variable Entry</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="1" maxOccurs="unbounded" name="Filename" type="PathAndFilename"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
+ <xs:element minOccurs="1" maxOccurs="1" name="VariableName" type="HexWordArrayType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="GuidC_Name" type="C_NameType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="HelpText" type="Paragraph"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="VariableAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Version" type="VersionDataType"/>
</xs:schema>
diff --git a/Tools/XMLSchema/FrameworkDataTypes.xsd b/Tools/XMLSchema/FrameworkDataTypes.xsd index 33145ef..c6494ba 100644 --- a/Tools/XMLSchema/FrameworkDataTypes.xsd +++ b/Tools/XMLSchema/FrameworkDataTypes.xsd @@ -1,6 +1,6 @@ <?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: FrameworkDataTypes.xsd
Copyright (c) 2006, Intel Corp.
@@ -12,542 +12,557 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-->
- <xs:annotation>
- <xs:documentation xml:lang="en">This schema defines EFI and Framework Data Types. Only simpleType are specified in this file. </xs:documentation>
- </xs:annotation>
- <xs:include schemaLocation="NamingConvention.xsd"/>
- <xs:simpleType name="ArchListType">
- <xs:list itemType="SupportedArchitectures"/>
- </xs:simpleType>
- <xs:simpleType name="BlockNameType">
- <xs:restriction base="UCNameType">
- <xs:pattern value="BLOCK([A-F0-9]){2}"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="BootModeNames">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="FULL"/>
- <xs:enumeration value="MINIMAL"/>
- <xs:enumeration value="NO_CHANGE"/>
- <xs:enumeration value="DIAGNOSTICS"/>
- <xs:enumeration value="DEFAULT"/>
- <xs:enumeration value="S2_RESUME"/>
- <xs:enumeration value="S3_RESUME"/>
- <xs:enumeration value="S4_RESUME"/>
- <xs:enumeration value="S5_RESUME"/>
- <xs:enumeration value="FLASH_UPDATE"/>
- <xs:enumeration value="RECOVERY"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="BootModeUsage">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="ALWAYS_CONSUMED"/>
- <xs:enumeration value="SOMETIMES_CONSUMED"/>
- <xs:enumeration value="ALWAYS_PRODUCED"/>
- <xs:enumeration value="SOMETIMES_PRODUCED"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="ModuleListType">
- <xs:list itemType="FrameworkModuleTypes"/>
- </xs:simpleType>
- <xs:simpleType name="IntermediateOutputType">
- <xs:restriction base="UCNameType">
- <xs:enumeration value="MODULE"/>
- <xs:enumeration value="UNIFIED"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="BuildTargets">
- <xs:restriction base="xs:NCName">
- <xs:enumeration value="DEBUG"/>
- <xs:enumeration value="RELEASE"/>
- <xs:enumeration value="BOTH"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="BuildTargetList">
- <xs:union memberTypes="UCNameType DEBUG RELEASE"/>
- </xs:simpleType>
- <xs:simpleType name="DEBUG">
- <xs:restriction base="UCNameType">
- <xs:pattern value="DEBUG"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="RELEASE">
- <xs:restriction base="UCNameType">
- <xs:pattern value="RELEASE"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="ComponentExecutionPhase">
- <xs:restriction base="UCNameType">
- <xs:enumeration value="MDE"/>
- <xs:enumeration value="SEC"/>
- <xs:enumeration value="PEI_CORE"/>
- <xs:enumeration value="PEIM"/>
- <xs:enumeration value="DXE_CORE"/>
- <xs:enumeration value="DXE_DRIVER"/>
- <xs:enumeration value="DXE_RUNTIME_DRIVER"/>
- <xs:enumeration value="DXE_SAL_DRIVER"/>
- <xs:enumeration value="DXE_SMM_DRIVER"/>
- <xs:enumeration value="UEFI"/>
- <xs:enumeration value="UEFI_APPLICATION"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="ConditionalTarget">
- <xs:list itemType="C_Name"/>
- </xs:simpleType>
- <xs:simpleType name="DataHubUsage">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="ALWAYS_CONSUMED"/>
- <xs:enumeration value="SOMETIMES_CONSUMED"/>
- <xs:enumeration value="ALWAYS_PRODUCED"/>
- <xs:enumeration value="SOMETIMES_PRODUCED"/>
- <xs:enumeration value="PRIVATE"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="DateType">
- <xs:restriction base="xs:normalizedString">
- <xs:pattern value="[1-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9] [0-2][0-9]:[0-5][0-9]"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="DatumSizeLimitation">
- <xs:restriction base="xs:int">
- <xs:minInclusive value="1"/>
- <xs:maxInclusive value="16777215"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="DefaultValueType">
- <xs:union memberTypes="xs:normalizedString Hex64BitDataType UnicodeString HexByteArrayType"/>
- </xs:simpleType>
- <xs:simpleType name="EfiSectionType">
- <xs:restriction base="UCNameType">
- <xs:enumeration value="EFI_SECTION_FREEFORM_SUBTYPE_GUID"/>
- <xs:enumeration value="EFI_SECTION_VERSION"/>
- <xs:enumeration value="EFI_SECTION_USER_INTERFACE"/>
- <xs:enumeration value="EFI_SECTION_DXE_DEPEX"/>
- <xs:enumeration value="EFI_SECTION_PEI_DEPEX"/>
- <xs:enumeration value="EFI_SECTION_PE32"/>
- <xs:enumeration value="EFI_SECTION_PIC"/>
- <xs:enumeration value="EFI_SECTION_TE"/>
- <xs:enumeration value="EFI_SECTION_RAW"/>
- <xs:enumeration value="EFI_SECTION_COMPRESSION"/>
- <xs:enumeration value="EFI_SECTION_GUID_DEFINED"/>
- <xs:enumeration value="EFI_SECTION_COMPATIBILITY16"/>
- <xs:enumeration value="EFI_SECTION_FIRMWARE_VOLUME_IMAGE"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="EventTypes">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="EVENT_GROUP_GUID"/>
- <xs:enumeration value="EVENT_TYPE_PERIODIC_TIMER"/>
- <xs:enumeration value="EVENT_TYPE_RELATIVE_TIMER"/>
- <!-- DON'T USE! TO BE REMOVED -->
- <xs:enumeration value="EVENT_GROUP_EXIT_BOOT_SERVICES"/>
- <xs:enumeration value="EVENT_GROUP_VIRTUAL_ADDRESS_CHANGE"/>
- <xs:enumeration value="EVENT_GROUP_MEMORY_MAP_CHANGE"/>
- <xs:enumeration value="EVENT_GROUP_READY_TO_BOOT"/>
- <xs:enumeration value="EVENT_GROUP_LEGACY_BOOT"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="EventUsage">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="ALWAYS_CONSUMED"/>
- <xs:enumeration value="SOMETIMES_CONSUMED"/>
- <xs:enumeration value="ALWAYS_PRODUCED"/>
- <xs:enumeration value="SOMETIMES_PRODUCED"/>
- <xs:enumeration value="PRIVATE"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="ExecutionType">
- <xs:restriction base="UCNameType">
- <xs:enumeration value="REL" id="Relocatable"/>
- <xs:enumeration value="NREL" id="Non-Relocatable"/>
- <xs:enumeration value="XIP" id="Execute_In_Place"/>
- <xs:enumeration value="PIC" id="Position_Independent_Code"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="ExternType">
- <xs:restriction base="xs:string">
- <xs:pattern value="(_*\w*\W*)*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="ExternUsage">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="ALWAYS_CONSUMED"/>
- <xs:enumeration value="ALWAYS_PRODUCED"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="FileNameUsage">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="ALWAYS_CONSUMED"/>
- <xs:enumeration value="SOMETIMES_CONSUMED"/>
- <xs:enumeration value="ALWAYS_PRODUCED"/>
- <xs:enumeration value="SOMETIMES_PRODUCED"/>
- <xs:enumeration value="PRIVATE"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="FormSetUsage">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="ALWAYS_PRODUCED"/>
- <xs:enumeration value="SOMETIMES_PRODUCED"/>
- <xs:enumeration value="PRIVATE"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="FrameworkComponentTypes">
- <xs:restriction base="UCNameType">
- <xs:enumeration value="APRIORI"/>
- <xs:enumeration value="SEC"/>
- <xs:enumeration value="LIBRARY"/>
- <xs:enumeration value="FV_IMAGE_FILE"/>
- <xs:enumeration value="BS_DRIVER"/>
- <xs:enumeration value="RT_DRIVER"/>
- <xs:enumeration value="SAL_RT_DRIVER"/>
- <xs:enumeration value="PE32_PEIM"/>
- <xs:enumeration value="PIC_PEIM"/>
- <xs:enumeration value="COMBINED_PEIM_DRIVER"/>
- <xs:enumeration value="PEI_CORE"/>
- <xs:enumeration value="DXE_CORE"/>
- <xs:enumeration value="APPLICATION"/>
- <xs:enumeration value="BS_DRIVER_EFI"/>
- <xs:enumeration value="SHELLAPP"/>
- <xs:enumeration value="UEFI_APPLICATION"/>
- <xs:enumeration value="BINARY"/>
- <xs:enumeration value="LOGO"/>
- <xs:enumeration value="CUSTOM_BUILD"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="FrameworkModuleTypes">
- <xs:restriction base="ModuleTypeDef">
- <xs:enumeration value="BASE"/>
- <xs:enumeration value="SEC"/>
- <xs:enumeration value="PEI_CORE"/>
- <xs:enumeration value="PEIM"/>
- <xs:enumeration value="DXE_CORE"/>
- <xs:enumeration value="DXE_DRIVER"/>
- <xs:enumeration value="DXE_RUNTIME_DRIVER"/>
- <xs:enumeration value="DXE_SAL_DRIVER"/>
- <xs:enumeration value="DXE_SMM_DRIVER"/>
- <xs:enumeration value="UEFI_DRIVER"/>
- <xs:enumeration value="UEFI_APPLICATION"/>
- <xs:enumeration value="USER_DEFINED"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="FvRegionTypes">
- <xs:restriction base="UCNameType">
- <xs:enumeration value="FV_MAIN"/>
- <xs:enumeration value="FV_MAIN_COMPACT"/>
- <xs:enumeration value="NV_STORAGE"/>
- <xs:enumeration value="FV_RECOVERY"/>
- <xs:enumeration value="FV_RECOVERY_FLOPPY"/>
- <xs:enumeration value="FV_FILE"/>
- <xs:enumeration value="CAPSULE_CARGO"/>
- <xs:enumeration value="NULL"/>
- <xs:enumeration value="USER_DEFINED"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="GuidTypes">
- <xs:restriction base="UCNameType">
- <xs:enumeration value="DATA_HUB_RECORD"/>
- <xs:enumeration value="EFI_EVENT"/>
- <xs:enumeration value="EFI_SYSTEM_CONFIGURATION_TABLE"/>
- <xs:enumeration value="EFI_VARIABLE"/>
- <xs:enumeration value="HII_PACKAGE_LIST"/>
- <xs:enumeration value="HOB"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="GuidListType">
- <xs:list itemType="GuidTypes"/>
- </xs:simpleType>
- <xs:simpleType name="GuidUsage">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="ALWAYS_CONSUMED"/>
- <xs:enumeration value="SOMETIMES_CONSUMED"/>
- <xs:enumeration value="ALWAYS_PRODUCED"/>
- <xs:enumeration value="SOMETIMES_PRODUCED"/>
- <xs:enumeration value="DEFAULT"/>
- <xs:enumeration value="PRIVATE"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="HexByteArrayType">
- <xs:list itemType="HexByteDataType"/>
- </xs:simpleType>
- <xs:simpleType name="HexByteArrayListType">
- <xs:restriction base="xs:normalizedString">
- <xs:pattern value="((( )?0x[a-fA-F0-9]{2})(,)?)+( )?"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="HexWordArrayType">
- <xs:restriction base="xs:normalizedString">
- <xs:pattern value="((( )?0x[a-fA-F0-9]{4})(,)?)+( )?"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="HiiPackageUsage">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="ALWAYS_PRODUCED"/>
- <xs:enumeration value="SOMETIMES_PRODUCED"/>
- <xs:enumeration value="PRIVATE"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="HobTypes">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="PHIT"/>
- <xs:enumeration value="MEMORY_ALLOCATION"/>
- <xs:enumeration value="RESOURCE_DESCRIPTOR"/>
- <xs:enumeration value="GUID_EXTENSION"/>
- <xs:enumeration value="FIRMWARE_VOLUME"/>
- <xs:enumeration value="CPU"/>
- <xs:enumeration value="POOL"/>
- <xs:enumeration value="CAPSULE_VOLUME"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="HobUsage">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="ALWAYS_CONSUMED"/>
- <xs:enumeration value="SOMETIMES_CONSUMED"/>
- <xs:enumeration value="ALWAYS_PRODUCED"/>
- <xs:enumeration value="SOMETIMES_PRODUCED"/>
- <xs:enumeration value="PRIVATE"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="IntList">
- <xs:list itemType="xs:positiveInteger"/>
- </xs:simpleType>
- <xs:simpleType name="LibraryUsage">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="ALWAYS_CONSUMED"/>
- <xs:enumeration value="SOMETIMES_CONSUMED"/>
- <xs:enumeration value="ALWAYS_PRODUCED"/>
- <xs:enumeration value="SOMETIMES_PRODUCED"/>
- <xs:enumeration value="DEFAULT"/>
- <xs:enumeration value="PRIVATE"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="ModuleTypeDef">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="BASE"/>
- <xs:enumeration value="SEC"/>
- <xs:enumeration value="PEI_CORE"/>
- <xs:enumeration value="PEIM"/>
- <xs:enumeration value="DXE_CORE"/>
- <xs:enumeration value="DXE_DRIVER"/>
- <xs:enumeration value="DXE_RUNTIME_DRIVER"/>
- <xs:enumeration value="DXE_SAL_DRIVER"/>
- <xs:enumeration value="DXE_SMM_DRIVER"/>
- <xs:enumeration value="TOOLS"/>
- <xs:enumeration value="UEFI_DRIVER"/>
- <xs:enumeration value="UEFI_APPLICATION"/>
- <xs:enumeration value="USER_DEFINED"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="ModuleTypeList">
- <xs:list itemType="FrameworkModuleTypes"/>
- </xs:simpleType>
- <xs:simpleType name="Module_Unified">
- <xs:restriction base="UCNameType">
- <xs:enumeration value="MODULE"/>
- <xs:enumeration value="UNIFIED"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="PackageType">
- <xs:restriction base="UCNameType">
- <xs:enumeration value="SOURCE"/>
- <xs:enumeration value="BINARY"/>
- <xs:enumeration value="MIXED"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="PackageUsage">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="ALWAYS_CONSUMED"/>
- <xs:enumeration value="ALWAYS_PRODUCED"/>
- <xs:enumeration value="DEFAULT"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="PcdListType">
- <xs:list itemType="PcdItemTypes"/>
- </xs:simpleType>
- <xs:simpleType name="PcdTypes">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="FIXED_AT_BUILD"/>
- <xs:enumeration value="FEATURE_FLAG"/>
- <xs:enumeration value="PATCHABLE_IN_MODULE"/>
- <xs:enumeration value="DYNAMIC"/>
- <xs:enumeration value="DYNAMIC_EX"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="PcdDriverTypes">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="PEI_PCD_DRIVER"/>
- <xs:enumeration value="DXE_PCD_DRIVER"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="PcdDataTypes">
- <xs:restriction base="xs:normalizedString">
- <xs:enumeration value="UINT8"/>
- <xs:enumeration value="UINT16"/>
- <xs:enumeration value="UINT32"/>
- <xs:enumeration value="UINT64"/>
- <xs:enumeration value="VOID*"/>
- <xs:enumeration value="BOOLEAN"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="PcdFeatureFlagUsage">
- <xs:restriction base="UsageTypes">
- <xs:enumeration value="ALWAYS_PRODUCED"/>
- <xs:enumeration value="DEFAULT"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="PcdItemTypes">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="FEATURE_FLAG"/>
- <xs:enumeration value="FIXED_AT_BUILD"/>
- <xs:enumeration value="PATCHABLE_IN_MODULE"/>
- <xs:enumeration value="DYNAMIC"/>
- <xs:enumeration value="DYNAMIC_EX"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="PcdUsage">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="ALWAYS_CONSUMED"/>
- <xs:enumeration value="SOMETIMES_CONSUMED"/>
- <xs:enumeration value="ALWAYS_PRODUCED"/>
- <xs:enumeration value="SOMETIMES_PRODUCED"/>
- <xs:enumeration value="DEFAULT"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="PpiNotifyUsage">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="SOMETIMES_CONSUMED"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="PpiUsage">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="ALWAYS_CONSUMED"/>
- <xs:enumeration value="SOMETIMES_CONSUMED"/>
- <xs:enumeration value="ALWAYS_PRODUCED"/>
- <xs:enumeration value="SOMETIMES_PRODUCED"/>
- <xs:enumeration value="PRIVATE"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="ProtocolNotifyUsage">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="SOMETIMES_CONSUMED"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="ProtocolUsage">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="ALWAYS_CONSUMED"/>
- <xs:enumeration value="SOMETIMES_CONSUMED"/>
- <xs:enumeration value="ALWAYS_PRODUCED"/>
- <xs:enumeration value="SOMETIMES_PRODUCED"/>
- <xs:enumeration value="TO_START"/>
- <xs:enumeration value="BY_START"/>
- <xs:enumeration value="PRIVATE"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="SkuListType">
- <xs:list itemType="HexByteDataType"/>
- </xs:simpleType>
- <xs:simpleType name="SupportedArchitectures">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="ALL"/>
- <xs:enumeration value="EBC"/>
- <xs:enumeration value="ARM"/>
- <xs:enumeration value="IA32"/>
- <xs:enumeration value="X64"/>
- <xs:enumeration value="IPF"/>
- <xs:enumeration value="PPC"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="SystemTableUsage">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="ALWAYS_CONSUMED"/>
- <xs:enumeration value="SOMETIMES_CONSUMED"/>
- <xs:enumeration value="ALWAYS_PRODUCED"/>
- <xs:enumeration value="SOMETIMES_PRODUCED"/>
- <xs:enumeration value="PRIVATE"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="Token">
- <xs:union memberTypes="GuidArrayType GuidNamingConvention HexDoubleWordDataType"/>
- </xs:simpleType>
- <!-- TokenDataType is xs:nonNegativeInteger in final -->
- <xs:simpleType name="TokenDataType">
- <xs:union memberTypes="HexDoubleWordDataType xs:nonNegativeInteger"/>
- </xs:simpleType>
- <xs:simpleType name="ToolChains">
- <xs:restriction base="UCNameType">
- <xs:enumeration value="MSFT"/>
- <xs:enumeration value="INTEL"/>
- <xs:enumeration value="GCC"/>
- <xs:enumeration value="CYGWIN"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="ToothPick">
- <xs:restriction base="xs:normalizedString">
- <xs:enumeration value="UNIX"/>
- <xs:enumeration value="WINDOWS"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="UiNameType">
- <xs:restriction base="xs:string">
- <xs:pattern value="(([a-zA-Z][a-zA-Z0-9]*)(_)*(.)*)+"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="UnicodeString">
- <xs:restriction base="xs:normalizedString">
- <xs:pattern value="L(:)?(")(\w+)*((\W*)*(\s*)*(\w*)*)*(")"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="VariableNameDataType">
- <xs:list itemType="HexWordArrayType"/>
- </xs:simpleType>
- <xs:simpleType name="UsageTypes">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="ALWAYS_CONSUMED"/>
- <xs:enumeration value="SOMETIMES_CONSUMED"/>
- <xs:enumeration value="ALWAYS_PRODUCED"/>
- <xs:enumeration value="SOMETIMES_PRODUCED"/>
- <xs:enumeration value="TO_START"/>
- <xs:enumeration value="BY_START"/>
- <xs:enumeration value="PRIVATE"/>
- <xs:enumeration value="DEFAULT"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="VariableOffsetValues">
- <xs:restriction base="xs:string">
- <xs:pattern value="\d+(:)?\d*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="VariableUsage">
- <xs:restriction base="NameConvention">
- <xs:enumeration value="ALWAYS_CONSUMED"/>
- <xs:enumeration value="SOMETIMES_CONSUMED"/>
- <xs:enumeration value="ALWAYS_PRODUCED"/>
- <xs:enumeration value="SOMETIMES_PRODUCED"/>
- <xs:enumeration value="PRIVATE"/>
- </xs:restriction>
- </xs:simpleType>
- <!-- Complex Data Types -->
- <xs:complexType name="ArgsType">
- <xs:sequence minOccurs="0" maxOccurs="unbounded">
- <xs:element name="Arg" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="ToolType">
- <xs:sequence>
- <xs:element name="ToolName" type="xs:string"/>
- <xs:element name="ToolArgs" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- <xs:simpleType name="FfsNameType">
- <xs:annotation>
- <xs:documentation xml:lang="en"> This defines what an FFS Name can consist of.</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="[a-zA-Z][_\-a-zA-Z0-9]*(.)?[a-zA-Z0-9]*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="FeatureFlagExpressionType">
- <xs:restriction base="xs:normalizedString">
- <xs:pattern value="(\w*\W*)*"/>
- </xs:restriction>
- </xs:simpleType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This schema defines EFI and Framework Data Types. Only simpleType are specified in this file. </xs:documentation>
+ </xs:annotation>
+ <xs:include schemaLocation="NamingConvention.xsd"/>
+ <xs:simpleType name="PrimaryArchListType">
+ <xs:list itemType="SupportedArchitectures"/>
+ </xs:simpleType>
+ <xs:simpleType name="ArchListType">
+ <xs:restriction base="PrimaryArchListType">
+ <xs:minLength value="1"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="BlockNameType">
+ <xs:restriction base="UCNameType">
+ <xs:pattern value="BLOCK[A-F0-9]{2}"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="BootModeNames">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="FULL"/>
+ <xs:enumeration value="MINIMAL"/>
+ <xs:enumeration value="NO_CHANGE"/>
+ <xs:enumeration value="DIAGNOSTICS"/>
+ <xs:enumeration value="DEFAULT"/>
+ <xs:enumeration value="S2_RESUME"/>
+ <xs:enumeration value="S3_RESUME"/>
+ <xs:enumeration value="S4_RESUME"/>
+ <xs:enumeration value="S5_RESUME"/>
+ <xs:enumeration value="FLASH_UPDATE"/>
+ <xs:enumeration value="RECOVERY_FULL"/>
+ <xs:enumeration value="RECOVERY_MINIMAL"/>
+ <xs:enumeration value="RECOVERY_NO_CHANGE"/>
+ <xs:enumeration value="RECOVERY_DIAGNOSTICS"/>
+ <xs:enumeration value="RECOVERY_DEFAULT"/>
+ <xs:enumeration value="RECOVERY_S2_RESUME"/>
+ <xs:enumeration value="RECOVERY_S3_RESUME"/>
+ <xs:enumeration value="RECOVERY_S4_RESUME"/>
+ <xs:enumeration value="RECOVERY_S5_RESUME"/>
+ <xs:enumeration value="RECOVERY_FLASH_UPDATE"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="BootModeUsage">
+ <xs:restriction base="UsageTypes">
+ <xs:enumeration value="ALWAYS_CONSUMED"/>
+ <xs:enumeration value="SOMETIMES_CONSUMED"/>
+ <xs:enumeration value="ALWAYS_PRODUCED"/>
+ <xs:enumeration value="SOMETIMES_PRODUCED"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="BuildTargetList">
+ <xs:restriction base="BuildTargetUList">
+ <xs:minLength value="1"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="BuildTargetUList">
+ <xs:list itemType="BrUType"/>
+ </xs:simpleType>
+ <xs:simpleType name="BrUType">
+ <xs:union memberTypes="BrType UCNameType"/>
+ </xs:simpleType>
+ <xs:simpleType name="BrType">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="DEBUG"/>
+ <xs:enumeration value="RELEASE"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="ComponentExecutionPhase">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="MDE"/>
+ <xs:enumeration value="SEC"/>
+ <xs:enumeration value="PEI_CORE"/>
+ <xs:enumeration value="PEIM"/>
+ <xs:enumeration value="DXE_CORE"/>
+ <xs:enumeration value="DXE_DRIVER"/>
+ <xs:enumeration value="DXE_RUNTIME_DRIVER"/>
+ <xs:enumeration value="DXE_SAL_DRIVER"/>
+ <xs:enumeration value="DXE_SMM_DRIVER"/>
+ <xs:enumeration value="UEFI"/>
+ <xs:enumeration value="UEFI_APPLICATION"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="DataHubUsage">
+ <xs:restriction base="UsageTypes">
+ <xs:enumeration value="ALWAYS_CONSUMED"/>
+ <xs:enumeration value="SOMETIMES_CONSUMED"/>
+ <xs:enumeration value="ALWAYS_PRODUCED"/>
+ <xs:enumeration value="SOMETIMES_PRODUCED"/>
+ <xs:enumeration value="PRIVATE"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="DatumSizeLimitation">
+ <xs:restriction base="xs:nonNegativeInteger">
+ <xs:minExclusive value="0"/>
+ <xs:maxExclusive value="13777216"/>
+ <xs:pattern value="(\s)*[1-9][0-9]*(\s)*"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="DefaultValueType">
+ <xs:union memberTypes="xs:normalizedString Hex64BitDataType UnicodeString HexByteArrayType"/>
+ </xs:simpleType>
+ <xs:simpleType name="EfiSectionType">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="EFI_SECTION_FREEFORM_SUBTYPE_GUID"/>
+ <xs:enumeration value="EFI_SECTION_VERSION"/>
+ <xs:enumeration value="EFI_SECTION_USER_INTERFACE"/>
+ <xs:enumeration value="EFI_SECTION_DXE_DEPEX"/>
+ <xs:enumeration value="EFI_SECTION_PEI_DEPEX"/>
+ <xs:enumeration value="EFI_SECTION_PE32"/>
+ <xs:enumeration value="EFI_SECTION_PIC"/>
+ <xs:enumeration value="EFI_SECTION_TE"/>
+ <xs:enumeration value="EFI_SECTION_RAW"/>
+ <xs:enumeration value="EFI_SECTION_COMPRESSION"/>
+ <xs:enumeration value="EFI_SECTION_GUID_DEFINED"/>
+ <xs:enumeration value="EFI_SECTION_COMPATIBILITY16"/>
+ <xs:enumeration value="EFI_SECTION_FIRMWARE_VOLUME_IMAGE"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="EventTypes">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="EVENT_GROUP_GUID"/>
+ <xs:enumeration value="EVENT_TYPE_PERIODIC_TIMER"/>
+ <xs:enumeration value="EVENT_TYPE_RELATIVE_TIMER"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="EventUsage">
+ <xs:restriction base="UsageTypes">
+ <xs:enumeration value="ALWAYS_CONSUMED"/>
+ <xs:enumeration value="SOMETIMES_CONSUMED"/>
+ <xs:enumeration value="ALWAYS_PRODUCED"/>
+ <xs:enumeration value="SOMETIMES_PRODUCED"/>
+ <xs:enumeration value="PRIVATE"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="ExecutionType">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="REL" id="Relocatable"/>
+ <xs:enumeration value="NREL" id="Non-Relocatable"/>
+ <xs:enumeration value="XIP" id="Execute_In_Place"/>
+ <xs:enumeration value="PIC" id="Position_Independent_Code"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="ExternType">
+ <xs:restriction base="xs:normalizedString">
+ <xs:minLength value="1"/>
+ <!--<xs:pattern value="((\w)+(\W)*(\s)*)+"/>-->
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="ExternUsage">
+ <xs:restriction base="UsageTypes">
+ <xs:enumeration value="ALWAYS_CONSUMED"/>
+ <xs:enumeration value="ALWAYS_PRODUCED"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="FileNameUsage">
+ <xs:restriction base="UsageTypes">
+ <xs:enumeration value="ALWAYS_CONSUMED"/>
+ <xs:enumeration value="SOMETIMES_CONSUMED"/>
+ <xs:enumeration value="ALWAYS_PRODUCED"/>
+ <xs:enumeration value="SOMETIMES_PRODUCED"/>
+ <xs:enumeration value="PRIVATE"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="FeatureFlagExpressionType">
+ <xs:restriction base="xs:normalizedString">
+ <xs:minLength value="1"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="FrameworkComponentListType">
+ <xs:list itemType="FrameworkComponentTypes"/>
+ </xs:simpleType>
+ <xs:simpleType name="FrameworkComponentTypes">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="APRIORI"/>
+ <xs:enumeration value="SEC"/>
+ <xs:enumeration value="LIBRARY"/>
+ <xs:enumeration value="FV_IMAGE_FILE"/>
+ <xs:enumeration value="BS_DRIVER"/>
+ <xs:enumeration value="RT_DRIVER"/>
+ <xs:enumeration value="SAL_RT_DRIVER"/>
+ <xs:enumeration value="PE32_PEIM"/>
+ <xs:enumeration value="PIC_PEIM"/>
+ <xs:enumeration value="COMBINED_PEIM_DRIVER"/>
+ <xs:enumeration value="PEI_CORE"/>
+ <xs:enumeration value="DXE_CORE"/>
+ <xs:enumeration value="BS_DRIVER_EFI"/>
+ <xs:enumeration value="SHELLAPP"/>
+ <xs:enumeration value="BINARY"/>
+ <xs:enumeration value="LOGO"/>
+ <xs:enumeration value="USER_DEFINED"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="FrameworkModuleTypes">
+ <xs:restriction base="ModuleTypeDef">
+ <xs:enumeration value="BASE"/>
+ <xs:enumeration value="SEC"/>
+ <xs:enumeration value="PEI_CORE"/>
+ <xs:enumeration value="PEIM"/>
+ <xs:enumeration value="DXE_CORE"/>
+ <xs:enumeration value="DXE_DRIVER"/>
+ <xs:enumeration value="DXE_RUNTIME_DRIVER"/>
+ <xs:enumeration value="DXE_SAL_DRIVER"/>
+ <xs:enumeration value="DXE_SMM_DRIVER"/>
+ <xs:enumeration value="UEFI_DRIVER"/>
+ <xs:enumeration value="UEFI_APPLICATION"/>
+ <xs:enumeration value="USER_DEFINED"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="FvRegionTypes">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="FV_MAIN"/>
+ <xs:enumeration value="FV_MAIN_COMPACT"/>
+ <xs:enumeration value="NV_STORAGE"/>
+ <xs:enumeration value="FV_RECOVERY"/>
+ <xs:enumeration value="FV_RECOVERY_FLOPPY"/>
+ <xs:enumeration value="FV_FILE"/>
+ <xs:enumeration value="CAPSULE_CARGO"/>
+ <xs:enumeration value="NULL"/>
+ <xs:enumeration value="USER_DEFINED"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="PrimaryGuidListType">
+ <xs:list itemType="GuidTypes"/>
+ </xs:simpleType>
+ <xs:simpleType name="GuidListType">
+ <xs:restriction base="PrimaryGuidListType">
+ <xs:minLength value="1"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="GuidTypes">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="DATA_HUB_RECORD"/>
+ <xs:enumeration value="EFI_EVENT"/>
+ <xs:enumeration value="EFI_SYSTEM_CONFIGURATION_TABLE"/>
+ <xs:enumeration value="EFI_VARIABLE"/>
+ <xs:enumeration value="GUID"/>
+ <xs:enumeration value="HII_PACKAGE_LIST"/>
+ <xs:enumeration value="HOB"/>
+ <xs:enumeration value="TOKEN_SPACE_GUID"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="GuidUsage">
+ <xs:restriction base="UsageTypes">
+ <xs:enumeration value="ALWAYS_CONSUMED"/>
+ <xs:enumeration value="SOMETIMES_CONSUMED"/>
+ <xs:enumeration value="ALWAYS_PRODUCED"/>
+ <xs:enumeration value="SOMETIMES_PRODUCED"/>
+ <xs:enumeration value="DEFAULT"/>
+ <xs:enumeration value="PRIVATE"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="HexByteArrayListType">
+ <xs:restriction base="xs:normalizedString">
+ <xs:minLength value="4"/>
+ <xs:pattern value="((( )?0x[a-fA-F0-9]{2})(,)?)+( )?"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="HexByteArrayType">
+ <xs:restriction base="xs:normalizedString">
+ <xs:minLength value="4"/>
+ <xs:pattern value="((\s)*0x([a-fA-F0-9]){2}(,)?(\s)*)+"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="HexWordArrayType">
+ <xs:restriction base="xs:normalizedString">
+ <xs:minLength value="6"/>
+ <xs:pattern value="((\s)*0x([a-fA-F0-9]){4}(,)?(\s)*)+"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="HiiPackageUsage">
+ <xs:restriction base="UsageTypes">
+ <xs:enumeration value="ALWAYS_PRODUCED"/>
+ <xs:enumeration value="SOMETIMES_PRODUCED"/>
+ <xs:enumeration value="PRIVATE"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="HobTypes">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="PHIT"/>
+ <xs:enumeration value="MEMORY_ALLOCATION"/>
+ <xs:enumeration value="RESOURCE_DESCRIPTOR"/>
+ <xs:enumeration value="GUID_EXTENSION"/>
+ <xs:enumeration value="FIRMWARE_VOLUME"/>
+ <xs:enumeration value="CPU"/>
+ <xs:enumeration value="POOL"/>
+ <xs:enumeration value="CAPSULE_VOLUME"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="HobUsage">
+ <xs:restriction base="UsageTypes">
+ <xs:enumeration value="ALWAYS_CONSUMED"/>
+ <xs:enumeration value="SOMETIMES_CONSUMED"/>
+ <xs:enumeration value="ALWAYS_PRODUCED"/>
+ <xs:enumeration value="SOMETIMES_PRODUCED"/>
+ <xs:enumeration value="PRIVATE"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="IntermediateOutputType">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="MODULE"/>
+ <xs:enumeration value="UNIFIED"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="LibraryUsage">
+ <xs:restriction base="UsageTypes">
+ <xs:enumeration value="ALWAYS_CONSUMED"/>
+ <xs:enumeration value="SOMETIMES_CONSUMED"/>
+ <xs:enumeration value="ALWAYS_PRODUCED"/>
+ <xs:enumeration value="SOMETIMES_PRODUCED"/>
+ <xs:enumeration value="DEFAULT"/>
+ <xs:enumeration value="PRIVATE"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="ModuleTypeDef">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="BASE"/>
+ <xs:enumeration value="SEC"/>
+ <xs:enumeration value="PEI_CORE"/>
+ <xs:enumeration value="PEIM"/>
+ <xs:enumeration value="DXE_CORE"/>
+ <xs:enumeration value="DXE_DRIVER"/>
+ <xs:enumeration value="DXE_RUNTIME_DRIVER"/>
+ <xs:enumeration value="DXE_SAL_DRIVER"/>
+ <xs:enumeration value="DXE_SMM_DRIVER"/>
+ <xs:enumeration value="TOOL"/>
+ <xs:enumeration value="UEFI_DRIVER"/>
+ <xs:enumeration value="UEFI_APPLICATION"/>
+ <xs:enumeration value="USER_DEFINED"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="Md5sumType">
+ <xs:restriction base="xs:normalizedString">
+ <xs:pattern value="[a-fA-F0-9]{32}"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="PrimaryModuleListType">
+ <xs:list itemType="FrameworkModuleTypes"/>
+ </xs:simpleType>
+ <xs:simpleType name="ModuleListType">
+ <xs:restriction base="PrimaryModuleListType">
+ <xs:minLength value="1"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="PackageType">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="SOURCE"/>
+ <xs:enumeration value="BINARY"/>
+ <xs:enumeration value="MIXED"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="PackageUsage">
+ <xs:restriction base="UsageTypes">
+ <xs:enumeration value="ALWAYS_CONSUMED"/>
+ <xs:enumeration value="SOMETIMES_CONSUMED"/>
+ <xs:enumeration value="DEFAULT"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="PcdListType">
+ <xs:restriction base="PrimaryPcdListType">
+ <xs:minLength value="1"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="PrimaryPcdListType">
+ <xs:list itemType="PcdItemTypes"/>
+ </xs:simpleType>
+ <xs:simpleType name="PcdTypes">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="FIXED_AT_BUILD"/>
+ <xs:enumeration value="FEATURE_FLAG"/>
+ <xs:enumeration value="PATCHABLE_IN_MODULE"/>
+ <xs:enumeration value="DYNAMIC"/>
+ <xs:enumeration value="DYNAMIC_EX"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="PcdDriverTypes">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="PEI_PCD_DRIVER"/>
+ <xs:enumeration value="DXE_PCD_DRIVER"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="PcdDataTypes">
+ <xs:restriction base="xs:normalizedString">
+ <xs:enumeration value="UINT8"/>
+ <xs:enumeration value="UINT16"/>
+ <xs:enumeration value="UINT32"/>
+ <xs:enumeration value="UINT64"/>
+ <xs:enumeration value="VOID*"/>
+ <xs:enumeration value="BOOLEAN"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="PcdFeatureFlagUsage">
+ <xs:restriction base="UsageTypes">
+ <xs:enumeration value="ALWAYS_PRODUCED"/>
+ <xs:enumeration value="DEFAULT"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="PcdItemTypes">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="FEATURE_FLAG"/>
+ <xs:enumeration value="FIXED_AT_BUILD"/>
+ <xs:enumeration value="PATCHABLE_IN_MODULE"/>
+ <xs:enumeration value="DYNAMIC"/>
+ <xs:enumeration value="DYNAMIC_EX"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="PcdUsage">
+ <xs:restriction base="UsageTypes">
+ <xs:enumeration value="ALWAYS_CONSUMED"/>
+ <xs:enumeration value="SOMETIMES_CONSUMED"/>
+ <xs:enumeration value="ALWAYS_PRODUCED"/>
+ <xs:enumeration value="SOMETIMES_PRODUCED"/>
+ <xs:enumeration value="DEFAULT"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="PpiNotifyUsage">
+ <xs:restriction base="UsageTypes">
+ <xs:enumeration value="SOMETIMES_CONSUMED"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="PpiUsage">
+ <xs:restriction base="UsageTypes">
+ <xs:enumeration value="ALWAYS_CONSUMED"/>
+ <xs:enumeration value="SOMETIMES_CONSUMED"/>
+ <xs:enumeration value="ALWAYS_PRODUCED"/>
+ <xs:enumeration value="SOMETIMES_PRODUCED"/>
+ <xs:enumeration value="PRIVATE"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="ProtocolNotifyUsage">
+ <xs:restriction base="UsageTypes">
+ <xs:enumeration value="SOMETIMES_CONSUMED"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="ProtocolUsage">
+ <xs:restriction base="UsageTypes">
+ <xs:enumeration value="ALWAYS_CONSUMED"/>
+ <xs:enumeration value="SOMETIMES_CONSUMED"/>
+ <xs:enumeration value="ALWAYS_PRODUCED"/>
+ <xs:enumeration value="SOMETIMES_PRODUCED"/>
+ <xs:enumeration value="TO_START"/>
+ <xs:enumeration value="BY_START"/>
+ <xs:enumeration value="PRIVATE"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="SkuListType">
+ <xs:restriction base="xs:normalizedString">
+ <xs:minLength value="1"/>
+ <xs:pattern value="(\d)+((,)?(\s)*(\d)+)*"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="SupportedArchitectures">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="EBC"/>
+ <xs:enumeration value="IA32"/>
+ <xs:enumeration value="X64"/>
+ <xs:enumeration value="IPF"/>
+ <xs:enumeration value="ARM"/>
+ <xs:enumeration value="PPC"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="SystemTableUsage">
+ <xs:restriction base="UsageTypes">
+ <xs:enumeration value="ALWAYS_CONSUMED"/>
+ <xs:enumeration value="SOMETIMES_CONSUMED"/>
+ <xs:enumeration value="ALWAYS_PRODUCED"/>
+ <xs:enumeration value="SOMETIMES_PRODUCED"/>
+ <xs:enumeration value="PRIVATE"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="TokenDataType">
+ <xs:union memberTypes="HexDoubleWordDataType xs:nonNegativeInteger"/>
+ </xs:simpleType>
+ <xs:simpleType name="ToolChains">
+ <xs:restriction base="UCNameType">
+ <xs:minLength value="2"/>
+ <xs:enumeration value="MSFT"/>
+ <xs:enumeration value="INTEL"/>
+ <xs:enumeration value="GCC"/>
+ <xs:enumeration value="CYGWIN"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="UiNameType">
+ <xs:restriction base="xs:string">
+ <xs:minLength value="1"/>
+ <xs:pattern value="[^ ].*"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="UnicodeString">
+ <xs:restriction base="xs:normalizedString">
+ <xs:minLength value="3"/>
+ <xs:pattern value="(\s)*L(\:)?"[^"]*"(\s)*"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="UsageListType">
+ <xs:restriction base="PrimaryUsageList">
+ <xs:minLength value="1"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="PrimaryUsageList">
+ <xs:list itemType="UsageTypes"/>
+ </xs:simpleType>
+ <!-- UsageTypes describes all of the Usage Attributes that are defined in the Module Surface Area Specification -->
+ <xs:simpleType name="UsageTypes">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="ALWAYS_CONSUMED"/>
+ <xs:enumeration value="SOMETIMES_CONSUMED"/>
+ <xs:enumeration value="ALWAYS_PRODUCED"/>
+ <xs:enumeration value="SOMETIMES_PRODUCED"/>
+ <xs:enumeration value="TO_START"/>
+ <xs:enumeration value="BY_START"/>
+ <xs:enumeration value="PRIVATE"/>
+ <xs:enumeration value="DEFAULT"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="VariableOffsetValues">
+ <xs:restriction base="xs:string">
+ <xs:minLength value="1"/>
+ <xs:pattern value="\d+(:)?\d*"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="VariableUsage">
+ <xs:restriction base="UsageTypes">
+ <!-- Module requires the variable entry to be set -->
+ <xs:enumeration value="ALWAYS_CONSUMED"/>
+ <!-- Module will use the variable entry if it's set -->
+ <xs:enumeration value="SOMETIMES_CONSUMED"/>
+ <!-- Module Always will write the variable -->
+ <xs:enumeration value="ALWAYS_PRODUCED"/>
+ <!-- Module sometimes writes the variable -->
+ <xs:enumeration value="SOMETIMES_PRODUCED"/>
+ <!-- Variable is produced and consumed only by this module -->
+ <xs:enumeration value="PRIVATE"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <!-- Complex Data Types -->
+ <xs:complexType name="DbPathAndFilename">
+ <xs:simpleContent>
+ <xs:extension base="PathAndFilename">
+ <xs:attribute name="FarGuid" type="GuidType" use="optional"/>
+ <xs:attribute name="Md5sum" type="Md5sumType"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ <xs:complexType name="ArgsType">
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="Arg" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="ToolType">
+ <xs:sequence>
+ <xs:element name="ToolName" type="xs:string"/>
+ <xs:element name="ToolArgs" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
</xs:schema>
diff --git a/Tools/XMLSchema/FrameworkHeaders.xsd b/Tools/XMLSchema/FrameworkHeaders.xsd index a0104f5..c14254c 100644 --- a/Tools/XMLSchema/FrameworkHeaders.xsd +++ b/Tools/XMLSchema/FrameworkHeaders.xsd @@ -1,9 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.TianoCore.org/2006/Edk2.0" xmlns="http://www.TianoCore.org/2006/Edk2.0">
- <!--
+ <!--
Filename: FrameworkHeaders.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
@@ -11,253 +12,101 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+ APPROVED: 14-Jun-2006
-->
- <xs:include schemaLocation="FrameworkDataElements.xsd"/>
- <xs:element name="FdbHeader">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is the header for the Framework Package Database file.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" ref="DatabaseName"/>
- <!-- Value fixed during initialization: FrameworkDatabase -->
- <xs:choice minOccurs="1" maxOccurs="1">
- <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
- <!-- Guid needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
- <!-- GuidValue needs to be required -->
- </xs:choice>
- <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
- <!-- Version is the version of this file -->
- <xs:element minOccurs="0" maxOccurs="1" ref="Path"/>
- <!-- Path needs to be removed -->
- <xs:choice minOccurs="1" maxOccurs="1">
- <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
- <!-- Created needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
- <!-- CreatedDate needs to be required -->
- </xs:choice>
- <xs:choice minOccurs="0">
- <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>
- <!-- Updated needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="UpdatedDate"/>
- </xs:choice>
- <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
- <xs:element minOccurs="0" maxOccurs="1" name="Specification" type="xs:string"/>
- <!-- Specificatoin needs to be required - FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00090000 -->
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="MbdHeader">
- <!-- MbdHeader needs to be removed -->
- <xs:annotation>
- <xs:documentation xml:lang="en">DO NOT USE! This is the header for the Component Module Build Description (MBD) file. NOTE: The GUID may be different from the GUID in the MSA file, as the Guid is updated every time the file is changed, as the Guid may change if the contents of the file are changed.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" ref="BaseName"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Guid"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
- <xs:element minOccurs="0" maxOccurs="1" name="Specification" type="xs:string"/>
- <xs:choice minOccurs="1" maxOccurs="1">
- <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
- </xs:choice>
- <xs:choice minOccurs="1" maxOccurs="1">
- <xs:element minOccurs="0" maxOccurs="1" ref="Modified"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>
- </xs:choice>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="MbdLibHeader">
- <!-- MbdLibHeader needs to be removed -->
- <xs:annotation>
- <xs:documentation xml:lang="en">DO NOT USE! This is the header for the Library Module Build Description (MBD) file. NOTE: The Guid may be different from the Guid in the MSA file, as the Guid may change when the contents of the file are changed..</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" ref="BaseName"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Guid"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
- <xs:element minOccurs="0" maxOccurs="1" name="Specification" type="xs:string"/>
- <xs:choice minOccurs="1" maxOccurs="1">
- <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
- </xs:choice>
- <xs:choice minOccurs="1" maxOccurs="1">
- <xs:element minOccurs="0" maxOccurs="1" ref="Modified"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>
- </xs:choice>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="MsaHeader">
- <xs:annotation>
- <xs:documentation xml:lang="en">This is the Component Module Surface Area Description Header - a replacement for INF files. The GUID may change when the contents of the file are changed.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence>
- <xs:choice>
- <!-- BaseName needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="BaseName"/>
- <!-- ModuleName needs to be required -->
- <xs:element minOccurs="0" maxOccurs="1" name="ModuleName" type="UiNameType"/>
- </xs:choice>
- <xs:element minOccurs="1" maxOccurs="1" ref="ModuleType"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="ComponentType"/>
- <xs:choice>
- <!-- Guid needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
- <!-- GuidValue needs to be required -->
- <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
- </xs:choice>
- <!-- Version needs to be a decimal in final -->
- <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
- <xs:choice minOccurs="1" maxOccurs="1">
- <!-- Created needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
- <!-- CreatedDate needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
- </xs:choice>
- <xs:choice>
- <!-- Updated needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>
- <!-- ModifiedDate needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>
- </xs:choice>
- <xs:element default="false" minOccurs="0" name="BinaryModule" type="xs:boolean"/>
- <!-- Specification needs to be required - FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052 -->
- <xs:element minOccurs="0" maxOccurs="1" name="Specification" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="MsaLibHeader">
- <!-- MsaLibHeader needs to be removed -->
- <xs:annotation>
- <xs:documentation xml:lang="en">DO NOT USE! This is the Library Module Surface Area Description Header - a replacement for INF files. The Guid may change when the contents of the file are changed.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" ref="BaseName"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="ModuleType"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="ComponentType"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Guid"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
- <xs:choice minOccurs="1" maxOccurs="1">
- <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
- </xs:choice>
- <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>
- <xs:element minOccurs="0" maxOccurs="1" name="Specification" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="PlatformHeader">
- <xs:annotation>
- <xs:documentation xml:lang="en">This head is for the Framework Platform Description file (FPD.)</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="PlatformName" type="PlatformNamingConvention"/>
- <xs:choice>
- <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
- <!-- DO NOT USE Guid needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
- <!-- GuidValue needs to be required -->
- </xs:choice>
- <!-- Version needs to be xs:decimal in final -->
- <xs:element minOccurs="0" maxOccurs="1" ref="Version"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Copyright"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="License"/>
- <xs:choice minOccurs="1" maxOccurs="1">
- <!-- DO NOT USE Created needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
- <!-- DO NOT USE CreatedDate needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
- </xs:choice>
- <!-- DO NOT USE CreatedBy needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="CreatedBy"/>
- <xs:choice>
- <!-- DO NOT USE Updated needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>
- <!-- DO NOT USE ModifiedDate needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>
- </xs:choice>
- <!-- DO NOT USE PackageType needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="PackageType"/>
- <!-- DO NOT USE BuildTarget needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" name="BuildTarget" type="BuildTargets"/>
- <!-- Specification needs to be required - FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052 -->
- <xs:element minOccurs="0" maxOccurs="1" name="Specification" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="SpdHeader">
- <xs:annotation>
- <xs:documentation xml:lang="en">This head is for the Surface Area Package Description file (SPD)</xs:documentation>
- <xs:documentation xml:lang="en">The Guid MUST change when the contents of the file undergo MAJOR FUNCTIONALITY changes.</xs:documentation>
- <xs:documentation xml:lang="en">The Version MUST change when the contents of the file undergo MINOR FUNCTIONALITY changes.</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="PackageName" type="UiNameType"/>
- <xs:choice minOccurs="1" maxOccurs="1">
- <!-- DO NOT USE! Guid needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
- <!-- GuidValue needs to be required -->
- <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
- </xs:choice>
- <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
- <xs:choice minOccurs="1" maxOccurs="1">
- <!-- Created needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
- <!-- CreatedDate needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
- </xs:choice>
- <!-- E_Mail needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="E-Mail"/>
- <xs:choice minOccurs="0" maxOccurs="1">
- <!-- Updated needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>
- <!-- UpdatedDate needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>
- </xs:choice>
- <!-- URL needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="URL"/>
- <!-- PackageType needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="PackageType"/>
- <!-- ReadOnly and RePackage remain in final -->
- <xs:element minOccurs="0" maxOccurs="1" ref="ReadOnly"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="RePackage"/>
- <!-- Specification needs to be required - FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052 -->
- <xs:element minOccurs="0" maxOccurs="1" name="Specification" type="xs:string"/>
- <!-- OutputDirectory needs to be removed -->
- <xs:element minOccurs="0" maxOccurs="1" ref="OutputDirectory"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
+ <xs:include schemaLocation="FrameworkDataElements.xsd"/>
+ <xs:element name="FdbHeader">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This is the header for the Framework Package Database (DB) file.</xs:documentation>
+ <xs:documentation xml:lang="en">The Guid MUST change if backward compatibility breaks caused by a new release of XML Schema.</xs:documentation>
+ <xs:documentation xml:lang="en">The Version will change if a minor change to XML Schema has been made, but backward compatiblity is maintained.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="DatabaseName" type="UiNameType" fixed="FrameworkDatabase"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="GuidValue" type="GuidType"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="Specification" type="Sentence" fixed="FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="FarHeader">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This is the header for the Framework Archive Manifest file.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="FarName" type="UiNameType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="GuidValue" type="GuidType"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="Specification" type="Sentence" fixed="FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="MsaHeader">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This header is for the Module Surface Area Description (MSA) files</xs:documentation>
+ <xs:documentation xml:lang="en">The Guid MUST change if the Module changes break backward compatibility.</xs:documentation>
+ <xs:documentation xml:lang="en">The Version MUST change if the Module changes, however, backward compatiblity is maintained.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="ModuleName" type="UiNameType"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="ModuleType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="GuidValue" type="GuidType"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="Specification" type="Sentence" fixed="FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="PlatformHeader">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This header is for the Framework Platform Description (FPD) files.</xs:documentation>
+ <xs:documentation xml:lang="en">The Guid MUST change if the FPD changes break backward compatibility.</xs:documentation>
+ <xs:documentation xml:lang="en">The Version MUST change if the FPD changes, however, backward compatiblity is maintained.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="PlatformName" type="UiNameType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="GuidValue" type="GuidType"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="Specification" type="Sentence" fixed="FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="SpdHeader">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This head is for the Surface Area Package Description file (SPD)</xs:documentation>
+ <xs:documentation xml:lang="en">The Guid MUST change when the contents of the file undergo MAJOR FUNCTIONALITY changes.</xs:documentation>
+ <xs:documentation xml:lang="en">The Version MUST change when the contents of the file undergo MINOR FUNCTIONALITY changes.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="PackageName" type="UiNameType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="GuidValue" type="GuidType"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="Specification" type="Sentence" fixed="FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
</xs:schema>
diff --git a/Tools/XMLSchema/FrameworkPlatformDataElements.xsd b/Tools/XMLSchema/FrameworkPlatformDataElements.xsd index 2345359..85ed426 100644 --- a/Tools/XMLSchema/FrameworkPlatformDataElements.xsd +++ b/Tools/XMLSchema/FrameworkPlatformDataElements.xsd @@ -1,466 +1,437 @@ -<?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: FrameworkPlatformDataElements.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 Platform Data Elements that are specific to platform creation.</xs:documentation> - </xs:annotation> - <xs:include schemaLocation="NamingConvention.xsd"/> - <xs:include schemaLocation="FrameworkDataAttributes.xsd"/> - <xs:include schemaLocation="FrameworkDataTypes.xsd"/> - <xs:include schemaLocation="FrameworkDataElements.xsd"/> - <xs:include schemaLocation="FrameworkPlatformDataTypes.xsd"/> - <xs:element name="Capsule"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="1" maxOccurs="1" name="CapsuleId" type="xs:string"/> - <xs:element minOccurs="0" maxOccurs="1" ref="CapsuleOptions"/> - <xs:element minOccurs="0" maxOccurs="1" ref="CapsuleAttributes"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="CapsuleAttributes"> - <xs:annotation> - <xs:documentation xml:lang="en">This element is used specify different name value pairs.</xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="NameValue"/> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="Enable"/> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="Disable"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="CapsuleOptions"> - <xs:annotation> - <xs:documentation xml:lang="en">This element is used specify different name value pairs.</xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="NameValue"/> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="Enable"/> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="Disable"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="Capsules"> - <xs:annotation> - <xs:documentation xml:lang="en">Permit multiple Capsule Sections</xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:sequence minOccurs="1" maxOccurs="unbounded"> - <xs:element ref="Capsule"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="Disable" type="xs:string"/> - <xs:element name="Enable" type="xs:string"/> - <xs:element name="Flash"> - <xs:complexType> - <xs:annotation> - <xs:documentation xml:lang="en">We allow specifying the Flash layout in this directory, or we allow specifying a flashmap filename</xs:documentation> - </xs:annotation> - <xs:sequence> - <xs:choice> - <xs:element name="FlashDefinition" type="FlashData"/> - <xs:element name="FlashDefinitionFile" type="FileNameConvention"/> - </xs:choice> - <xs:element minOccurs="0" maxOccurs="1" ref="FvImages"/> - <xs:element minOccurs="0" maxOccurs="1" ref="Capsules"/> - </xs:sequence> - <xs:attribute name="MicrocodeFile" type="FileNameConvention" use="optional"/> - </xs:complexType> - </xs:element> - <xs:element name="FlashDeviceImage"> - <xs:annotation> - <xs:documentation xml:lang="en">Define contents of the regions in flash. The files and data are placed in the output image in the order they are encountered in this definition. Multiple FlashDeviceImage sections may be defined. Which one the tool should use is specified by Name on the command line.</xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:all> - <xs:element minOccurs="0" maxOccurs="1" name="RawData"> - <xs:complexType> - <xs:sequence minOccurs="0" maxOccurs="1"> - <xs:element name="Data" type="xs:string"/> - </xs:sequence> - <xs:attributeGroup ref="RawDataAttributes"/> - </xs:complexType> - </xs:element> - <xs:element minOccurs="0" maxOccurs="1" name="File"> - <xs:complexType> - <xs:attributeGroup ref="FlashDeviceImageFileAttributes"/> - </xs:complexType> - </xs:element> - </xs:all> - <xs:attributeGroup ref="FlashDeviceImageAttributes"/> - </xs:complexType> - </xs:element> - <xs:element name="FlashDeviceInfo"> - <xs:annotation> - <xs:documentation xml:lang="en">This is the Flash Devcie definition List</xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:sequence> - <xs:element name="Blocks"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="1" maxOccurs="255" name="Block"> - <xs:complexType> - <xs:simpleContent> - <xs:extension base="BlockNameType"> - <xs:attributeGroup ref="BlockAttributes"/> - </xs:extension> - </xs:simpleContent> - </xs:complexType> - </xs:element> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="Regions"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="1" maxOccurs="unbounded" name="Region"> - <xs:complexType> - <xs:all> - <xs:element name="SubRegions"> - <xs:complexType> - <xs:sequence minOccurs="0" maxOccurs="unbounded"> - <xs:element name="SubRegion"> - <xs:complexType> - <xs:simpleContent> - <xs:extension base="xs:string"> - <xs:attributeGroup ref="SubRegionAttributes"/> - </xs:extension> - </xs:simpleContent> - </xs:complexType> - </xs:element> - </xs:sequence> - </xs:complexType> - </xs:element> - </xs:all> - <xs:attributeGroup ref="RegionAttributes"/> - </xs:complexType> - </xs:element> - </xs:sequence> - </xs:complexType> - </xs:element> - </xs:sequence> - <xs:attributeGroup ref="FlashDeviceInfoAttributes"/> - </xs:complexType> - </xs:element> - <xs:element name="FlashDeviceOverrideImage"> - <xs:annotation> - <xs:documentation xml:lang="en">Define OVERRIDE contents of the regions in flash. Only what is different here from what may defined in other areas (or files) is needed </xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" maxOccurs="1" name="Name" type="NameConvention"/> - <xs:element minOccurs="0" maxOccurs="unbounded" name="File" type="FvImageOverrideFileType"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="FlashDeviceOverrideInfo"> - <xs:annotation> - <xs:documentation xml:lang="en">This is the Flash Devcie Override Definition list. Only what is different from the previously defined stuff needs to be included.</xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" maxOccurs="1" name="Name" type="UCNameType"/> - <xs:element default="512KB" minOccurs="0" maxOccurs="1" name="FlashSize" type="FlashSize"/> - <xs:element minOccurs="0" maxOccurs="1" name="BaseAddress" type="HexAddressType"/> - <xs:element minOccurs="0" maxOccurs="1" name="OutputDirectory" type="DirectoryNamingConvention"/> - <xs:element minOccurs="0" maxOccurs="1" name="MicrocodeFile" type="FileNameConvention"/> - <xs:element minOccurs="0" maxOccurs="255" name="Block" type="BlockNameType"/> - <xs:element minOccurs="0" maxOccurs="unbounded" name="Region" type="RegionDataType"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="FvImage"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="1" maxOccurs="unbounded" ref="FvImageNames"/> - <xs:element minOccurs="0" maxOccurs="1" ref="FvImageOptions"/> - </xs:sequence> - <xs:attribute name="Type" type="FvImageTypes" use="optional"/> - </xs:complexType> - </xs:element> - <xs:element name="FvImageName"> - <xs:complexType> - <xs:sequence> - <xs:element ref="FvImageOptions"/> - </xs:sequence> - <xs:attribute name="Name" type="FvRegionTypes" use="required"/> - </xs:complexType> - </xs:element> - <xs:element name="FvImageNames" type="xs:NCName"/> - <xs:element name="FvImageOptions"> - <xs:annotation> - <xs:documentation xml:lang="en">This element is used specify different name value pairs.</xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="NameValue"/> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="Enable"/> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="Disable"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="FvImages"> - <xs:annotation> - <xs:documentation xml:lang="en">This section allows the user to define specific information regarding the FvImage</xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="NameValue"/> - <xs:choice> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="FvImage"/> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="FvRegionName"/> - </xs:choice> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="FvImageName"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="FvRegionName"> - <xs:complexType> - <xs:simpleContent> - <xs:extension base="KeywordType"> - <xs:attributeGroup ref="FvRegionNameAttributes"/> - </xs:extension> - </xs:simpleContent> - </xs:complexType> - </xs:element> - <xs:element name="ModuleSA"> - <xs:annotation> - <xs:documentation xml:lang="en">This element is used to specify information in the Platform Description File.</xs:documentation> - <xs:documentation xml:lang="en">This is a mixed element, allowing the user to specify the name of the MSA file, as well as to optionally specify additional override information.</xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:sequence minOccurs="1"> - <!-- DO NOT USE! REMOVE SourceFiles in FINAL --> - <xs:element minOccurs="0" maxOccurs="1" ref="SourceFiles"/> - <!-- DO NOT USE! REMOVE Includes in FINAL --> - <xs:element minOccurs="0" maxOccurs="1" ref="Includes"/> - <!-- Libraries stays in FINAL --> - <xs:element minOccurs="0" maxOccurs="1" ref="Libraries"/> - <!-- DO NOT USE! REMOVE Protocols in FINAL --> - <xs:element minOccurs="0" maxOccurs="1" ref="Protocols"/> - <!-- DO NOT USE! REMOVE Events in FINAL --> - <xs:element minOccurs="0" maxOccurs="1" ref="Events"/> - <!-- DO NOT USE! REMOVE Hobs in FINAL --> - <xs:element minOccurs="0" maxOccurs="1" ref="Hobs"/> - <!-- DO NOT USE! REMOVE PPIs in FINAL --> - <xs:element minOccurs="0" maxOccurs="1" ref="PPIs"/> - <!-- DO NOT USE! REMOVE Variables in FINAL --> - <xs:element minOccurs="0" maxOccurs="1" ref="Variables"/> - <!-- DO NOT USE! REMOVE BootModes in FINAL --> - <xs:element minOccurs="0" maxOccurs="1" ref="BootModes"/> - <!-- DO NOT USE! REMOVE SystemTables in FINAL --> - <xs:element minOccurs="0" maxOccurs="1" ref="SystemTables"/> - <!-- DO NOT USE! REMOVE DataHubs in FINAL --> - <xs:element minOccurs="0" maxOccurs="1" ref="DataHubs"/> - <!-- DO NOT USE! REMOVE Formsets in FINAL --> - <xs:element minOccurs="0" maxOccurs="1" ref="Formsets"/> - <!-- DO NOT USE! REMOVE Guids in FINAL --> - <xs:element minOccurs="0" maxOccurs="1" ref="Guids"/> - <xs:choice minOccurs="0"> - <!-- DO NOT USE! REMOVE Externs stays in FINAL --> - <xs:element minOccurs="0" maxOccurs="1" ref="Externs"/> - <xs:element minOccurs="0" maxOccurs="1" name="Extern"> - <xs:annotation> - <xs:documentation xml:lang="en">Only specification is allow here. We need to let this be an addtion OR, if the WORD portion exists, this entry takes precedence.</xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="1" maxOccurs="unbounded" ref="Specification"/> - </xs:sequence> - </xs:complexType> - </xs:element> - </xs:choice> - <xs:element minOccurs="0" maxOccurs="unbounded" name="Specification" type="Sentence"/> - <xs:element minOccurs="0" maxOccurs="1" ref="PcdBuildDefinition"/> - <!-- BuildOptions stays in FINAL --> - <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/> - <xs:element minOccurs="0" maxOccurs="1" ref="ModuleSaBuildOptions"/> - </xs:sequence> - <xs:attributeGroup ref="MsaAttributes"/> - </xs:complexType> - </xs:element> - <xs:element name="NameValue"> - <xs:complexType> - <xs:simpleContent> - <xs:extension base="xs:string"> - <xs:attribute name="Name" type="xs:string" use="required"/> - <xs:attribute name="Value" type="xs:string" use="required"/> - </xs:extension> - </xs:simpleContent> - </xs:complexType> - </xs:element> - <xs:element name="Overrides"> - <xs:annotation> - <xs:documentation xml:lang="en">DO NOT USE! - Removing this from Schema</xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" maxOccurs="1" ref="FlashDeviceOverrideInfo"/> - <xs:element minOccurs="0" maxOccurs="1" ref="FlashDeviceOverrideImage"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="PlatformDescriptions"> - <xs:annotation> - <xs:documentation xml:lang="en">DO NOT USE! - Use PlatformList instead</xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:sequence maxOccurs="unbounded"> - <xs:element ref="Platform"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="PlatformList"> - <xs:annotation> - <xs:documentation xml:lang="en">This is used in the Framework Database file</xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:sequence maxOccurs="unbounded"> - <xs:element ref="Platform"/> - <xs:element name="Filename" type="PathAndFilename" minOccurs="0" maxOccurs="unbounded"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="FrameworkModules"> - <xs:annotation> - <xs:documentation xml:lang="en">This is used in a Framework Platform Description (FPD) file</xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:sequence> - <xs:choice> - <xs:sequence> - <xs:element minOccurs="0" maxOccurs="1" name="SEC" type="Components"/> - <xs:element minOccurs="0" maxOccurs="1" name="PEI_CORE" type="Components"/> - <xs:element minOccurs="0" maxOccurs="1" name="PEIM" type="Components"/> - <xs:element minOccurs="0" maxOccurs="1" name="DXE_CORE" type="Components"/> - <xs:element minOccurs="0" maxOccurs="1" name="DXE_DRIVERS" type="Components"/> - <xs:element minOccurs="0" maxOccurs="1" name="OTHER_COMPONENTS" type="Components"/> - </xs:sequence> - <xs:element minOccurs="1" maxOccurs="unbounded" ref="ModuleSA"/> - </xs:choice> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="TianoImage"> - <xs:annotation> - <xs:documentation xml:lang="en">DO NOT USE - Use FrameworkModules Instead.</xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" maxOccurs="1" name="SEC" type="Components"/> - <xs:element minOccurs="0" maxOccurs="1" name="PEI_CORE" type="Components"/> - <xs:element minOccurs="0" maxOccurs="1" name="PEIM" type="Components"/> - <xs:element minOccurs="0" maxOccurs="1" name="DXE_CORE" type="Components"/> - <xs:element minOccurs="0" maxOccurs="1" name="DXE_DRIVERS" type="Components"/> - <xs:element minOccurs="0" maxOccurs="1" name="OTHER_COMPONENTS" type="Components"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="FlashDeviceDefinitions"> - <xs:complexType> - <xs:annotation> - <xs:documentation xml:lang="en">We allow specifying the FlashMap filename</xs:documentation> - </xs:annotation> - <xs:sequence> - <xs:element minOccurs="0" maxOccurs="1" name="FlashDefinitionFile" type="PathAndFilename"/> - <xs:element minOccurs="0" maxOccurs="1" ref="FvImages"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="PlatformDefinitions"> - <xs:complexType> - <xs:sequence> - <!-- This is the list of ALL architectures that are supported by this Platform --> - <xs:element minOccurs="1" maxOccurs="1" name="SupportedArchitectures" type="ArchListType"/> - <xs:element minOccurs="1" maxOccurs="1" name="BuildTargets" type="BuildTargetList"/> - <xs:element default="UNIFIED" name="IntermediateDirectories" type="IntermediateOutputType"/> - <xs:element minOccurs="0" maxOccurs="1" name="OutputDirectory" type="xs:anyURI"/> - <!-- SkuInfo is only defined if Sku enabled --> - <xs:element minOccurs="0" maxOccurs="1" ref="SkuInfo"/> - <xs:element minOccurs="0" maxOccurs="1" ref="FlashDeviceDefinitions"/> - <xs:element minOccurs="0" maxOccurs="1" ref="FfsFormatDeclarations"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:complexType name="Components"> - <xs:sequence minOccurs="1" maxOccurs="unbounded"> - <xs:element ref="ModuleSA"/> - </xs:sequence> - </xs:complexType> - <xs:complexType name="FlashData"> - <xs:sequence> - <xs:element minOccurs="0" maxOccurs="unbounded" name="UserDefinedFvRegion" type="NameConvention"/> - <xs:choice minOccurs="0" maxOccurs="1"> - <xs:sequence> - <xs:element minOccurs="1" maxOccurs="1" ref="FlashDeviceInfo"/> - <xs:element minOccurs="1" maxOccurs="1" ref="FlashDeviceImage"/> - </xs:sequence> - </xs:choice> - <xs:element minOccurs="0" maxOccurs="1" ref="Overrides"/> - </xs:sequence> - </xs:complexType> - <xs:complexType name="FvImageFileType"> - <xs:sequence> - <xs:element minOccurs="1" maxOccurs="1" name="Name" type="FileNameConvention"/> - <xs:element minOccurs="1" maxOccurs="1" name="Region" type="FvRegionTypes"/> - <xs:element minOccurs="1" maxOccurs="unbounded" name="RawData" type="RawDataType"/> - </xs:sequence> - </xs:complexType> - <xs:complexType name="FvImageOverrideFileType"> - <xs:sequence> - <xs:element minOccurs="0" maxOccurs="1" name="Name" type="FileNameConvention"/> - <xs:element minOccurs="0" maxOccurs="1" name="Region" type="FvRegionTypes"/> - <xs:element minOccurs="0" maxOccurs="1" name="UserDefinedFvRegion" type="NameConvention"/> - <xs:element minOccurs="0" maxOccurs="unbounded" name="RawData" type="RawDataType"/> - </xs:sequence> - </xs:complexType> - <xs:complexType name="RawDataType"> - <xs:sequence> - <xs:element minOccurs="1" maxOccurs="1" name="Name" type="NameConvention"/> - <xs:element minOccurs="0" maxOccurs="1" name="Region" type="FvRegionTypes"/> - <xs:element minOccurs="0" maxOccurs="1" name="UserDefinedFvRegion" type="NameConvention"/> - <xs:element minOccurs="1" maxOccurs="1" name="SubRegion" type="FvSubRegionTypes"/> - <xs:element minOccurs="1" maxOccurs="1" name="Data" type="HexDataType"/> - </xs:sequence> - </xs:complexType> - <xs:complexType name="RegionDataType"> - <xs:annotation> - <xs:documentation xml:lang="en">Define the regions and their uses for the device</xs:documentation> - </xs:annotation> - <xs:sequence> - <xs:element minOccurs="1" maxOccurs="1" name="Name" type="UCNameType"/> - <xs:element minOccurs="1" maxOccurs="1" name="Size" type="HexAddressType"/> - <xs:element minOccurs="1" maxOccurs="unbounded" name="Attributes" type="EfiFvAttributeType"/> - <xs:element minOccurs="1" maxOccurs="1" name="AreaType" type="EfiFvAreaType"/> - <xs:element minOccurs="0" maxOccurs="unbounded" name="SubRegion" type="SubRegionType"/> - </xs:sequence> - </xs:complexType> - <xs:complexType name="SubRegionType"> - <xs:annotation> - <xs:documentation xml:lang="en">Define the regions and their uses for the device</xs:documentation> - </xs:annotation> - <xs:sequence> - <xs:element default="true" minOccurs="1" maxOccurs="1" name="CreateHob" type="xs:boolean"/> - <xs:element minOccurs="1" maxOccurs="1" name="Name" type="UCNameType"/> - <xs:element minOccurs="1" maxOccurs="1" name="Size" type="HexAddressType"/> - <xs:element minOccurs="1" maxOccurs="unbounded" name="Attributes" type="EfiFvAttributeType"/> - <xs:element minOccurs="1" maxOccurs="1" name="AreaType" type="EfiFvAreaType"/> - <xs:element minOccurs="1" maxOccurs="1" name="NameGuid" type="EfiNameGuidType"/> - </xs:sequence> - </xs:complexType> -</xs:schema> +<?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: FrameworkPlatformDataElements.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 Platform Data Elements that are specific to platform creation.</xs:documentation>
+ </xs:annotation>
+ <xs:include schemaLocation="NamingConvention.xsd"/>
+ <xs:include schemaLocation="FrameworkDataAttributes.xsd"/>
+ <xs:include schemaLocation="FrameworkDataTypes.xsd"/>
+ <xs:include schemaLocation="FrameworkDataElements.xsd"/>
+ <xs:include schemaLocation="FrameworkPlatformDataTypes.xsd"/>
+ <xs:element name="DataArray">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="HexByteArrayType">
+ <xs:attribute name="Name" type="xs:normalizedString" use="required"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="DataId">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:NCName">
+ <xs:attribute name="Seq" type="xs:nonNegativeInteger" use="required"/>
+ <xs:attribute name="SubRegion" type="UCNameType" use="required"/>
+ <xs:attribute name="DataSource" type="xs:normalizedString" use="required"/>
+ <xs:attribute name="SourceType" type="xs:NCName" use="required"/>
+ <xs:attribute name="DataSize" type="HexAddressType" use="optional"/>
+ <xs:attribute name="Alignment" type="xs:positiveInteger" use="optional"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="DataRegions">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="FvDataRegion">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" ref="DataId"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="DataArray"/>
+ </xs:sequence>
+ <xs:attribute name="Name" type="UCNameType" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Flash">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="1" ref="FlashDefinitionFile"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="FvImages"/>
+ </xs:sequence>
+ <xs:attribute name="MicrocodeFile" type="PathAndFilename" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- Valid Flash Definition Files that can be used for a platform The UiName and Perferred tags are optional, for use with Wizards.-->
+ <xs:element name="FlashDefinitionFile">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="PathAndFilename">
+ <!-- Id will be required eventually. -->
+ <xs:attribute name="Id" type="KeywordType" use="optional"/>
+ <xs:attribute name="UiName" type="UiNameType" use="optional"/>
+ <xs:attribute name="Preferred" type="xs:boolean" use="optional" default="false"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <!-- For Future Use! -->
+ <!-- This describes the physical layout of the hardware device, used by tools to verify different regions fit within a given number of blocks. -->
+ <!-- An EFI Region MUST start on a block boundary. A region may span multiple blocks. -->
+ <xs:element name="FlashDevice">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="PartNumber" type="xs:NCName"/>
+ <xs:choice>
+ <xs:sequence minOccurs="0">
+ <!-- Use this sequence for a part with fixed block sizes -->
+ <xs:element minOccurs="1" maxOccurs="1" name="NumBlocks" type="xs:positiveInteger"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="BlockSize" type="HexAddressType"/>
+ </xs:sequence>
+ <xs:sequence minOccurs="0">
+ <!-- Use this sequence for a part with variable block sizes -->
+ <xs:element maxOccurs="unbounded" name="VariableBlockSize">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="HexAddressType">
+ <xs:attribute name="BlockNum" type="xs:nonNegativeInteger" use="required"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="FlashDeviceDefinitions">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">We allow specifying the FlashMap filename</xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" ref="FlashDefinitionFile"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="FvImages"/>
+ <!-- DataRegions is for Future Use! -->
+ <xs:element minOccurs="0" maxOccurs="1" ref="DataRegions"/>
+ <xs:element minOccurs="1" maxOccurs="unbounded" ref="FvImageBindingSequence"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="FrameworkModules">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This is used in a Framework Platform Description (FPD) file</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" ref="ModuleSA"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="FvAttribute">
+ <xs:complexType>
+ <xs:attribute name="Name" type="xs:NCName" use="required"/>
+ <xs:attribute name="Value" type="xs:normalizedString" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="FwImage">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" ref="FvRegionName"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="FvOption"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="FvAttribute"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="FvImageBindingSequence">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="ValidRegionNameListType">
+ <xs:attribute name="PartId" type="KeywordType" use="required"/>
+ <xs:attribute name="OutputFile" type="PathAndFilename" use="required"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="FvImages">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This section allows the user to define specific information regarding the FvImage</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:choice>
+ <xs:sequence minOccurs="0">
+ <!-- This is the current style -->
+ <xs:element minOccurs="0" maxOccurs="unbounded" name="NameValue">
+ <xs:complexType>
+ <xs:attribute name="Name" type="xs:string" use="required"/>
+ <xs:attribute name="Value" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:choice>
+ <xs:element minOccurs="0" maxOccurs="unbounded" name="FvImage">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="FvImageNames" type="xs:NCName"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="FvImageOptions">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" name="NameValue">
+ <xs:complexType>
+ <xs:attribute name="Name" type="xs:string" use="required"/>
+ <xs:attribute name="Value" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="Type" type="FvImageTypes" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
+ <xs:element minOccurs="0" maxOccurs="unbounded" name="FvImageName">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="FvImageOptions">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" name="NameValue">
+ <xs:complexType>
+ <xs:attribute name="Name" type="xs:string" use="required"/>
+ <xs:attribute name="Value" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="Name" type="FvRegionTypes" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="FvRegionName">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="KeywordType">
+ <xs:attributeGroup ref="FvRegionNameAttributes"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="ModuleSA">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This element is used to specify information in the FPD ModuleSA section.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="1" ref="Libraries"/>
+ <!-- Only specification is allow here. We need to let this be an addtion OR, if the WORD portion MATCHES, this entry takes precedence.</xs:documentation -->
+ <xs:element minOccurs="0" maxOccurs="unbounded" name="Specification" type="Sentence"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="PcdBuildDefinition"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="ModuleSaBuildOptions"/>
+ <!-- The following BuildOptions Sections is for Legacy Ffs -->
+ <xs:element minOccurs="0" maxOccurs="1" name="BuildOptions">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="1" ref="UserDefinedAntTasks"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="ImageEntryPoint" type="C_NameType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="OutputDirectory">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:anyURI">
+ <xs:attribute default="UNIFIED" name="IntermediateDirectories" use="optional">
+ <xs:simpleType>
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="MODULE"/>
+ <xs:enumeration value="UNIFIED"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element minOccurs="0" maxOccurs="1" name="Ffs">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="1" name="Attribute">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="Name" type="C_NameType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="Value" type="C_NameType"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element minOccurs="0" maxOccurs="1" name="Sections">
+ <xs:complexType>
+ <xs:sequence minOccurs="1">
+ <xs:element name="Section" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref=" Filenames " minOccurs="0"/>
+ <xs:element name="Args" type=" ArgsType " minOccurs="0"/>
+ <xs:element name="OutFile" type=" FileNameConvention " minOccurs="0"/>
+ <xs:element name="OutputFileExtension" type=" xs:string " minOccurs="0"/>
+ <xs:element name="ToolName" type=" ToolType " minOccurs="0"/>
+ </xs:sequence>
+ <xs:attributeGroup ref=" SectionsAttributes "/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Sections" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence minOccurs="1" maxOccurs="unbounded">
+ <xs:element name="Section">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref=" Filenames " minOccurs="0"/>
+ <xs:element name="Args" type=" ArgsType " minOccurs="0"/>
+ <xs:element name="OutFile" type=" FileNameConvention " minOccurs="0"/>
+ <xs:element name="OutputFileExtension" type=" xs:string " minOccurs="0"/>
+ <xs:element name="ToolName" type=" ToolType " minOccurs="0"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="SectionsAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attributeGroup ref=" SectionsAttributes "/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attributeGroup ref=" SectionsAttributes "/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Sections">
+ <xs:complexType>
+ <xs:sequence minOccurs="1">
+ <xs:element name="Section" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref=" Filenames " minOccurs="0"/>
+ <xs:element name="Args" type=" ArgsType " minOccurs="0"/>
+ <xs:element name="OutFile" type=" FileNameConvention " minOccurs="0"/>
+ <xs:element name="OutputFileExtension" type=" xs:string " minOccurs="0"/>
+ <xs:element name="ToolName" type=" ToolType " minOccurs="0"/>
+ </xs:sequence>
+ <xs:attributeGroup ref=" SectionsAttributes "/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Sections" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence minOccurs="1" maxOccurs="unbounded">
+ <xs:element name="Section">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref=" Filenames " minOccurs="0"/>
+ <xs:element name="Args" type=" ArgsType " minOccurs="0"/>
+ <xs:element name="OutFile" type=" FileNameConvention " minOccurs="0"/>
+ <xs:element name="OutputFileExtension" type=" xs:string " minOccurs="0"/>
+ <xs:element name="ToolName" type=" ToolType " minOccurs="0"/>
+ </xs:sequence>
+ <xs:attributeGroup ref=" SectionsAttributes "/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attributeGroup ref=" SectionsAttributes "/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attributeGroup ref=" SectionsAttributes "/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Options">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name=" Option " minOccurs="1" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base=" xs:normalizedString ">
+ <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="ToolCommand" type=" ToolsNameConvention " use="optional"/>
+ <xs:attribute name="SupArchList" type=" ArchListType " use="optional"/>
+ <xs:attribute name="Platform" type=" UiNameType " use="optional"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <!-- Do not use ToolChain - it is a legacy value -->
+ <xs:attribute name="ToolChain" type="ToolChains" use="optional"/>
+ <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="ToolCommand" type=" ToolsNameConvention " use="optional"/>
+ <xs:attribute name="SupArchList" type=" ArchListType " use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- The following Externs Section is for Legacy Ffs -->
+ <xs:element minOccurs="0" maxOccurs="1" name="Externs">
+ <xs:complexType>
+ <xs:sequence minOccurs="1">
+ <xs:element name="PcdIsDriver" type=" PcdDriverTypes " minOccurs="0" maxOccurs="1"/>
+ <xs:element name="Specification" type=" Sentence " minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="Extern" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:choice minOccurs="1">
+ <xs:sequence minOccurs="0" maxOccurs="1">
+ <xs:element name=" ModuleEntryPoint " type=" C_NameType " minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name=" ModuleUnloadImage " type=" C_NameType " minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:sequence minOccurs="0" maxOccurs="1">
+ <xs:element name=" Constructor " type=" C_NameType " minOccurs="0" maxOccurs="1"/>
+ <xs:element name=" Destructor " type=" C_NameType " minOccurs="0" maxOccurs="1"/>
+ </xs:sequence>
+ <xs:sequence minOccurs="0" maxOccurs="1">
+ <xs:element name=" DriverBinding " type=" C_NameType " minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name=" ComponentName " type=" C_NameType " minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name=" DriverConfig " type=" C_NameType " minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name=" DriverDiag " type=" C_NameType " minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:sequence minOccurs="0" maxOccurs="1">
+ <xs:element name=" SetVirtualAddressMapCallBack " type=" C_NameType " minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name=" ExitBootServicesCallBack " type=" C_NameType " minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:choice>
+ <xs:attributeGroup ref=" ExternAttributes "/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attributeGroup ref="MsaAttributes"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="FvOption">
+ <xs:complexType>
+ <xs:attribute name="Name" type="xs:NCName" use="required"/>
+ <xs:attribute name="Value" type="xs:normalizedString" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="PlatformList">
+ <!-- Valid for DB usage only! -->
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This is used in the FrameworkDatabase file</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="Filename" type="DbPathAndFilename"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
diff --git a/Tools/XMLSchema/FrameworkPlatformDataTypes.xsd b/Tools/XMLSchema/FrameworkPlatformDataTypes.xsd index ddb27d2..8631918 100644 --- a/Tools/XMLSchema/FrameworkPlatformDataTypes.xsd +++ b/Tools/XMLSchema/FrameworkPlatformDataTypes.xsd @@ -1,6 +1,6 @@ <?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: FrameworkPlatformDataTypes.xsd
Copyright (c) 2006, Intel Corp.
@@ -11,88 +11,114 @@ 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 Platform Data Types.</xs:documentation>
+ </xs:annotation>
+ <xs:include schemaLocation="NamingConvention.xsd"/>
+ <xs:include schemaLocation="FrameworkDataAttributes.xsd"/>
+ <xs:include schemaLocation="FrameworkDataTypes.xsd"/>
+ <xs:simpleType name="EfiFfsFileTypes">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="EFI_FV_FILETYPE"/>
+ <xs:enumeration value="EFI_FV_FILETYPE_ALL"/>
+ <xs:enumeration value="EFI_FV_FILETYPE_RAW"/>
+ <xs:enumeration value="EFI_FV_FILETYPE_FREEFORM"/>
+ <xs:enumeration value="EFI_FV_FILETYPE_SECURITY_CORE"/>
+ <xs:enumeration value="EFI_FV_FILETYPE_PEI_CORE"/>
+ <xs:enumeration value="EFI_FV_FILETYPE_DXE_CORE"/>
+ <xs:enumeration value="EFI_FV_FILETYPE_PEIM"/>
+ <xs:enumeration value="EFI_FV_FILETYPE_DRIVER"/>
+ <xs:enumeration value="EFI_VF_FILETYPE_COMBINED_PEIM_DRIVER"/>
+ <xs:enumeration value="EFI_VF_FILETYPE_APPLICATION"/>
+ <xs:enumeration value="EFI_VF_FILETYPE_FIRMWARE_VOLUME_IMAGE"/>
+ <xs:enumeration value="EFI_FV_FILETYPE_FFS_PAD"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="EfiFvAreaType">
<xs:annotation>
- <xs:documentation xml:lang="en"> This schema defines EFI and Framework Platform Data Types.</xs:documentation>
+ <xs:documentation xml:lang="en">The list of valid EFI Area Types</xs:documentation>
</xs:annotation>
- <xs:include schemaLocation="NamingConvention.xsd"/>
- <xs:include schemaLocation="FrameworkDataAttributes.xsd"/>
- <xs:include schemaLocation="FrameworkDataTypes.xsd"/>
- <xs:simpleType name="EfiFvAttributeType">
- <xs:annotation>
- <xs:documentation xml:lang="en">The list of EFI_FLASH_AREA Attributes</xs:documentation>
- </xs:annotation>
- <xs:restriction base="UCNameType">
- <xs:enumeration value="EFI_FLASH_AREA_FV"/>
- <xs:enumeration value="EFI_FLASH_AREA_MEMMAPPED_FV"/>
- <xs:enumeration value="EFI_FLASH_AREA_SUBFV"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="EfiFvAreaType">
- <xs:annotation>
- <xs:documentation xml:lang="en">The list of valid EFI Area Types</xs:documentation>
- </xs:annotation>
- <xs:restriction base="UCNameType">
- <xs:enumeration value="EFI_FLASH_AREA_EFI_VARIABLES"/>
- <xs:enumeration value="EFI_FLASH_AREA_UNUSED"/>
- <xs:enumeration value="EFI_FLASH_AREA_MAIN_BIOS"/>
- <xs:enumeration value="EFI_FLASH_AREA_GUID_DEFINED"/>
- <xs:enumeration value="EFI_FLASH_AREA_FTW_STATE"/>
- <xs:enumeration value="EFI_FLASH_AREA_FTW_BACKUP"/>
- <xs:enumeration value="EFI_FLASH_AREA_RECOVERY_BIOS"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="EfiNameGuidType">
- <xs:annotation>
- <xs:documentation xml:lang="en">Right now, only EFI_FLASH_MAP_HOB_GUID is defined</xs:documentation>
- </xs:annotation>
- <xs:restriction base="UCNameType">
- <xs:enumeration value="EFI_FLASH_MAP_HOB_GUID"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="FlashSize">
- <xs:restriction base="xs:string">
- <xs:enumeration value="256KB"/>
- <xs:enumeration value="512KB"/>
- <xs:enumeration value="1MB"/>
- <xs:enumeration value="2MB"/>
- <xs:enumeration value="4MB"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="FvImageTypes">
- <xs:restriction base="xs:NCName">
- <xs:enumeration value="Attributes"/>
- <xs:enumeration value="Options"/>
- <xs:enumeration value="Components"/>
- <xs:enumeration value="ValidImageNames"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="FvSubRegionTypes">
- <xs:restriction base="UCNameType">
- <xs:enumeration value="NV_VARIABLE_STORE"/>
- <xs:enumeration value="MICROCODE"/>
- <xs:enumeration value="NV_FTW_WORKING"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="EfiFfsFileTypes">
- <xs:restriction base="UCNameType">
- <xs:enumeration value="EFI_FV_FILETYPE"/>
- <xs:enumeration value="EFI_FV_FILETYPE_ALL"/>
- <xs:enumeration value="EFI_FV_FILETYPE_RAW"/>
- <xs:enumeration value="EFI_FV_FILETYPE_FREEFORM"/>
- <xs:enumeration value="EFI_FV_FILETYPE_SECURITY_CORE"/>
- <xs:enumeration value="EFI_FV_FILETYPE_PEI_CORE"/>
- <xs:enumeration value="EFI_FV_FILETYPE_DXE_CORE"/>
- <xs:enumeration value="EFI_FV_FILETYPE_PEIM"/>
- <xs:enumeration value="EFI_FV_FILETYPE_DRIVER"/>
- <xs:enumeration value="EFI_VF_FILETYPE_COMBINED_PEIM_DRIVER"/>
- <xs:enumeration value="EFI_VF_FILETYPE_APPLICATION"/>
- <xs:enumeration value="EFI_VF_FILETYPE_FIRMWARE_VOLUME_IMAGE"/>
- <xs:enumeration value="EFI_FV_FILETYPE_FFS_PAD"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="FfsDataAlignmentType">
- <xs:restriction base="xs:nonNegativeInteger">
- <xs:pattern value="[0-7]{1}"/>
- </xs:restriction>
- </xs:simpleType>
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="EFI_FLASH_AREA_RECOVERY_BIOS"/>
+ <xs:enumeration value="EFI_FLASH_AREA_MAIN_BIOS"/>
+ <xs:enumeration value="EFI_FLASH_AREA_PAL_B"/>
+ <xs:enumeration value="EFI_FLASH_AREA_RESERVED_03"/>
+ <xs:enumeration value="EFI_FLASH_AREA_RESERVED_04"/>
+ <xs:enumeration value="EFI_FLASH_AREA_DMI_FRU"/>
+ <xs:enumeration value="EFI_FLASH_AREA_OEM_BINARY"/>
+ <xs:enumeration value="EFI_FLASH_AREA_RESERVED_07"/>
+ <xs:enumeration value="EFI_FLASH_AREA_RESERVED_08"/>
+ <xs:enumeration value="EFI_FLASH_AREA_RESERVED_09"/>
+ <xs:enumeration value="EFI_FLASH_AREA_RESERVED_0A"/>
+ <xs:enumeration value="EFI_FLASH_AREA_EFI_VARIABLES"/>
+ <xs:enumeration value="EFI_FLASH_AREA_MCA_LOG"/>
+ <xs:enumeration value="EFI_FLASH_AREA_SMBIOS_LOG"/>
+ <xs:enumeration value="EFI_FLASH_AREA_FTW_BACKUP"/>
+ <xs:enumeration value="EFI_FLASH_AREA_FTW_STATE"/>
+ <xs:enumeration value="EFI_FLASH_AREA_UNUSED"/>
+ <xs:enumeration value="EFI_FLASH_AREA_GUID_DEFINED"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="EfiFvAttributeListType">
+ <xs:list itemType="EfiFvAttributeType"/>
+ </xs:simpleType>
+ <xs:simpleType name="EfiFvAttributeType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">The list of EFI_FLASH_AREA Attributes</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="EFI_FLASH_AREA_FV"/>
+ <xs:enumeration value="EFI_FLASH_AREA_MEMMAPPED_FV"/>
+ <xs:enumeration value="EFI_FLASH_AREA_SUBFV"/>
+ <xs:enumeration value="EFI_FLASH_AREA_REQUIRED"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="EfiNameGuidType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Right now, only EFI_FLASH_MAP_HOB_GUID is defined</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="EFI_FLASH_MAP_HOB_GUID"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="FfsDataAlignmentType">
+ <xs:restriction base="xs:nonNegativeInteger">
+ <xs:pattern value="[0-7]{1}"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="FfsNameType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en"> This defines what an FFS Name can consist of.</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:pattern value="[a-zA-Z][_\-a-zA-Z0-9]*(\.)?[a-zA-Z0-9]*"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="FlashSize">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="256KB"/>
+ <xs:enumeration value="512KB"/>
+ <xs:enumeration value="1MB"/>
+ <xs:enumeration value="2MB"/>
+ <xs:enumeration value="4MB"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="FvImageTypes">
+ <xs:restriction base="xs:NCName">
+ <xs:enumeration value="Attributes"/>
+ <xs:enumeration value="Options"/>
+ <xs:enumeration value="Components"/>
+ <xs:enumeration value="ImageName"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="FvSubRegionTypes">
+ <xs:restriction base="UCNameType">
+ <xs:enumeration value="NV_VARIABLE_STORE"/>
+ <xs:enumeration value="MICROCODE"/>
+ <xs:enumeration value="NV_FTW_WORKING"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="ValidRegionNameListType">
+ <xs:list itemType="KeywordType"/>
+ </xs:simpleType>
</xs:schema>
diff --git a/Tools/XMLSchema/NamingConvention.xsd b/Tools/XMLSchema/NamingConvention.xsd index 987c971..ce477cc 100644 --- a/Tools/XMLSchema/NamingConvention.xsd +++ b/Tools/XMLSchema/NamingConvention.xsd @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.TianoCore.org/2006/Edk2.0" xmlns="http://www.TianoCore.org/2006/Edk2.0">
- <!--
+ <!--
Filename: NamingConvention.xsd
Copyright (c) 2006, Intel Corp.
@@ -12,339 +12,169 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-->
+ <xs:annotation>
+ <xs:documentation xml:lang="en"> This schema defines various data types and naming conventions including: base name, filename and directory naming conventions. These are all simple data types.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType name="C_NameType">
<xs:annotation>
- <xs:documentation xml:lang="en"> This schema defines various data types and naming conventions including: base name, filename and directory naming conventions. These are all simple data types.</xs:documentation>
+ <xs:documentation xml:lang="en"> C_Names must start with either an underscore (_) character followed by one or more alpha characters, followed by any combination of underscore or alphanumeric characters.</xs:documentation>
</xs:annotation>
- <xs:simpleType name="BaseNameConvention">
- <xs:annotation>
- <xs:documentation xml:lang="en"> Base Names must start with an upper case character, followed by one or more alphanumeric characters and/or an optional underscore (_) character followed by one or more alphanumeric characters. Examples: Base_name3, BASE_NAME3, BaseName3 </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="[A-Z]([a-zA-Z0-9])*(_)?([a-zA-Z0-9])*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="C_Name">
- <xs:annotation>
- <xs:documentation xml:lang="en"> C_Names must start with either an underscore (_) character followed by one or more alpha characters, followed by any combination of underscore or alphanumeric characters.</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="((_)*([a-zA-Z])+((_)*[a-zA-Z0-9]*))*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="C_NameType">
- <xs:annotation>
- <xs:documentation xml:lang="en"> C_Names must start with either an underscore (_) character followed by one or more alpha characters, followed by any combination of underscore or alphanumeric characters.</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="((_)*([a-zA-Z])+((_)*[a-zA-Z0-9]*))*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="DirectoryNamingConvention">
- <xs:annotation>
- <xs:documentation xml:lang="en"> Directory naming convention is a UNION of DOS an UNIX directory path names </xs:documentation>
- </xs:annotation>
- <xs:union memberTypes="Directory_DOS Directory_UNIX"/>
- </xs:simpleType>
- <xs:simpleType name="Directory_DOS">
- <xs:annotation>
- <xs:documentation xml:lang="en"> Directory naming convention for Windows backslash (\) directory path name </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="([a-zA-Z]:\\)?(((\\?_*-*.*[a-zA-Z0-9]*)*(_*-*.*[a-zA-Z0-9])*)+(\\)?)*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="Directory_UNIX">
- <xs:annotation>
- <xs:documentation xml:lang="en"> Directory naming convention for UNIX forwardslash (/) directory path name </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="(\/)?(((_*-*.*[a-zA-Z0-9]*)*(_*-*.*[a-zA-Z0-9])*)+(\/)?)*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="E-Mail">
- <xs:restriction base="xs:string">
- <xs:pattern value="[a-zA-Z]+(( )*.?-?[a-zA-Z]*)*@[a-zA-Z]+(( )*.?-?[a-zA-Z]*)*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="FileNameConvention">
- <xs:annotation>
- <xs:documentation xml:lang="en"> This defines what a Filename is: Alphanumeric characters and optional underscore (_) or dash (-) characters, followed by a optional dot and more alphanumeric characters. </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="[a-zA-Z][a-zA-Z0-9]*((_)*(-)*(.)*[a-zA-Z0-9]*)*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="GuidArrayType">
- <xs:annotation>
- <xs:documentation xml:lang="en"> This defines the minimum specification for a GUID Array which is 8 Hex Digits - 4 Hex Digits - 4 Hex Digits - 8 Hex Bytes, the last 16 Hex Digits can be enclosed in sqiggle {} brackets.</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="0x[a-fA-F0-9]{1,8},( )*0x[a-fA-F0-9]{1,4},( )*0x[a-fA-F0-9]{1,4}(,( )*\{)?(,?( )*0x[a-fA-F0-9]{1,2}){8}( )*(\})?"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="GuidC_NameType">
- <xs:annotation>
- <xs:documentation xml:lang="en"> C_Names must start with either an underscore (_) character followed by one or more alpha characters, followed by any combination of underscore or alphanumeric characters.</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="((_)*([a-zA-Z])+((_)*[a-zA-Z0-9]*))*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="GuidNamingConvention">
- <xs:annotation>
- <xs:documentation xml:lang="en"> A GUID must contain five different Hexadecimal character sets that are separated by a dash (-) character. </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="GuidType">
- <xs:annotation>
- <xs:documentation xml:lang="en"> The GUID data is union of GuidNaming Convetion and GuidArrayType. </xs:documentation>
- </xs:annotation>
- <xs:union memberTypes="GuidArrayType GuidNamingConvention"/>
- </xs:simpleType>
- <xs:simpleType name="Hex64BitDataType">
- <xs:annotation>
- <xs:documentation xml:lang="en">Define a Hex 64 Bit Value to be 0x[a-f0-9]{16}</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="(0x)?[a-fA-F0-9]{1,16}"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="HexAddressType">
- <xs:annotation>
- <xs:documentation xml:lang="en">Define a Hex Address, 0x[a-fA-F0-9]{1,16}</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="0x[a-fA-F0-9]{1,16}"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="HexByteDataType">
- <xs:annotation>
- <xs:documentation xml:lang="en">Define a Hex Byte Value to be 0x[a-f0-9]{2}</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="(0x)?[a-fA-F0-9]{1,2}"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="HexDataType">
- <xs:annotation>
- <xs:documentation xml:lang="en">Define a Hex Value to be 0x[a-f0-9]+</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="0x[a-fA-F0-9]+"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="HexDigitType">
- <xs:annotation>
- <xs:documentation xml:lang="en">Define a Hex Diget to be 0x[a-f0-9]</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="[a-fA-F0-9]{1}"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="HexDoubleWordDataType">
- <xs:annotation>
- <xs:documentation xml:lang="en">Define a Hex Double Word Value to be 0x[a-f0-9]{8}</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="0x[a-fA-F0-9]{1,8}"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="HexWordDataType">
- <xs:annotation>
- <xs:documentation xml:lang="en">Define a Hex Word Value to be 0x[a-f0-9]{4}</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="0x[a-fA-F0-9]{1,4}"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="LibraryNameConvention">
- <xs:annotation>
- <xs:documentation xml:lang="en"> This defines what a Library name is: alphanumeric characters and optional underscore (_) characters. </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="[A-Z][a-zA-Z0-9]*(_*[a-zA-Z0-9])*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="NameConvention">
- <xs:annotation>
- <xs:documentation xml:lang="en">What is a name, any series of alphanumeric characters and one or more underline characters that may occur in any position</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:normalizedString">
- <xs:pattern value="(_*[a-zA-Z0-9]*_*)+"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="Paragraph">
- <xs:annotation>
- <xs:documentation xml:lang="en">This describes the normal text of a paragraph that can be used in a license or description tag.</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string"/>
- </xs:simpleType>
- <xs:simpleType name="PathAndFilename">
- <xs:annotation>
- <xs:documentation xml:lang="en"> Naming convention for a path and file name</xs:documentation>
- </xs:annotation>
- <xs:union memberTypes="Directory_DOS Directory_UNIX"/>
- </xs:simpleType>
- <xs:simpleType name="PlatformNamingConvention">
- <xs:annotation>
- <xs:documentation xml:lang="en"> This defines what a Platform Name is: Alphanumeric characters and optional underscore (_) or dash (-) characters, followed by a dot and more alphanumeric characters. </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:NCName">
- <xs:pattern value="(([a-zA-Z][a-zA-Z0-9]*)(_)*(.)*)+"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="Polarity">
- <xs:annotation>
- <xs:documentation xml:lang="en">Limit Polarity vaild values to -1, 0 and 1</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:int">
- <xs:pattern value="-1|0|1"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="Sentence">
- <xs:annotation>
- <xs:documentation xml:lang="en"> This data type requires two or more words </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:normalizedString">
- <xs:pattern value="(\w+\W*)+( )+(\W*\w*\W*\s*)*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="ToolNameConvention">
- <xs:annotation>
- <xs:documentation xml:lang="en"> This defines what a Tool name is: Alphanumeric characters and optional underscore (_) or dash (-) characters, optionally followed by a dot and more alphanumeric characters. </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="[a-zA-Z][a-zA-Z0-9]*(_*-*.*[a-zA-Z0-9])*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="ToolsNameConvention">
- <xs:annotation>
- <xs:documentation xml:lang="en">This data type is used for ToolCommand, ToolChainFamily and TagName.</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:NCName">
- <xs:pattern value="[a-zA-Z][a-zA-Z0-9]*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="UCLetterType">
- <xs:annotation>
- <xs:documentation xml:lang="en"> Definition of a UpperCase Letter type, which can be any combination of upper case characters followed by zero or more underscore and/or uppercase alphanumeric characters </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="[A-Z]{1}"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="UCNameType">
- <xs:annotation>
- <xs:documentation xml:lang="en"> Definition of a UpperCase Name, which can be any combination of upper case characters followed by zero or more underscore and/or uppercase alphanumeric characters </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="[A-Z]+(_*[A-Z0-9]*( )*)*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="UserName">
- <xs:annotation>
- <xs:documentation xml:lang="en">Specify a User Name</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="[a-zA-Z]+(( )*.?-?[a-zA-Z]*)*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="V1">
- <xs:annotation>
- <xs:documentation xml:lang="en">%VAR%(Directory)*(File_Names)*</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="((%[A-Z](_*[A-Z0-9]*)*%)+((((\\)?_*-*.*[a-zA-Z0-9]*)*(_*-*.*[a-zA-Z0-9])*)+(\\)?)*)"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="V2">
- <xs:annotation>
- <xs:documentation xml:lang="en">($VAR | $( VAR) | ${VAR})(Directory)*(File_Names)</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="(($[A-Z](_*[A-Z0-9]*)*)+||($\([A-Z](_*[A-Z0-9]*)*\))+||($\{[A-Z](_*[A-Z0-9]*)*\})+)+(\/)?(((((_*-*.*[a-zA-Z0-9]*)*(_*-*.*[a-zA-Z0-9])*)+(\/)?)*)*)"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="VariableConvention">
- <xs:annotation>
- <xs:documentation xml:lang="en">VariableConvention is a UNION of: $VAR, $( VAR), ${VAR} and %VAR% and Directory and File Names</xs:documentation>
- </xs:annotation>
- <xs:union memberTypes="V1 V2"/>
- </xs:simpleType>
- <xs:simpleType name="VariableGuidType">
- <xs:annotation>
- <xs:documentation xml:lang="en"> The GUID data is union of GuidNaming Convetion and GuidArrayType. </xs:documentation>
- </xs:annotation>
- <xs:union memberTypes="GuidArrayType GuidNamingConvention Zero"/>
- </xs:simpleType>
- <xs:simpleType name="VariableNamingConvention">
- <xs:annotation>
- <xs:documentation xml:lang="en">VariableConvention is a UNION of: $VAR, $( VAR), ${VAR} and %VAR%</xs:documentation>
- </xs:annotation>
- <xs:union memberTypes="Variable_DOS Variable_UNIX Variable_UNIX_Scope1 Variable_UNIX_Scope2"/>
- </xs:simpleType>
- <xs:simpleType name="Variable_DOS">
- <xs:annotation>
- <xs:documentation xml:lang="en"> Definition of a DOS Variable Name: %VAR% It must start with an Upper Case character.</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="%[A-Z](_*[A-Z0-9]*)*%"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="Variable_UNIX">
- <xs:annotation>
- <xs:documentation xml:lang="en"> Definition of a UNIX Variable Name: $VAR It must start with an Upper Case character.</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="$[A-Z](_*[A-Z0-9]*)*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="Variable_UNIX_Scope1">
- <xs:annotation>
- <xs:documentation xml:lang="en"> Definition of a UNIX Variable Name: $( VAR1) It must start with an Upper Case character.</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="$\([A-Z](_*[A-Z0-9]*)*\)"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="Variable_UNIX_Scope2">
- <xs:annotation>
- <xs:documentation xml:lang="en"> Definition of a UNIX Variable Name: ${ VAR1} It must start with an Upper Case character.</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="$\{[A-Z](_*[A-Z0-9]*)*\}"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="VersionDataType">
- <xs:annotation>
- <xs:documentation xml:lang="en"> Definition of a Version Number, which must be a decimal number (or Zero) </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="(\d)+(.)?(\d)+"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="Zero">
- <xs:annotation>
- <xs:documentation xml:lang="en">Define Zero as a vaild value</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:int">
- <xs:pattern value="0"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="OldVersionDataType">
- <xs:annotation>
- <xs:documentation xml:lang="en"> Definition of a Version Number, which can be any combination of a number followed by zero or more alphanumeric-dot-alphanumeric characters </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:pattern value="([0-9])+[a-zA-Z0-9]*(-?.?([a-zA-Z0-9])*)*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="KeywordType">
- <xs:restriction base="xs:normalizedString">
- <xs:pattern value="[a-zA-Z]+(_*[a-zA-Z0-9]*)*"/>
- </xs:restriction>
- </xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:pattern value="(_)*[a-zA-Z]+((_)*[a-zA-Z0-9]*)*"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="FileNameConvention">
+ <xs:annotation>
+ <xs:documentation xml:lang="en"> This defines what a Filename is: Alphanumeric characters and optional underscore (_) or dash (-) characters, followed by a optional dot and more alphanumeric characters. </xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:pattern value="[a-zA-Z](\.?[-_a-zA-Z0-9]+)*"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="GuidType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en"> The GUID data was a union of GuidType1 and GuidType2; standardizing on GuidType2. </xs:documentation>
+ </xs:annotation>
+ <xs:union memberTypes="GuidType2"/>
+ </xs:simpleType>
+ <xs:simpleType name="GuidType1">
+ <xs:annotation>
+ <xs:documentation xml:lang="en"> This defines the minimum specification for a GUID Array which is 8 Hex Digits - 4 Hex Digits - 4 Hex Digits - 8 Hex Bytes, the last 16 Hex Digits can be enclosed in sqiggle {} brackets.</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:pattern value="0x[a-fA-F0-9]{1,8},( )*0x[a-fA-F0-9]{1,4},( )*0x[a-fA-F0-9]{1,4}(,( )*\{)?(,?( )*0x[a-fA-F0-9]{1,2}){8}( )*(\})?"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="GuidType2">
+ <xs:annotation>
+ <xs:documentation xml:lang="en"> A GUID must contain five different Hexadecimal character sets that are separated by a dash (-) character. </xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:pattern value="[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="Hex64BitDataType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Define a Hex 64 Bit Value to be 0x[a-f0-9]{16}</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:pattern value="(0x)?[a-fA-F0-9]{1,16}"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="HexAddressType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Define a Hex Address, 0x[a-fA-F0-9]{1,16}</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:pattern value="0x[a-fA-F0-9]{1,16}"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="HexByteDataType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Define a Hex Byte Value to be 0x[a-f0-9]{2}</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:pattern value="(0x)?[a-fA-F0-9]{1,2}"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="HexDataType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Define a Hex Value to be 0x[a-f0-9]+</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:pattern value="0x[a-fA-F0-9]+"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="HexDigitType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Define a Hex Diget to be 0x[a-f0-9]</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:pattern value="[a-fA-F0-9]{1}"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="HexDoubleWordDataType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Define a Hex Double Word Value to be 0x[a-f0-9]{8}</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:pattern value="0x[a-fA-F0-9]{1,8}"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="HexWordDataType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Define a Hex Word Value to be 0x[a-f0-9]{4}</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:pattern value="0x[a-fA-F0-9]{1,4}"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="KeywordType">
+ <xs:restriction base="xs:normalizedString">
+ <xs:pattern value="[a-zA-Z]+(_*[a-zA-Z0-9]*)*"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="Paragraph">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This describes the normal text of a paragraph that can be used in a license or description tag.</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:string"/>
+ </xs:simpleType>
+ <xs:simpleType name="PathAndFilename">
+ <xs:annotation>
+ <xs:documentation xml:lang="en"> Naming convention for a path and file name</xs:documentation>
+ </xs:annotation>
+ <xs:union memberTypes="xs:normalizedString xs:anyURI"/>
+ </xs:simpleType>
+ <xs:simpleType name="Polarity">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Limit Polarity vaild values to 0 and 1</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:int">
+ <xs:pattern value="0|1"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="Sentence">
+ <xs:annotation>
+ <xs:documentation xml:lang="en"> This data type requires two or more words </xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:normalizedString">
+ <xs:pattern value="(\w+\W*)+( )+(\W*\w*\W*\s*)*"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="ToolsNameConvention">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This data type is used for ToolCommand, ToolChainFamily and TagName.</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:NCName">
+ <xs:pattern value="[a-zA-Z][a-zA-Z0-9]*"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="UCNameType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en"> Definition of a UpperCase Name, which can be any combination of upper case characters followed by zero or more underscore and/or uppercase alphanumeric characters </xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:pattern value="[A-Z]+(_*[A-Z0-9]*)*"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="VersionDataType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en"> Definition of a Version Number, which is one or more strings of decimal digits separated by dots. </xs:documentation>
+ <xs:documentation>
+ The algorithm to compare two versions A and B is as follows. if A==B, then A is the same version as B. Otherwise, say A is a1.a2.a3...an and B is b1.b2.b3...bn. For the first pair (ai, bi), for i less than n and i less than m, where ai is not equal to bi, if ai is less than bi, then A is less than B. If ai is greater than bi, then A is greater than B.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:pattern value="\d+(\.\d+)*"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="Zero">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Define Zero as a vaild value</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:int">
+ <xs:pattern value="0"/>
+ </xs:restriction>
+ </xs:simpleType>
</xs:schema>
diff --git a/Tools/XMLSchema/SurfaceArea.xsd b/Tools/XMLSchema/SurfaceArea.xsd index b9157f5..76461be 100644 --- a/Tools/XMLSchema/SurfaceArea.xsd +++ b/Tools/XMLSchema/SurfaceArea.xsd @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.TianoCore.org/2006/Edk2.0" xmlns="http://www.TianoCore.org/2006/Edk2.0">
- <!--
+ <!--
Filename: SurfaceArea.xsd
Copyright (c) 2006, Intel Corp.
@@ -11,201 +11,119 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+ APPROVED: 14-Jun-2006
-->
- <xs:include schemaLocation="FrameworkHeaders.xsd"/>
- <xs:include schemaLocation="FrameworkDataElements.xsd"/>
- <xs:include schemaLocation="FrameworkPlatformDataElements.xsd"/>
- <xs:annotation>
- <xs:documentation xml:lang="en">The following defines the valid format for the Framework Database (DB) File.</xs:documentation>
- </xs:annotation>
- <xs:element name="FrameworkDatabase">
- <xs:complexType>
+ <xs:include schemaLocation="FrameworkHeaders.xsd"/>
+ <xs:include schemaLocation="FrameworkDataElements.xsd"/>
+ <xs:include schemaLocation="FrameworkPlatformDataElements.xsd"/>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This describes the valid content of a FrameworkDatabase (DB) File.</xs:documentation>
+ </xs:annotation>
+ <xs:element name="FrameworkDatabase">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" ref="FdbHeader"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="PackageList"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="PlatformList"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="FarList"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This describes the valid content of a Framework Platform Description (FPD) File.</xs:documentation>
+ </xs:annotation>
+ <xs:element name="PlatformSurfaceArea">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" ref="PlatformHeader"/>
+ <!-- This section will be for new definitions of how we put together the Framework Binary Images -->
+ <xs:element minOccurs="0" maxOccurs="1" ref="PlatformDefinitions"/>
+ <!-- The Flash section is the legacy implementation of Flash -->
+ <xs:element minOccurs="0" maxOccurs="1" ref="Flash"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="FrameworkModules"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="DynamicPcdBuildDefinitions"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This describes the valid content for a Module Surface Area Description (MSA) file.</xs:documentation>
+ </xs:annotation>
+ <xs:element name="ModuleSurfaceArea">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" ref="MsaHeader"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="ModuleDefinitions"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="LibraryClassDefinitions"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="SourceFiles"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="PackageDependencies"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="Protocols"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="Events"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="Hobs"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="PPIs"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="Variables"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="BootModes"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="SystemTables"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="DataHubs"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="HiiPackages"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="Guids"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="Externs"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="PcdCoded"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="ModuleBuildOptions"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">This describes the valid content for a Package Surface Area Description (SPD) file.</xs:documentation>
+ </xs:annotation>
+ <xs:element name="PackageSurfaceArea">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" ref="SpdHeader"/>
+ <xs:element minOccurs="1" maxOccurs="1" ref="PackageDefinitions"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="LibraryClassDeclarations"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="IndustryStdIncludes"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="MsaFiles"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="PackageHeaders"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="GuidDeclarations"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="ProtocolDeclarations"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="PpiDeclarations"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="PcdDeclarations"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <!-- This element is listed here, only because we are using elements from both the FrameworkDataElements and FrameworkPlatformDataElements files. -->
+ <xs:element name="PlatformDefinitions">
+ <xs:complexType>
+ <xs:sequence>
+ <!-- This is the list of ALL architectures that are supported by this Platform -->
+ <xs:element minOccurs="1" maxOccurs="1" name="SupportedArchitectures" type="ArchListType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="BuildTargets" type="BuildTargetList"/>
+ <xs:element default="UNIFIED" name="IntermediateDirectories" type="IntermediateOutputType"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="OutputDirectory" type="xs:anyURI"/>
+ <!-- SkuInfo is only defined if Sku enabled -->
+ <xs:element minOccurs="0" maxOccurs="1" ref="SkuInfo"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="FlashDeviceDefinitions"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="FfsFormatDeclarations"/>
+ <xs:element minOccurs="0" maxOccurs="1" name="ClonedFrom">
+ <xs:complexType>
<xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" ref="FdbHeader"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="PackageList"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="PlatformList"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="FarList"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>
+ <xs:element minOccurs="1" maxOccurs="unbounded" name="Cloned">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="PlatformGuid" type="GuidType"/>
+ <xs:element minOccurs="1" maxOccurs="1" name="PlatformVersion" type="VersionDataType"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
</xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:annotation>
- <xs:documentation xml:lang="en">The following describes the valid format for the Framework Platform Description (FPD) File.</xs:documentation>
- </xs:annotation>
- <xs:element name="FrameworkPlatformDescription">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" ref="PlatformHeader"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="PlatformDefinitions"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Flash"/>
- <!-- DO NOT USE! removing TianoImage, use FrameworkModules instead. -->
- <xs:element minOccurs="0" maxOccurs="1" ref="TianoImage"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="FrameworkModules"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="DynamicPcdBuildDefinitions"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="PlatformSurfaceArea">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" ref="PlatformHeader"/>
- <!-- This section will be for new definitions of how we put together the Framework Binary Images -->
- <xs:element minOccurs="0" maxOccurs="1" ref="PlatformDefinitions"/>
- <!-- The Flash section is the legacy implementation of Flash -->
- <xs:element minOccurs="0" maxOccurs="1" ref="Flash"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="FrameworkModules"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="DynamicPcdBuildDefinitions"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:annotation>
- <xs:documentation xml:lang="en">DO NOT USE removing all Library Module files - PUT IN PLATFORM DESCRIPTION FILE, FPD</xs:documentation>
- </xs:annotation>
- <xs:element name="LibraryModuleBuildDescription">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" ref="MbdLibHeader"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="SourceFiles"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Includes"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Libraries"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Protocols"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Events"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Hobs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="PPIs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Variables"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="BootModes"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="SystemTables"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="DataHubs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Formsets"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Guids"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Externs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="PCDs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:annotation>
- <xs:documentation xml:lang="en">DO NOT USE Removing all Library Module files - USE MODULE DESCRIPTION FILE, MSA</xs:documentation>
- </xs:annotation>
- <xs:element name="LibraryModuleSurfaceArea">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" ref="MsaLibHeader"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="LibraryClassDefinitions"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="SourceFiles"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Includes"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Libraries"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Protocols"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Events"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Hobs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="PPIs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Variables"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="BootModes"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="SystemTables"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="DataHubs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Formsets"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Guids"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Externs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="PCDs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="PcdCoded"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:annotation>
- <xs:documentation xml:lang="en">DO NOT USE Removing Build Description files - PUT IN PLATFORM DESCRIPTION FILE, FPD or RecommendedInstance Attribute in MSA LibraryClass</xs:documentation>
- </xs:annotation>
- <xs:element name="ModuleBuildDescription">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" ref="MbdHeader"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="SourceFiles"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Includes"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Libraries"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Protocols"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Events"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Hobs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="PPIs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Variables"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="BootModes"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="SystemTables"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="DataHubs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Formsets"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Guids"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Externs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="PCDs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:annotation>
- <xs:documentation xml:lang="en">This is the Module Surface Area Description (MSA) that contains the list of the module's source files, library classes that can or must be used by the module, the Include Paths, Protocols and Ppi's that are either produced or consued.</xs:documentation>
- </xs:annotation>
- <xs:element name="ModuleSurfaceArea">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" ref="MsaHeader"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="ModuleDefinitions"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="LibraryClassDefinitions"/>
- <xs:element minOccurs="1" maxOccurs="1" ref="SourceFiles"/>
- <xs:choice minOccurs="0">
- <!-- DO NOT USE! removing Includes, use PackageDependencies instead -->
- <xs:element minOccurs="0" maxOccurs="1" ref="Includes"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="PackageDependencies"/>
- </xs:choice>
- <xs:element minOccurs="0" maxOccurs="1" ref="Protocols"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Events"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Hobs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="PPIs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Variables"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="BootModes"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="SystemTables"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="DataHubs"/>
- <!-- DO NOT USE! removing Formsets, use HiiPackages instead -->
- <xs:element minOccurs="0" maxOccurs="1" ref="Formsets"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="HiiPackages"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Guids"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="Externs"/>
- <xs:choice minOccurs="0">
- <!-- DO NOT USE! removing PCDs, use PcdCoded instead -->
- <xs:element minOccurs="0" maxOccurs="1" ref="PCDs"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="PcdCoded"/>
- </xs:choice>
- <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="ModuleBuildOptions"/>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:annotation>
- <xs:documentation xml:lang="en">This describes the valid content for a Package Surface Area Description (SPD) file.</xs:documentation>
- </xs:annotation>
- <xs:element name="PackageSurfaceArea">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" ref="SpdHeader"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="PackageDefinitions"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="LibraryClassDeclarations"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="IndustryStdIncludes"/>
- <!-- DO NOT USE removing THIS INSTANCE of PackageDependencies, this is moving to FDP installation process -->
- <xs:element minOccurs="0" maxOccurs="1" ref="PackageDependencies"/>
- <!-- DO NOT USE removing MsaFiles, use MsaFileList instead , do not wrap in choice, too many entries to convert all at once. -->
- <xs:element minOccurs="0" maxOccurs="1" ref="MsaFiles"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="PackageHeaders"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="GuidDeclarations"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="ProtocolDeclarations"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="PpiDeclarations"/>
- <xs:choice minOccurs="0">
- <!-- DO NOT USE! removing PcdDefinitions, use PcdDeclarations instead. -->
- <xs:element minOccurs="0" maxOccurs="1" ref="PcdDefinitions"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="PcdDeclarations"/>
- </xs:choice>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
</xs:schema>
|