2 Definitions to install Multiple Processor PPI.
4 Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef _CPU_MP_PEI_H_
16 #define _CPU_MP_PEI_H_
20 #include <Ppi/MpServices.h>
21 #include <Ppi/SecPlatformInformation.h>
22 #include <Ppi/SecPlatformInformation2.h>
23 #include <Ppi/EndOfPeiPhase.h>
25 #include <Library/BaseLib.h>
26 #include <Library/DebugLib.h>
27 #include <Library/HobLib.h>
28 #include <Library/LocalApicLib.h>
29 #include <Library/PeimEntryPoint.h>
30 #include <Library/PeiServicesLib.h>
31 #include <Library/ReportStatusCodeLib.h>
32 #include <Library/CpuExceptionHandlerLib.h>
33 #include <Library/MpInitLib.h>
35 extern EFI_PEI_PPI_DESCRIPTOR mPeiCpuMpPpiDesc
;
39 Collects BIST data from PPI.
41 This function collects BIST data from Sec Platform Information2 PPI
42 or SEC Platform Information PPI.
44 @param PeiServices Pointer to PEI Services Table
48 CollectBistDataFromPpi (
49 IN CONST EFI_PEI_SERVICES
**PeiServices
53 Implementation of the PlatformInformation2 service in EFI_SEC_PLATFORM_INFORMATION2_PPI.
55 @param PeiServices The pointer to the PEI Services Table.
56 @param StructureSize The pointer to the variable describing size of the input buffer.
57 @param PlatformInformationRecord2 The pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD2.
59 @retval EFI_SUCCESS The data was successfully returned.
60 @retval EFI_BUFFER_TOO_SMALL The buffer was too small. The current buffer size needed to
61 hold the record is returned in StructureSize.
66 SecPlatformInformation2 (
67 IN CONST EFI_PEI_SERVICES
**PeiServices
,
68 IN OUT UINT64
*StructureSize
,
69 OUT EFI_SEC_PLATFORM_INFORMATION_RECORD2
*PlatformInformationRecord2