]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFspWrapperPkg/Include/Library/FspApiLib.h
Add IntelFspWrapper to support boot EDKII on FSP bin.
[mirror_edk2.git] / IntelFspWrapperPkg / Include / Library / FspApiLib.h
diff --git a/IntelFspWrapperPkg/Include/Library/FspApiLib.h b/IntelFspWrapperPkg/Include/Library/FspApiLib.h
new file mode 100644 (file)
index 0000000..fc0104d
--- /dev/null
@@ -0,0 +1,64 @@
+/** @file\r
+  Provide FSP API related function.\r
+\r
+  Copyright (c) 2014, 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
+\r
+**/\r
+\r
+#ifndef __FSP_API_LIB_H__\r
+#define __FSP_API_LIB_H__\r
+\r
+#include <FspApi.h>\r
+#include <FspInfoHeader.h>\r
+\r
+/**\r
+  Find FSP header pointer.\r
+\r
+  @param[in] FlashFvFspBase Flash address of FSP FV.\r
+\r
+  @return FSP header pointer.\r
+**/\r
+FSP_INFO_HEADER *\r
+EFIAPI\r
+FspFindFspHeader (\r
+  IN EFI_PHYSICAL_ADDRESS  FlashFvFspBase\r
+  );\r
+\r
+/**\r
+  Call FSP API - FspInit.\r
+\r
+  @param[in] FspHeader     FSP header pointer.\r
+  @param[in] FspInitParams Address pointer to the FSP_INIT_PARAMS structure.\r
+\r
+  @return FSP status returned by FspInit API.\r
+**/\r
+FSP_STATUS\r
+EFIAPI\r
+CallFspInit (\r
+  IN FSP_INFO_HEADER     *FspHeader,\r
+  IN FSP_INIT_PARAMS     *FspInitParams\r
+  );\r
+\r
+/**\r
+  Call FSP API - FspNotifyPhase.\r
+\r
+  @param[in] FspHeader         FSP header pointer.\r
+  @param[in] NotifyPhaseParams Address pointer to the NOTIFY_PHASE_PARAMS structure.\r
+\r
+  @return FSP status returned by FspNotifyPhase API.\r
+**/\r
+FSP_STATUS\r
+EFIAPI\r
+CallFspNotifyPhase (\r
+  IN FSP_INFO_HEADER     *FspHeader,\r
+  IN NOTIFY_PHASE_PARAMS *NotifyPhaseParams\r
+  );\r
+\r
+#endif\r