hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/** @file
  Prototype of the CpuPolicy library.
 
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
 
**/
#ifndef _CPU_POLICY_LIB_H_
#define _CPU_POLICY_LIB_H_
 
#include <Ppi/SiPolicy.h>
 
/**
  Print whole CPU config blocks of SiPolicyPpi and serial out.
 
  @param[in] SiPolicyPpi             The SI Policy PPI instance
**/
VOID
CpuPrintPolicy (
  IN  SI_POLICY_PPI                 *SiPolicyPpi
  );
 
/**
  Get CPU config block table total size.
 
  @retval Size of CPU config block table
**/
UINT16
EFIAPI
CpuGetConfigBlockTotalSize (
  VOID
  );
 
/**
  CpuAddConfigBlocks add all Cpu config blocks.
 
  @param[in] ConfigBlockTableAddress    The pointer to add CPU config blocks
 
  @retval EFI_SUCCESS                   The policy default is initialized.
  @retval EFI_OUT_OF_RESOURCES          Insufficient resources to create buffer
**/
EFI_STATUS
EFIAPI
CpuAddConfigBlocks (
  IN     VOID      *ConfigBlockTableAddress
  );
 
#endif // _PEI_CPU_POLICY_LIB_H_