IntelFspWrapperPkg update for FSP1.1
authorYao, Jiewen <Jiewen.Yao@intel.com>
Thu, 23 Apr 2015 08:53:39 +0000 (08:53 +0000)
committerjyao1 <jyao1@Edk2>
Thu, 23 Apr 2015 08:53:39 +0000 (08:53 +0000)
-- Add BootLoaderTolumSize support
-- Fix LibraryClasses declaration in DEC file.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
Reviewed-by: "Ma, Maurice" <maurice.ma@intel.com>
Reviewed-by: "Rangarajan, Ravi P" <ravi.p.rangarajan@intel.com>
Reviewed-by: "Mudusuru, Giri P" <giri.p.mudusuru@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17197 6f19259b-4bc3-4df7-8a09-765794883524

IntelFspWrapperPkg/FspInitPei/FspInitPeiV1.c
IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c
IntelFspWrapperPkg/Include/Library/FspPlatformInfoLib.h
IntelFspWrapperPkg/IntelFspWrapperPkg.dec
IntelFspWrapperPkg/Library/BaseFspPlatformInfoLibSample/FspPlatformInfoLibSample.c

index f6ffecb..da7f823 100644 (file)
@@ -97,6 +97,7 @@ PeiFspInit (
   ASSERT(sizeof(FspUpdRgn) >= UpdRegionSize);\r
   ZeroMem (FspUpdRgn, UpdRegionSize);\r
   FspRtBuffer.UpdDataRgnPtr = UpdateFspUpdConfigs (FspUpdRgn);\r
+  FspRtBuffer.BootLoaderTolumSize = 0;\r
 \r
   ZeroMem (&FspInitParams, sizeof(FspInitParams));\r
   FspInitParams.NvsBufferPtr = GetNvsBuffer ();\r
index 7cad84e..f11015e 100644 (file)
@@ -164,6 +164,7 @@ PeiFspMemoryInit (
   ASSERT(sizeof(FspUpdRgn) >= UpdRegionSize);\r
   ZeroMem (FspUpdRgn, UpdRegionSize);\r
   FspRtBuffer.UpdDataRgnPtr = UpdateFspUpdConfigs (FspUpdRgn);\r
+  FspRtBuffer.BootLoaderTolumSize = GetBootLoaderTolumSize ();\r
 \r
   ZeroMem (&FspMemoryInitParams, sizeof(FspMemoryInitParams));\r
   FspMemoryInitParams.NvsBufferPtr = GetNvsBuffer ();\r
index c997ea8..e5bb2c2 100644 (file)
@@ -68,6 +68,19 @@ UpdateFspUpdConfigs (
   IN OUT VOID        *FspUpdRgnPtr\r
   );\r
 \r
+/**\r
+  Get BootLoader Tolum size.\r
+\r
+  @note At this point, memory is NOT ready, PeiServices are available to use.\r
+\r
+  @return BootLoader Tolum size.\r
+**/\r
+UINT32\r
+EFIAPI\r
+GetBootLoaderTolumSize (\r
+  VOID\r
+  );\r
+\r
 /**\r
   Get TempRamExit parameter.\r
 \r
index b7e81d3..bfed1cc 100644 (file)
 \r
 [LibraryClasses]\r
   ##  @libraryclass  Provide FSP API related function.\r
-  FspApiLib|IntelFspWrapperPkg/Include/Library/FspApiLib.h\r
+  FspApiLib|Include/Library/FspApiLib.h\r
 \r
   ##  @libraryclass  Provide FSP hob process related function.\r
-  FspHobProcessLib|IntelFspWrapperPkg/Include/Library/FspHobProcessLib.h\r
+  FspHobProcessLib|Include/Library/FspHobProcessLib.h\r
 \r
   ##  @libraryclass  Provide FSP platform information related function.\r
-  FspPlatformInfoLib|IntelFspWrapperPkg/Include/Library/FspPlatformInfoLib.h\r
+  FspPlatformInfoLib|Include/Library/FspPlatformInfoLib.h\r
 \r
   ##  @libraryclass  Provide FSP wrapper platform sec related function.\r
-  FspPlatformSecLib|IntelFspWrapperPkg/Include/Library/FspPlatformSecLib.h\r
+  FspPlatformSecLib|Include/Library/FspPlatformSecLib.h\r
 \r
 [Guids]\r
   #\r
index d21c566..903e26e 100644 (file)
@@ -82,6 +82,22 @@ UpdateFspUpdConfigs (
   return NULL;\r
 }\r
 \r
+/**\r
+  Get BootLoader Tolum size.\r
+\r
+  @note At this point, memory is NOT ready, PeiServices are available to use.\r
+\r
+  @return BootLoader Tolum size.\r
+**/\r
+UINT32\r
+EFIAPI\r
+GetBootLoaderTolumSize (\r
+  VOID\r
+  )\r
+{\r
+  return 0;\r
+}\r
+\r
 /**\r
   Get TempRamExit parameter.\r
 \r