]> git.proxmox.com Git - mirror_edk2.git/commitdiff
IntelFsp2WrapperPkg: Add header for PlatformMultiPhaseLib.
authorChasel Chiu <chasel.chiu@intel.com>
Tue, 4 Oct 2022 20:10:14 +0000 (13:10 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 5 Oct 2022 04:13:53 +0000 (04:13 +0000)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4092

To comply with coding style rule each library class
should have its own header even if it is just a private child library
instance consumed by parent public library in the same package.

Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Signed-off-by: Chasel Chiu <chasel.chiu@intel.com>
Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
IntelFsp2WrapperPkg/Include/Library/FspWrapperMultiPhaseProcessLib.h
IntelFsp2WrapperPkg/Include/Library/FspWrapperPlatformMultiPhaseLib.h [new file with mode: 0644]
IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dec
IntelFsp2WrapperPkg/Library/FspWrapperMultiPhaseProcessLib/PeiFspWrapperMultiPhaseProcessLib.c

index 65a5db233f3171cf92beba9ac25d33a175b77a32..aadacc9b505b4d2b7230ec7b97b32b165df2a16a 100644 (file)
@@ -9,24 +9,6 @@
 #ifndef __FSP_WRAPPER_MULTI_PHASE_PROCESS_LIB_H__\r
 #define __FSP_WRAPPER_MULTI_PHASE_PROCESS_LIB_H__\r
 \r
-/**\r
-  FSP Wrapper Platform MultiPhase Handler\r
-\r
-  @param[in] FspHobListPtr        - Pointer to FSP HobList (valid after FSP-M completed)\r
-  @param[in] ComponentIndex       - FSP Component which executing MultiPhase initialization.\r
-  @param[in] PhaseIndex           - Indicates current execution phase of FSP MultiPhase initialization.\r
-\r
-  @retval EFI_STATUS        Always return EFI_SUCCESS\r
-\r
-**/\r
-VOID\r
-EFIAPI\r
-FspWrapperPlatformMultiPhaseHandler (\r
-  IN OUT VOID  **FspHobListPtr,\r
-  IN UINT8     ComponentIndex,\r
-  IN UINT32    PhaseIndex\r
-  );\r
-\r
 /**\r
   FSP Wrapper Variable Request Handler\r
 \r
diff --git a/IntelFsp2WrapperPkg/Include/Library/FspWrapperPlatformMultiPhaseLib.h b/IntelFsp2WrapperPkg/Include/Library/FspWrapperPlatformMultiPhaseLib.h
new file mode 100644 (file)
index 0000000..272b0e3
--- /dev/null
@@ -0,0 +1,30 @@
+/** @file\r
+  Provide FSP wrapper Platform MultiPhase handling functions.\r
+\r
+  Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+**/\r
+\r
+#ifndef FSP_WRAPPER_PLATFORM_MULTI_PHASE_LIB_H_\r
+#define FSP_WRAPPER_PLATFORM_MULTI_PHASE_LIB_H_\r
+\r
+/**\r
+  FSP Wrapper Platform MultiPhase Handler\r
+\r
+  @param[in] FspHobListPtr        - Pointer to FSP HobList (valid after FSP-M completed)\r
+  @param[in] ComponentIndex       - FSP Component which executing MultiPhase initialization.\r
+  @param[in] PhaseIndex           - Indicates current execution phase of FSP MultiPhase initialization.\r
+\r
+  @retval EFI_STATUS        Always return EFI_SUCCESS\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+FspWrapperPlatformMultiPhaseHandler (\r
+  IN OUT VOID  **FspHobListPtr,\r
+  IN UINT8     ComponentIndex,\r
+  IN UINT32    PhaseIndex\r
+  );\r
+\r
+#endif //FSP_WRAPPER_PLATFORM_MULTI_PHASE_LIB_H_\r
index 95ada0f7a15184fbc24095f08a7a3ad7ac45763c..922ccc063f7183f9dbe798dad5be66b6aed09a70 100644 (file)
@@ -33,7 +33,7 @@
   FspWrapperMultiPhaseProcessLib|Include/Library/FspWrapperMultiPhaseProcessLib.h\r
 \r
   ##  @libraryclass  Provide MultiPhase platform actions related functions.\r
-  FspWrapperPlatformMultiPhaseLib|Include/Library/FspWrapperMultiPhaseProcessLib.h\r
+  FspWrapperPlatformMultiPhaseLib|Include/Library/FspWrapperPlatformMultiPhaseLib.h\r
 \r
 \r
 [Guids]\r
index 3ddc07690a1ebedd58a552bc863b91b40cbec9ae..1248accf872484a9c8f11de716c42e217838953c 100644 (file)
@@ -16,7 +16,7 @@
 #include <Ppi/ReadOnlyVariable2.h>\r
 #include <Ppi/Variable.h>\r
 #include <Library/PeiServicesLib.h>\r
-#include <Library/FspWrapperMultiPhaseProcessLib.h>\r
+#include <Library/FspWrapperPlatformMultiPhaseLib.h>\r
 \r
 /**\r
   Execute 32-bit FSP API entry code.\r