hc
2024-03-22 a0752693d998599af469473b8dc239ef973a012f
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/** @file
  Prototype of the CpuPolicy library.
 
  Copyright (c) 2019 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 related config blocks of SI_PREMEM_POLICY_PPI and serial out.
 
  @param[in] SiPreMemPolicyPpi             The Si PreMem Policy PPI instance
**/
VOID
CpuPreMemPrintPolicy (
IN  SI_PREMEM_POLICY_PPI *SiPreMemPolicyPpi
);
 
/**
  Get CPU PREMEM config block table total size.
 
  @retval Size of CPU PREMEM config block table
**/
UINT16
EFIAPI
CpuGetPreMemConfigBlockTotalSize (
  VOID
  );
 
/**
  CpuAddPreMemConfigBlocks add all CPU PREMEM config blocks.
 
  @param[in] ConfigBlockTableAddress    The pointer to add CPU PREMEM config blocks
 
  @retval EFI_SUCCESS                   The policy default is initialized.
  @retval EFI_OUT_OF_RESOURCES          Insufficient resources to create buffer
**/
EFI_STATUS
EFIAPI
CpuAddPreMemConfigBlocks (
  IN     VOID      *ConfigBlockTableAddress
  );
 
/**
  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_