]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/Library/SmmCpuFeaturesLib/CpuFeaturesLib.h
8a1c2adc5c46dbb4a3f5efa17ddb15e8b69f7728
[mirror_edk2.git] / UefiCpuPkg / Library / SmmCpuFeaturesLib / CpuFeaturesLib.h
1 /** @file
2 Internal library function definitions.
3
4 Copyright (c) Microsoft Corporation.
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #ifndef CPU_FEATURES_LIB_H_
10 #define CPU_FEATURES_LIB_H_
11
12 /**
13 Performs library initialization.
14
15 This initialization function contains common functionality shared betwen all
16 library instance constructors.
17
18 **/
19 VOID
20 CpuFeaturesLibInitialization (
21 VOID
22 );
23
24 /**
25 Internal worker function that is called to complete CPU initialization at the
26 end of SmmCpuFeaturesInitializeProcessor().
27
28 **/
29 VOID
30 FinishSmmCpuFeaturesInitializeProcessor (
31 VOID
32 );
33
34 /**
35 Gets the maximum number of logical processors from the PCD PcdCpuMaxLogicalProcessorNumber.
36
37 This access is abstracted from the PCD services to enforce that the PCD be
38 FixedAtBuild in the Standalone MM build of this driver.
39
40 @return The value of PcdCpuMaxLogicalProcessorNumber.
41
42 **/
43 UINT32
44 GetCpuMaxLogicalProcessorNumber (
45 VOID
46 );
47
48 #endif