TianoCore EDK2 master
|
#include "SecMain.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | GetBistFromHob (IN OUT UINT64 *StructureSize, IN OUT VOID *StructureBuffer) |
EFI_STATUS EFIAPI | SecPlatformInformationBist (IN CONST EFI_PEI_SERVICES **PeiServices, IN OUT UINT64 *StructureSize, OUT EFI_SEC_PLATFORM_INFORMATION_RECORD *PlatformInformationRecord) |
EFI_STATUS EFIAPI | SecPlatformInformation2Bist (IN CONST EFI_PEI_SERVICES **PeiServices, IN OUT UINT64 *StructureSize, OUT EFI_SEC_PLATFORM_INFORMATION_RECORD2 *PlatformInformationRecord2) |
EFI_STATUS | GetBistInfoFromPpi (IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_GUID *Guid, OUT EFI_PEI_PPI_DESCRIPTOR **PpiDescriptor, OUT VOID **BistInformationData, OUT UINT64 *BistInformationSize OPTIONAL) |
VOID | RepublishSecPlatformInformationPpi (VOID) |
Get SEC platform information(2) PPI and reinstall it.
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SecBist.c.
EFI_STATUS GetBistFromHob | ( | IN OUT UINT64 * | StructureSize, |
IN OUT VOID * | StructureBuffer | ||
) |
Worker function to parse CPU BIST information from Guided HOB.
[in,out] | StructureSize | Pointer to the variable describing size of the input buffer. |
[in,out] | StructureBuffer | Pointer to the buffer save CPU BIST information. |
EFI_SUCCESS | The data was successfully returned. |
EFI_BUFFER_TOO_SMALL | The buffer was too small. |
EFI_STATUS GetBistInfoFromPpi | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
IN CONST EFI_GUID * | Guid, | ||
OUT EFI_PEI_PPI_DESCRIPTOR ** | PpiDescriptor, | ||
OUT VOID ** | BistInformationData, | ||
OUT UINT64 *BistInformationSize | OPTIONAL | ||
) |
Worker function to get CPUs' BIST by calling SecPlatformInformationPpi or SecPlatformInformation2Ppi.
[in] | PeiServices | Pointer to PEI Services Table |
[in] | Guid | PPI Guid |
[out] | PpiDescriptor | Return a pointer to instance of the EFI_PEI_PPI_DESCRIPTOR |
[out] | BistInformationData | Pointer to BIST information data |
[out] | BistInformationSize | Return the size in bytes of BIST information |
EFI_SUCCESS | Retrieve of the BIST data successfully |
EFI_NOT_FOUND | No sec platform information(2) ppi export |
EFI_DEVICE_ERROR | Failed to get CPU Information |
VOID RepublishSecPlatformInformationPpi | ( | VOID | ) |
EFI_STATUS EFIAPI SecPlatformInformation2Bist | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
IN OUT UINT64 * | StructureSize, | ||
OUT EFI_SEC_PLATFORM_INFORMATION_RECORD2 * | PlatformInformationRecord2 | ||
) |
Implementation of the PlatformInformation2 service in EFI_SEC_PLATFORM_INFORMATION2_PPI.
[in] | PeiServices | The pointer to the PEI Services Table. |
[in,out] | StructureSize | The pointer to the variable describing size of the input buffer. |
[out] | PlatformInformationRecord2 | The pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD2. |
EFI_SUCCESS | The data was successfully returned. |
EFI_BUFFER_TOO_SMALL | The buffer was too small. The current buffer size needed to hold the record is returned in StructureSize. |
EFI_STATUS EFIAPI SecPlatformInformationBist | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
IN OUT UINT64 * | StructureSize, | ||
OUT EFI_SEC_PLATFORM_INFORMATION_RECORD * | PlatformInformationRecord | ||
) |
Implementation of the PlatformInformation service in EFI_SEC_PLATFORM_INFORMATION_PPI.
[in] | PeiServices | Pointer to the PEI Services Table. |
[in,out] | StructureSize | Pointer to the variable describing size of the input buffer. |
[out] | PlatformInformationRecord | Pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD. |
EFI_SUCCESS | The data was successfully returned. |
EFI_BUFFER_TOO_SMALL | The buffer was too small. |
EFI_PEI_PPI_DESCRIPTOR mPeiSecPlatformInformation |
EFI_PEI_PPI_DESCRIPTOR mPeiSecPlatformInformation2 |
EFI_SEC_PLATFORM_INFORMATION_PPI mSecPlatformInformation |
EFI_SEC_PLATFORM_INFORMATION2_PPI mSecPlatformInformation2 |