]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFspPkg/Include/Library/FspCommonLib.h
IntelFspPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / IntelFspPkg / Include / Library / FspCommonLib.h
index c97ee51de3c545bb085f6a85e89cabb64f7d870d..f5e16cad870135d1f6bd88155c43ea12c671eecc 100644 (file)
@@ -1,13 +1,7 @@
 /** @file\r
 \r
   Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>\r
-  This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php.\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -40,9 +34,9 @@ GetFspGlobalDataPointer (
   );\r
 \r
 /**\r
-  This function gets back the FSP API paramter passed by the bootlaoder.\r
+  This function gets back the FSP API parameter passed by the bootlaoder.\r
 \r
-  @retval ApiParameter FSP API paramter passed by the bootlaoder.\r
+  @retval ApiParameter FSP API parameter passed by the bootlaoder.\r
 **/\r
 UINT32\r
 EFIAPI\r
@@ -51,7 +45,7 @@ GetFspApiParameter (
   );\r
 \r
 /**\r
-  This function sets the FSP API paramter in the stack.\r
+  This function sets the FSP API parameter in the stack.\r
 \r
    @param[in] Value       New parameter value.\r
 \r
@@ -76,7 +70,7 @@ SetFspContinuationFuncParameter (
   );\r
 \r
 /**\r
-  This function changes the Bootloader return address in stack.\r
+  This function changes the BootLoader return address in stack.\r
 \r
   @param[in] ReturnAddress       Address to return.\r
 \r
@@ -88,7 +82,7 @@ SetFspApiReturnAddress (
   );\r
 \r
 /**\r
-  This function set the API status code returned to the bootloader.\r
+  This function set the API status code returned to the BootLoader.\r
 \r
   @param[in] ReturnStatus       Status code to return.\r
 \r
@@ -157,6 +151,50 @@ GetFspUpdDataPointer (
   VOID\r
   );\r
 \r
+/**\r
+  This function sets the memory init UPD data pointer.\r
+\r
+  @param[in] MemoryInitUpdPtr   memory init UPD data pointer.\r
+**/\r
+VOID\r
+EFIAPI\r
+SetFspMemoryInitUpdDataPointer (\r
+  IN VOID    *MemoryInitUpdPtr\r
+  );\r
+\r
+/**\r
+  This function gets the memory init UPD data pointer.\r
+\r
+  @return memory init UPD data pointer.\r
+**/\r
+VOID *\r
+EFIAPI\r
+GetFspMemoryInitUpdDataPointer (\r
+  VOID\r
+  );\r
+\r
+/**\r
+  This function sets the silicon init UPD data pointer.\r
+\r
+  @param[in] SiliconInitUpdPtr   silicon init UPD data pointer.\r
+**/\r
+VOID\r
+EFIAPI\r
+SetFspSiliconInitUpdDataPointer (\r
+  IN VOID    *SiliconInitUpdPtr\r
+  );\r
+\r
+/**\r
+  This function gets the silicon init UPD data pointer.\r
+\r
+  @return silicon init UPD data pointer.\r
+**/\r
+VOID *\r
+EFIAPI\r
+GetFspSiliconInitUpdDataPointer (\r
+  VOID\r
+  );\r
+\r
 /**\r
   Set FSP measurement point timestamp.\r
 \r
@@ -182,7 +220,29 @@ GetFspInfoHeader (
   );\r
 \r
 /**\r
-  This function gets FSP API calling mode\r
+  This function gets the FSP info header pointer from the API context.\r
+\r
+  @retval FspInfoHeader   FSP info header pointer\r
+**/\r
+FSP_INFO_HEADER *\r
+EFIAPI\r
+GetFspInfoHeaderFromApiContext (\r
+  VOID\r
+  );\r
+\r
+/**\r
+  This function gets the VPD data pointer.\r
+\r
+  @return VpdDataRgnPtr   VPD data pointer.\r
+**/\r
+VOID *\r
+EFIAPI\r
+GetFspVpdDataPointer (\r
+  VOID\r
+  );\r
+\r
+/**\r
+  This function gets FSP API calling mode.\r
 \r
   @retval API calling mode\r
 **/\r
@@ -193,7 +253,7 @@ GetFspApiCallingMode (
   );\r
 \r
 /**\r
-  This function sets FSP API calling mode\r
+  This function sets FSP API calling mode.\r
 \r
   @param[in] Mode     API calling mode\r
 **/\r