summaryrefslogtreecommitdiff
path: root/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/PeiDumpFvInfo.c
diff options
context:
space:
mode:
authorJiewen Yao <jiewen.yao@intel.com>2017-10-05 22:25:51 +0800
committerJiewen Yao <jiewen.yao@intel.com>2017-10-24 19:43:22 +0800
commit602ca88a55162bf84c369d6924131f128a0ed356 (patch)
tree13a196e6bb2ade628fe877a4c7ed0c71a92535d7 /Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/PeiDumpFvInfo.c
parent5d307a4d238923cf79451899c7e6663ff210e48c (diff)
downloadedk2-platforms-602ca88a55162bf84c369d6924131f128a0ed356.tar.xz
Clean up Checkpoint.
1) CheckPointLib interface to be feature based, instead of phase based. 2) Rename file from Dump to Check. 3) Add TestPointStub to help convert PEI/SMM info to DXE protocol. 4) Implement all check points. Cc: Michael A Kubacki <michael.a.kubacki@intel.com> Cc: Amy Chan <amy.chan@intel.com> Cc: Chasel Chiu <chasel.chiu@intel.com> Cc: Brett Wang <brett.wang@intel.com> Cc: Daocheng Bu <daocheng.bu@intel.com> Cc: Isaac W Oram <isaac.w.oram@intel.com> Cc: Rangasai V Chaganty <rangasai.v.chaganty@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Amy Chan <amy.chan@intel.com>
Diffstat (limited to 'Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/PeiDumpFvInfo.c')
-rw-r--r--Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/PeiDumpFvInfo.c118
1 files changed, 0 insertions, 118 deletions
diff --git a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/PeiDumpFvInfo.c b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/PeiDumpFvInfo.c
deleted file mode 100644
index c32c03b2c7..0000000000
--- a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/PeiDumpFvInfo.c
+++ /dev/null
@@ -1,118 +0,0 @@
-/** @file
-
-Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
-This program and the accompanying materials are licensed and made available under
-the terms and conditions of the BSD License that 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.
-
-**/
-
-#include <Uefi.h>
-#include <PiPei.h>
-#include <Library/TestPointCheckLib.h>
-#include <Library/TestPointLib.h>
-#include <Library/DebugLib.h>
-#include <Library/PeiServicesLib.h>
-#include <Ppi/FirmwareVolumeInfo.h>
-#include <Ppi/FirmwareVolumeInfo2.h>
-
-EFI_STATUS
-TestPointDumpFvInfo (
- VOID
- )
-{
- EFI_STATUS Status;
- EFI_PEI_PPI_DESCRIPTOR *Descriptor;
- EFI_PEI_FIRMWARE_VOLUME_INFO_PPI *FvInfo;
- EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI *FvInfo2;
- UINTN Index;
- UINTN Index2;
-
- DEBUG ((DEBUG_INFO, "==== TestPointDumpFvInfo - Enter\n"));
- DEBUG ((DEBUG_INFO, "FV Info PPI\n"));
- for (Index = 0; ; Index++) {
- Status = PeiServicesLocatePpi (
- &gEfiPeiFirmwareVolumeInfoPpiGuid,
- Index,
- &Descriptor,
- (VOID **)&FvInfo
- );
- if (EFI_ERROR (Status)) {
- break;
- }
- DEBUG ((DEBUG_INFO,
- " BA=%08x L=%08x Format={%g}",
- (UINT32)(UINTN)FvInfo->FvInfo,
- FvInfo->FvInfoSize,
- &FvInfo->FvFormat,
- FvInfo->ParentFvName,
- FvInfo->ParentFileName
- ));
- if (FvInfo->ParentFvName != NULL) {
- DEBUG ((DEBUG_INFO,
- " ParentFv={%g}",
- FvInfo->ParentFvName
- ));
- }
- if (FvInfo->ParentFileName != NULL) {
- DEBUG ((DEBUG_INFO,
- " ParentFileName={%g}",
- FvInfo->ParentFileName
- ));
- }
- DEBUG ((DEBUG_INFO, "\n"));
- }
-
- DEBUG ((DEBUG_INFO, "FV Info2 PPI\n"));
- for (Index2 = 0; ; Index2++) {
- Status = PeiServicesLocatePpi (
- &gEfiPeiFirmwareVolumeInfo2PpiGuid,
- Index2,
- &Descriptor,
- (VOID **)&FvInfo2
- );
- if (EFI_ERROR (Status)) {
- break;
- }
- DEBUG ((DEBUG_INFO,
- " BA=%08x L=%08x Format={%g}",
- (UINT32)(UINTN)FvInfo2->FvInfo,
- FvInfo2->FvInfoSize,
- &FvInfo2->FvFormat,
- FvInfo2->ParentFvName,
- FvInfo2->ParentFileName,
- FvInfo2->AuthenticationStatus
- ));
- if (FvInfo2->ParentFvName != NULL) {
- DEBUG ((DEBUG_INFO,
- " ParentFv={%g}",
- FvInfo2->ParentFvName
- ));
- }
- if (FvInfo2->ParentFileName != NULL) {
- DEBUG ((DEBUG_INFO,
- " ParentFileName={%g}",
- FvInfo2->ParentFileName
- ));
- }
- DEBUG ((DEBUG_INFO,
- " Auth=%08x\n",
- FvInfo2->AuthenticationStatus
- ));
- }
- DEBUG ((DEBUG_INFO, "==== TestPointDumpFvInfo - Exit\n"));
-
- if ((Index == 0) && (Index2 == 0)) {
- TestPointLibAppendErrorString (
- PLATFORM_TEST_POINT_ROLE_PLATFORM_IBV,
- NULL,
- TEST_POINT_BYTE1_END_OF_PEI_ERROR_CODE_3 TEST_POINT_END_OF_PEI TEST_POINT_BYTE1_END_OF_PEI_ERROR_STRING_3
- );
- return EFI_INVALID_PARAMETER;
- }
- return EFI_SUCCESS;
-}