added PcdPlatformBusSpeed for BaseTimerLibLocalApic, thus this timer instance needn't depend on types of CPUs

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1909 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2006-11-07 08:43:22 +00:00
parent 1d940d05b5
commit b219108e51
6 changed files with 270 additions and 183 deletions

View File

@ -858,6 +858,14 @@
<MaxDatumSize>1</MaxDatumSize> <MaxDatumSize>1</MaxDatumSize>
<Value>0</Value> <Value>0</Value>
</PcdData> </PcdData>
<PcdData ItemType="FIXED_AT_BUILD">
<C_Name>PcdPlatformBusSpeed</C_Name>
<Token>0x0000000c</Token>
<TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>
<DatumType>UINT32</DatumType>
<MaxDatumSize>4</MaxDatumSize>
<Value>200000000</Value>
</PcdData>
</PcdBuildDefinition> </PcdBuildDefinition>
<ModuleSaBuildOptions> <ModuleSaBuildOptions>
<FvBinding>NULL</FvBinding> <FvBinding>NULL</FvBinding>
@ -4863,6 +4871,14 @@
<MaxDatumSize>1</MaxDatumSize> <MaxDatumSize>1</MaxDatumSize>
<Value>0x06</Value> <Value>0x06</Value>
</PcdData> </PcdData>
<PcdData ItemType="FIXED_AT_BUILD">
<C_Name>PcdPlatformBusSpeed</C_Name>
<Token>0x0000000c</Token>
<TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>
<DatumType>UINT32</DatumType>
<MaxDatumSize>4</MaxDatumSize>
<Value>200000000</Value>
</PcdData>
</PcdBuildDefinition> </PcdBuildDefinition>
<ModuleSaBuildOptions> <ModuleSaBuildOptions>
<FvBinding>NULL</FvBinding> <FvBinding>NULL</FvBinding>
@ -5032,6 +5048,14 @@
<MaxDatumSize>1</MaxDatumSize> <MaxDatumSize>1</MaxDatumSize>
<Value>0x06</Value> <Value>0x06</Value>
</PcdData> </PcdData>
<PcdData ItemType="FIXED_AT_BUILD">
<C_Name>PcdPlatformBusSpeed</C_Name>
<Token>0x0000000c</Token>
<TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>
<DatumType>UINT32</DatumType>
<MaxDatumSize>4</MaxDatumSize>
<Value>200000000</Value>
</PcdData>
</PcdBuildDefinition> </PcdBuildDefinition>
<ModuleSaBuildOptions> <ModuleSaBuildOptions>
<FvBinding>NULL</FvBinding> <FvBinding>NULL</FvBinding>
@ -5201,6 +5225,14 @@
<MaxDatumSize>1</MaxDatumSize> <MaxDatumSize>1</MaxDatumSize>
<Value>0x06</Value> <Value>0x06</Value>
</PcdData> </PcdData>
<PcdData ItemType="FIXED_AT_BUILD">
<C_Name>PcdPlatformBusSpeed</C_Name>
<Token>0x0000000c</Token>
<TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>
<DatumType>UINT32</DatumType>
<MaxDatumSize>4</MaxDatumSize>
<Value>200000000</Value>
</PcdData>
</PcdBuildDefinition> </PcdBuildDefinition>
<ModuleSaBuildOptions> <ModuleSaBuildOptions>
<FvBinding>NULL</FvBinding> <FvBinding>NULL</FvBinding>
@ -6036,6 +6068,14 @@
<MaxDatumSize>1</MaxDatumSize> <MaxDatumSize>1</MaxDatumSize>
<Value>0</Value> <Value>0</Value>
</PcdData> </PcdData>
<PcdData ItemType="FIXED_AT_BUILD">
<C_Name>PcdPlatformBusSpeed</C_Name>
<Token>0x0000000c</Token>
<TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>
<DatumType>UINT32</DatumType>
<MaxDatumSize>4</MaxDatumSize>
<Value>200000000</Value>
</PcdData>
</PcdBuildDefinition> </PcdBuildDefinition>
<ModuleSaBuildOptions> <ModuleSaBuildOptions>
<FvBinding>NULL</FvBinding> <FvBinding>NULL</FvBinding>
@ -10075,6 +10115,14 @@
<MaxDatumSize>1</MaxDatumSize> <MaxDatumSize>1</MaxDatumSize>
<Value>0</Value> <Value>0</Value>
</PcdData> </PcdData>
<PcdData ItemType="FIXED_AT_BUILD">
<C_Name>PcdPlatformBusSpeed</C_Name>
<Token>0x0000000c</Token>
<TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>
<DatumType>UINT32</DatumType>
<MaxDatumSize>4</MaxDatumSize>
<Value>200000000</Value>
</PcdData>
</PcdBuildDefinition> </PcdBuildDefinition>
<ModuleSaBuildOptions> <ModuleSaBuildOptions>
<FvBinding>NULL</FvBinding> <FvBinding>NULL</FvBinding>
@ -14118,6 +14166,14 @@
<MaxDatumSize>1</MaxDatumSize> <MaxDatumSize>1</MaxDatumSize>
<Value>0</Value> <Value>0</Value>
</PcdData> </PcdData>
<PcdData ItemType="FIXED_AT_BUILD">
<C_Name>PcdPlatformBusSpeed</C_Name>
<Token>0x0000000c</Token>
<TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>
<DatumType>UINT32</DatumType>
<MaxDatumSize>4</MaxDatumSize>
<Value>200000000</Value>
</PcdData>
</PcdBuildDefinition> </PcdBuildDefinition>
<ModuleSaBuildOptions> <ModuleSaBuildOptions>
<FvBinding>NULL</FvBinding> <FvBinding>NULL</FvBinding>

View File

@ -578,6 +578,14 @@
<MaxDatumSize>1</MaxDatumSize> <MaxDatumSize>1</MaxDatumSize>
<Value>TRUE</Value> <Value>TRUE</Value>
</PcdData> </PcdData>
<PcdData ItemType="FIXED_AT_BUILD">
<C_Name>PcdPlatformBusSpeed</C_Name>
<Token>0x0000000c</Token>
<TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>
<DatumType>UINT32</DatumType>
<MaxDatumSize>4</MaxDatumSize>
<Value>200000000</Value>
</PcdData>
</PcdBuildDefinition> </PcdBuildDefinition>
<ModuleSaBuildOptions> <ModuleSaBuildOptions>
<FvBinding>FV_RECOVERY</FvBinding> <FvBinding>FV_RECOVERY</FvBinding>
@ -2529,6 +2537,14 @@
<MaxDatumSize>1</MaxDatumSize> <MaxDatumSize>1</MaxDatumSize>
<Value>FALSE</Value> <Value>FALSE</Value>
</PcdData> </PcdData>
<PcdData ItemType="FIXED_AT_BUILD">
<C_Name>PcdPlatformBusSpeed</C_Name>
<Token>0x0000000c</Token>
<TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>
<DatumType>UINT32</DatumType>
<MaxDatumSize>4</MaxDatumSize>
<Value>200000000</Value>
</PcdData>
</PcdBuildDefinition> </PcdBuildDefinition>
<ModuleSaBuildOptions> <ModuleSaBuildOptions>
<FvBinding>FV_RECOVERY</FvBinding> <FvBinding>FV_RECOVERY</FvBinding>

View File

@ -35,6 +35,9 @@
<LibraryClass Usage="ALWAYS_CONSUMED"> <LibraryClass Usage="ALWAYS_CONSUMED">
<Keyword>DebugLib</Keyword> <Keyword>DebugLib</Keyword>
</LibraryClass> </LibraryClass>
<LibraryClass Usage="ALWAYS_CONSUMED">
<Keyword>PcdLib</Keyword>
</LibraryClass>
</LibraryClassDefinitions> </LibraryClassDefinitions>
<SourceFiles> <SourceFiles>
<Filename SupArchList="IA32">x86TimerLib.c</Filename> <Filename SupArchList="IA32">x86TimerLib.c</Filename>
@ -49,4 +52,11 @@
<Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification> <Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>
<Specification>EDK_RELEASE_VERSION 0x00020000</Specification> <Specification>EDK_RELEASE_VERSION 0x00020000</Specification>
</Externs> </Externs>
<PcdCoded>
<PcdEntry PcdItemType="FIXED_AT_BUILD" Usage="ALWAYS_CONSUMED">
<C_Name>PcdPlatformBusSpeed</C_Name>
<TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>
<HelpText>This value is the Bus Speed on platform</HelpText>
</PcdEntry>
</PcdCoded>
</ModuleSurfaceArea> </ModuleSurfaceArea>

View File

@ -19,18 +19,9 @@
**/ **/
// //
// The following 2 arrays are used in calculating the frequency of local APIC // The following array is used in calculating the frequency of local APIC
// timer. Refer to IA-32 developers' manual for more details. // timer. Refer to IA-32 developers' manual for more details.
// //
GLOBAL_REMOVE_IF_UNREFERENCED
CONST UINT32 mTimerLibLocalApicFrequencies[] = {
100000000,
133000000,
200000000,
166000000
};
GLOBAL_REMOVE_IF_UNREFERENCED GLOBAL_REMOVE_IF_UNREFERENCED
CONST UINT8 mTimerLibLocalApicDivisor[] = { CONST UINT8 mTimerLibLocalApicDivisor[] = {
0x02, 0x04, 0x08, 0x10, 0x02, 0x04, 0x08, 0x10,
@ -73,7 +64,7 @@ InternalX86GetTimerFrequency (
) )
{ {
return return
mTimerLibLocalApicFrequencies[AsmMsrBitFieldRead32 (44, 16, 18)] / PcdGet32(PcdPlatformBusSpeed) /
mTimerLibLocalApicDivisor[MmioBitFieldRead32 (ApicBase + 0x3e0, 0, 3)]; mTimerLibLocalApicDivisor[MmioBitFieldRead32 (ApicBase + 0x3e0, 0, 3)];
} }
@ -255,5 +246,5 @@ GetPerformanceCounterProperties (
*EndValue = 0; *EndValue = 0;
} }
return (UINT64)InternalX86GetTimerFrequency (ApicBase); return PcdGet32(PcdPlatformBusSpeed);
} }

View File

@ -1,15 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <PlatformSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Copyright (c) 2006, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license 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.
-->
<PlatformSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0">
<PlatformHeader> <PlatformHeader>
<PlatformName>MdePkgAll</PlatformName> <PlatformName>MdePkgAll</PlatformName>
<GuidValue>0fe7dd3e-0969-48c3-8cd2-de9a190088e2</GuidValue> <GuidValue>0fe7dd3e-0969-48c3-8cd2-de9a190088e2</GuidValue>
@ -31,6 +21,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
<BuildTargets>DEBUG RELEASE</BuildTargets> <BuildTargets>DEBUG RELEASE</BuildTargets>
<IntermediateDirectories>UNIFIED</IntermediateDirectories> <IntermediateDirectories>UNIFIED</IntermediateDirectories>
<OutputDirectory>Build/Mde</OutputDirectory> <OutputDirectory>Build/Mde</OutputDirectory>
<SkuInfo>
<UiSkuName SkuID="0">DEFAULT</UiSkuName>
</SkuInfo>
</PlatformDefinitions> </PlatformDefinitions>
<Flash> <Flash>
<FlashDefinitionFile>dummy.fdf</FlashDefinitionFile> <FlashDefinitionFile>dummy.fdf</FlashDefinitionFile>
@ -113,6 +106,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
</ModuleSaBuildOptions> </ModuleSaBuildOptions>
</ModuleSA> </ModuleSA>
<ModuleSA SupArchList="IA32" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec" ModuleGuid="b5a05743-9b71-489b-a0ed-a0eb3950d23b"> <ModuleSA SupArchList="IA32" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec" ModuleGuid="b5a05743-9b71-489b-a0ed-a0eb3950d23b">
<PcdBuildDefinition>
<PcdData ItemType="FIXED_AT_BUILD">
<C_Name>PcdPlatformBusSpeed</C_Name>
<Token>0x0000000c</Token>
<TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>
<DatumType>UINT32</DatumType>
<MaxDatumSize>4</MaxDatumSize>
<Value>200000000</Value>
</PcdData>
</PcdBuildDefinition>
<ModuleSaBuildOptions> <ModuleSaBuildOptions>
<FvBinding>NULL</FvBinding> <FvBinding>NULL</FvBinding>
<FfsFormatKey>LIBRARY</FfsFormatKey> <FfsFormatKey>LIBRARY</FfsFormatKey>
@ -661,6 +664,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
</ModuleSaBuildOptions> </ModuleSaBuildOptions>
</ModuleSA> </ModuleSA>
<ModuleSA SupArchList="IPF" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec" ModuleGuid="b5a05743-9b71-489b-a0ed-a0eb3950d23b"> <ModuleSA SupArchList="IPF" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec" ModuleGuid="b5a05743-9b71-489b-a0ed-a0eb3950d23b">
<PcdBuildDefinition>
<PcdData ItemType="FIXED_AT_BUILD">
<C_Name>PcdPlatformBusSpeed</C_Name>
<Token>0x0000000c</Token>
<TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>
<DatumType>UINT32</DatumType>
<MaxDatumSize>4</MaxDatumSize>
<Value>200000000</Value>
</PcdData>
</PcdBuildDefinition>
<ModuleSaBuildOptions> <ModuleSaBuildOptions>
<FvBinding>NULL</FvBinding> <FvBinding>NULL</FvBinding>
<FfsFormatKey>LIBRARY</FfsFormatKey> <FfsFormatKey>LIBRARY</FfsFormatKey>
@ -1221,6 +1234,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
</ModuleSaBuildOptions> </ModuleSaBuildOptions>
</ModuleSA> </ModuleSA>
<ModuleSA SupArchList="X64" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec" ModuleGuid="b5a05743-9b71-489b-a0ed-a0eb3950d23b"> <ModuleSA SupArchList="X64" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec" ModuleGuid="b5a05743-9b71-489b-a0ed-a0eb3950d23b">
<PcdBuildDefinition>
<PcdData ItemType="FIXED_AT_BUILD">
<C_Name>PcdPlatformBusSpeed</C_Name>
<Token>0x0000000c</Token>
<TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>
<DatumType>UINT32</DatumType>
<MaxDatumSize>4</MaxDatumSize>
<Value>200000000</Value>
</PcdData>
</PcdBuildDefinition>
<ModuleSaBuildOptions> <ModuleSaBuildOptions>
<FvBinding>NULL</FvBinding> <FvBinding>NULL</FvBinding>
<FfsFormatKey>LIBRARY</FfsFormatKey> <FfsFormatKey>LIBRARY</FfsFormatKey>
@ -1769,6 +1792,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
</ModuleSaBuildOptions> </ModuleSaBuildOptions>
</ModuleSA> </ModuleSA>
<ModuleSA SupArchList="EBC" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec" ModuleGuid="b5a05743-9b71-489b-a0ed-a0eb3950d23b"> <ModuleSA SupArchList="EBC" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec" ModuleGuid="b5a05743-9b71-489b-a0ed-a0eb3950d23b">
<PcdBuildDefinition>
<PcdData ItemType="FIXED_AT_BUILD">
<C_Name>PcdPlatformBusSpeed</C_Name>
<Token>0x0000000c</Token>
<TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>
<DatumType>UINT32</DatumType>
<MaxDatumSize>4</MaxDatumSize>
<Value>200000000</Value>
</PcdData>
</PcdBuildDefinition>
<ModuleSaBuildOptions> <ModuleSaBuildOptions>
<FvBinding>NULL</FvBinding> <FvBinding>NULL</FvBinding>
<FfsFormatKey>LIBRARY</FfsFormatKey> <FfsFormatKey>LIBRARY</FfsFormatKey>
@ -2254,153 +2287,135 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
</ModuleSA> </ModuleSA>
</FrameworkModules> </FrameworkModules>
<BuildOptions> <BuildOptions>
<Ffs FfsKey="APPLICATION"> <Ffs FfsKey="APPLICATION">
<Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_APPLICATION" /> <Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_APPLICATION"/>
<Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE" /> <Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE"/>
<Sections EncapsulationType="Compress"> <Sections EncapsulationType="Compress">
<Sections EncapsulationType="Guid-Defined"> <Sections EncapsulationType="Guid-Defined">
<Section SectionType="EFI_SECTION_PE32" /> <Section SectionType="EFI_SECTION_PE32"/>
<Section SectionType="EFI_SECTION_USER_INTERFACE" /> <Section SectionType="EFI_SECTION_USER_INTERFACE"/>
<Section SectionType="EFI_SECTION_VERSION" /> <Section SectionType="EFI_SECTION_VERSION"/>
</Sections> </Sections>
</Sections> </Sections>
</Ffs> </Ffs>
<Ffs FfsKey="BINARY">
<Ffs FfsKey="BINARY"> <Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_FREEFORM"/>
<Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_FREEFORM" /> <Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE"/>
<Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE" /> <Sections EncapsulationType="Compress">
<Sections EncapsulationType="Compress"> <Sections EncapsulationType="Guid-Defined">
<Sections EncapsulationType="Guid-Defined"> <Section SectionType="EFI_SECTION_RAW"/>
<Section SectionType="EFI_SECTION_RAW" /> </Sections>
</Sections> </Sections>
</Sections> </Ffs>
</Ffs> <Ffs FfsKey="FILE">
<Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_FREEFORM"/>
<Ffs FfsKey="FILE"> <Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE"/>
<Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_FREEFORM" /> <Sections>
<Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE" /> <Section SectionType="EFI_SECTION_RAW"/>
<Sections> </Sections>
<Section SectionType="EFI_SECTION_RAW"/> </Ffs>
</Sections> <Ffs FfsKey="PE32_PEIM_CompressPEIM">
</Ffs> <Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_PEIM"/>
<Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE"/>
<Ffs FfsKey="PE32_PEIM_CompressPEIM"> <Sections>
<Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_PEIM" /> <Section SectionType="EFI_SECTION_PEI_DEPEX"/>
<Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE" /> <Sections EncapsulationType="Compress">
<Section SectionType="EFI_SECTION_PE32"/>
<Sections> <Section SectionType="EFI_SECTION_USER_INTERFACE"/>
<Section SectionType="EFI_SECTION_PEI_DEPEX" /> <Section SectionType="EFI_SECTION_VERSION"/>
<Sections EncapsulationType="Compress"> </Sections>
<Section SectionType="EFI_SECTION_PE32" /> </Sections>
<Section SectionType="EFI_SECTION_USER_INTERFACE" /> </Ffs>
<Section SectionType="EFI_SECTION_VERSION" /> <Ffs FfsKey="PEI_CORE">
</Sections> <Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_PEI_CORE"/>
</Sections> <Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE"/>
</Ffs> <Sections>
<Section SectionType="EFI_SECTION_PE32"/>
<Ffs FfsKey="PEI_CORE"> <Section SectionType="EFI_SECTION_USER_INTERFACE"/>
<Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_PEI_CORE" /> <Section SectionType="EFI_SECTION_VERSION"/>
<Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE" /> </Sections>
<Sections> </Ffs>
<Section SectionType="EFI_SECTION_PE32"/> <Ffs FfsKey="PE32_PEIM_Relocatable">
<Section SectionType="EFI_SECTION_USER_INTERFACE"/> <Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_PEIM"/>
<Section SectionType="EFI_SECTION_VERSION"/> <Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE"/>
</Sections> <Sections>
</Ffs> <Section SectionType="EFI_SECTION_PEI_DEPEX"/>
<Section SectionType="EFI_SECTION_PE32"/>
<Ffs FfsKey="PE32_PEIM_Relocatable"> </Sections>
<Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_PEIM" /> </Ffs>
<Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE" /> <Ffs FfsKey="DXE_CORE">
<Sections> <Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_DXE_CORE"/>
<Section SectionType="EFI_SECTION_PEI_DEPEX"/> <Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE"/>
<Section SectionType="EFI_SECTION_PE32"/> <Sections EncapsulationType="Compress">
</Sections> <Section SectionType="EFI_SECTION_PE32"/>
</Ffs> <Section SectionType="EFI_SECTION_USER_INTERFACE"/>
<Section SectionType="EFI_SECTION_VERSION"/>
<Ffs FfsKey="DXE_CORE"> </Sections>
<Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_DXE_CORE" /> </Ffs>
<Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE" /> <Ffs FfsKey="BS_DRIVER">
<Sections EncapsulationType="Compress"> <Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_DRIVER"/>
<Section SectionType="EFI_SECTION_PE32" /> <Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE"/>
<Section SectionType="EFI_SECTION_USER_INTERFACE" /> <Sections EncapsulationType="Compress">
<Section SectionType="EFI_SECTION_VERSION" /> <Sections EncapsulationType="Guid-Defined">
</Sections> <Section SectionType="EFI_SECTION_PEI_DEPEX"/>
</Ffs> <Section SectionType="EFI_SECTION_PE32"/>
<Section SectionType="EFI_SECTION_USER_INTERFACE"/>
<Section SectionType="EFI_SECTION_VERSION"/>
<Ffs FfsKey="BS_DRIVER"> </Sections>
<Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_DRIVER" /> </Sections>
<Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE" /> </Ffs>
<Ffs FfsKey="RT_DRIVER">
<Sections EncapsulationType="Compress"> <Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_DRIVER"/>
<Sections EncapsulationType="Guid-Defined"> <Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE"/>
<Section SectionType="EFI_SECTION_PEI_DEPEX" /> <Sections EncapsulationType="Compress">
<Section SectionType="EFI_SECTION_PE32" /> <Sections EncapsulationType="Guid-Defined">
<Section SectionType="EFI_SECTION_USER_INTERFACE" /> <Section SectionType="EFI_SECTION_PEI_DEPEX"/>
<Section SectionType="EFI_SECTION_VERSION" /> <Section SectionType="EFI_SECTION_PE32"/>
</Sections> <Section SectionType="EFI_SECTION_USER_INTERFACE"/>
</Sections> <Section SectionType="EFI_SECTION_VERSION"/>
</Ffs> </Sections>
</Sections>
<Ffs FfsKey="RT_DRIVER"> </Ffs>
<Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_DRIVER" /> <Ffs FfsKey="SAL_RT_DRIVER">
<Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE" /> <Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_DRIVER"/>
<Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE"/>
<Sections EncapsulationType="Compress"> <Sections EncapsulationType="Compress">
<Sections EncapsulationType="Guid-Defined"> <Sections EncapsulationType="Guid-Defined">
<Section SectionType="EFI_SECTION_PEI_DEPEX" /> <Section SectionType="EFI_SECTION_PEI_DEPEX"/>
<Section SectionType="EFI_SECTION_PE32" /> <Section SectionType="EFI_SECTION_PE32"/>
<Section SectionType="EFI_SECTION_USER_INTERFACE" /> <Section SectionType="EFI_SECTION_USER_INTERFACE"/>
<Section SectionType="EFI_SECTION_VERSION" /> <Section SectionType="EFI_SECTION_VERSION"/>
</Sections> </Sections>
</Sections> </Sections>
</Ffs> </Ffs>
<Ffs FfsKey="COMBINED_PEIM_DRIVER">
<Ffs FfsKey="SAL_RT_DRIVER"> <Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_COMBINED_PEIM_DRIVER"/>
<Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_DRIVER" /> <Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE"/>
<Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE" /> <Sections>
<Section SectionType="EFI_SECTION_PEI_DEPEX"/>
<Sections EncapsulationType="Compress"> <Section SectionType="EFI_SECTION_PE32"/>
<Sections EncapsulationType="Guid-Defined"> <Section SectionType="EFI_SECTION_USER_INTERFACE"/>
<Section SectionType="EFI_SECTION_PEI_DEPEX" /> <Section SectionType="EFI_SECTION_VERSION"/>
<Section SectionType="EFI_SECTION_PE32" /> </Sections>
<Section SectionType="EFI_SECTION_USER_INTERFACE" /> </Ffs>
<Section SectionType="EFI_SECTION_VERSION" /> <Ffs FfsKey="PE32_PEIM">
</Sections> <Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_PEIM"/>
</Sections> <Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE"/>
</Ffs> <Sections>
<Section SectionType="EFI_SECTION_PEI_DEPEX"/>
<Ffs FfsKey="COMBINED_PEIM_DRIVER"> <Section SectionType="EFI_SECTION_PE32"/>
<Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_COMBINED_PEIM_DRIVER" /> <Section SectionType="EFI_SECTION_USER_INTERFACE"/>
<Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE" /> <Section SectionType="EFI_SECTION_VERSION"/>
<Sections> </Sections>
<Section SectionType="EFI_SECTION_PEI_DEPEX"/> </Ffs>
<Section SectionType="EFI_SECTION_PE32"/> <Ffs FfsKey="Logo">
<Section SectionType="EFI_SECTION_USER_INTERFACE"/> <Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_FREEFORM"/>
<Section SectionType="EFI_SECTION_VERSION"/> <Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE"/>
</Sections> <Sections EncapsulationType="Compress">
</Ffs> <Sections EncapsulationType="Guid-Defined">
<Section SectionType="EFI_SECTION_RAW"/>
<Ffs FfsKey="PE32_PEIM"> </Sections>
<Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_PEIM" /> </Sections>
<Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE" /> </Ffs>
<Sections>
<Section SectionType="EFI_SECTION_PEI_DEPEX"/>
<Section SectionType="EFI_SECTION_PE32"/>
<Section SectionType="EFI_SECTION_USER_INTERFACE"/>
<Section SectionType="EFI_SECTION_VERSION"/>
</Sections>
</Ffs>
<Ffs FfsKey="Logo">
<Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_FREEFORM" />
<Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE" />
<Sections EncapsulationType="Compress">
<Sections EncapsulationType="Guid-Defined">
<Section SectionType="EFI_SECTION_RAW" />
</Sections>
</Sections>
</Ffs>
</BuildOptions> </BuildOptions>
</PlatformSurfaceArea> </PlatformSurfaceArea>

View File

@ -1,15 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <PackageSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Copyright (c) 2006, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license 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.
-->
<PackageSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0">
<SpdHeader> <SpdHeader>
<PackageName>MdePkg</PackageName> <PackageName>MdePkg</PackageName>
<GuidValue>5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec</GuidValue> <GuidValue>5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec</GuidValue>
@ -28,7 +18,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
<Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052</Specification> <Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052</Specification>
</SpdHeader> </SpdHeader>
<PackageDefinitions> <PackageDefinitions>
<ReadOnly>true</ReadOnly> <ReadOnly>false</ReadOnly>
<RePackage>false</RePackage> <RePackage>false</RePackage>
</PackageDefinitions> </PackageDefinitions>
<LibraryClassDeclarations> <LibraryClassDeclarations>
@ -2334,5 +2324,14 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
<DefaultValue>0xE0000000</DefaultValue> <DefaultValue>0xE0000000</DefaultValue>
<HelpText>The base address of PCI Express MMIO window.</HelpText> <HelpText>The base address of PCI Express MMIO window.</HelpText>
</PcdEntry> </PcdEntry>
<PcdEntry>
<C_Name>PcdPlatformBusSpeed</C_Name>
<Token>0x0000000c</Token>
<TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>
<DatumType>UINT32</DatumType>
<ValidUsage>FIXED_AT_BUILD PATCHABLE_IN_MODULE</ValidUsage>
<DefaultValue>200000000</DefaultValue>
<HelpText>This value is the Bus Speed on platform</HelpText>
</PcdEntry>
</PcdDeclarations> </PcdDeclarations>
</PackageSurfaceArea> </PackageSurfaceArea>