]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/CpuMpPei/CpuMpPei.h
UefiCpuPkg/CpuMpPei: Remove unused files and codes
[mirror_edk2.git] / UefiCpuPkg / CpuMpPei / CpuMpPei.h
1 /** @file
2 Definitions to install Multiple Processor PPI.
3
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
9
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.
12
13 **/
14
15 #ifndef _CPU_MP_PEI_H_
16 #define _CPU_MP_PEI_H_
17
18 #include <PiPei.h>
19
20 #include <Ppi/MpServices.h>
21 #include <Ppi/SecPlatformInformation.h>
22 #include <Ppi/SecPlatformInformation2.h>
23 #include <Ppi/EndOfPeiPhase.h>
24
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>
34
35 extern EFI_PEI_PPI_DESCRIPTOR mPeiCpuMpPpiDesc;
36
37
38 /**
39 Collects BIST data from PPI.
40
41 This function collects BIST data from Sec Platform Information2 PPI
42 or SEC Platform Information PPI.
43
44 @param PeiServices Pointer to PEI Services Table
45
46 **/
47 VOID
48 CollectBistDataFromPpi (
49 IN CONST EFI_PEI_SERVICES **PeiServices
50 );
51
52 /**
53 Implementation of the PlatformInformation2 service in EFI_SEC_PLATFORM_INFORMATION2_PPI.
54
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.
58
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.
62
63 **/
64 EFI_STATUS
65 EFIAPI
66 SecPlatformInformation2 (
67 IN CONST EFI_PEI_SERVICES **PeiServices,
68 IN OUT UINT64 *StructureSize,
69 OUT EFI_SEC_PLATFORM_INFORMATION_RECORD2 *PlatformInformationRecord2
70 );
71
72 #endif