2015-08-06 08:57:47 +02:00
|
|
|
/** @file
|
|
|
|
Definitions to install Multiple Processor PPI.
|
|
|
|
|
2016-05-24 15:42:19 +02:00
|
|
|
Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
|
2015-08-06 08:57:47 +02:00
|
|
|
This program and the accompanying materials
|
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which 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.
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _CPU_MP_PEI_H_
|
|
|
|
#define _CPU_MP_PEI_H_
|
|
|
|
|
|
|
|
#include <PiPei.h>
|
|
|
|
|
|
|
|
#include <Ppi/MpServices.h>
|
|
|
|
#include <Ppi/SecPlatformInformation.h>
|
|
|
|
#include <Ppi/SecPlatformInformation2.h>
|
|
|
|
#include <Ppi/EndOfPeiPhase.h>
|
|
|
|
|
|
|
|
#include <Library/BaseLib.h>
|
|
|
|
#include <Library/DebugLib.h>
|
|
|
|
#include <Library/HobLib.h>
|
|
|
|
#include <Library/LocalApicLib.h>
|
|
|
|
#include <Library/PeimEntryPoint.h>
|
|
|
|
#include <Library/PeiServicesLib.h>
|
|
|
|
#include <Library/ReportStatusCodeLib.h>
|
2016-05-24 15:42:19 +02:00
|
|
|
#include <Library/CpuExceptionHandlerLib.h>
|
2016-07-22 04:12:51 +02:00
|
|
|
#include <Library/MpInitLib.h>
|
2015-08-06 08:57:47 +02:00
|
|
|
|
|
|
|
extern EFI_PEI_PPI_DESCRIPTOR mPeiCpuMpPpiDesc;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
Collects BIST data from PPI.
|
|
|
|
|
|
|
|
This function collects BIST data from Sec Platform Information2 PPI
|
|
|
|
or SEC Platform Information PPI.
|
|
|
|
|
|
|
|
@param PeiServices Pointer to PEI Services Table
|
|
|
|
|
|
|
|
**/
|
|
|
|
VOID
|
|
|
|
CollectBistDataFromPpi (
|
2016-07-22 04:12:51 +02:00
|
|
|
IN CONST EFI_PEI_SERVICES **PeiServices
|
2015-08-06 08:57:47 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Implementation of the PlatformInformation2 service in EFI_SEC_PLATFORM_INFORMATION2_PPI.
|
|
|
|
|
|
|
|
@param PeiServices The pointer to the PEI Services Table.
|
|
|
|
@param StructureSize The pointer to the variable describing size of the input buffer.
|
|
|
|
@param PlatformInformationRecord2 The pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD2.
|
|
|
|
|
|
|
|
@retval EFI_SUCCESS The data was successfully returned.
|
|
|
|
@retval 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
|
|
|
|
SecPlatformInformation2 (
|
|
|
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
|
|
|
IN OUT UINT64 *StructureSize,
|
|
|
|
OUT EFI_SEC_PLATFORM_INFORMATION_RECORD2 *PlatformInformationRecord2
|
|
|
|
);
|
|
|
|
|
|
|
|
#endif
|