]> git.proxmox.com Git - mirror_edk2.git/blame - UefiCpuPkg/Include/Library/UefiCpuLib.h
UefiCpuPkg: Apply uncrustify changes
[mirror_edk2.git] / UefiCpuPkg / Include / Library / UefiCpuLib.h
CommitLineData
989322c3 1/** @file\r
2 Public header file for UEFI CPU library class.\r
3\r
4 This library class defines some routines that are generic for IA32 family CPU\r
5 to be UEFI specification compliant.\r
6\r
f826b208 7 Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>\r
df667535 8 Copyright (c) 2020, AMD Inc. All rights reserved.<BR>\r
0acd8697 9 SPDX-License-Identifier: BSD-2-Clause-Patent\r
989322c3 10\r
11**/\r
12\r
13#ifndef __UEFI_CPU_LIB_H__\r
14#define __UEFI_CPU_LIB_H__\r
15\r
989322c3 16/**\r
17 Initializes floating point units for requirement of UEFI specification.\r
18\r
19 This function initializes floating-point control word to 0x027F (all exceptions\r
20 masked,double-precision, round-to-nearest) and multimedia-extensions control word\r
21 (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush to zero\r
22 for masked underflow).\r
23\r
24**/\r
25VOID\r
26EFIAPI\r
27InitializeFloatingPointUnits (\r
28 VOID\r
29 );\r
30\r
df667535
KG
31/**\r
32 Determine if the standard CPU signature is "AuthenticAMD".\r
33\r
34 @retval TRUE The CPU signature matches.\r
35 @retval FALSE The CPU signature does not match.\r
36\r
37**/\r
38BOOLEAN\r
39EFIAPI\r
40StandardSignatureIsAuthenticAMD (\r
41 VOID\r
42 );\r
43\r
f826b208
RN
44/**\r
45 Return the 32bit CPU family and model value.\r
46\r
47 @return CPUID[01h].EAX with Processor Type and Stepping ID cleared.\r
48**/\r
49UINT32\r
50EFIAPI\r
51GetCpuFamilyModel (\r
52 VOID\r
53 );\r
54\r
55/**\r
56 Return the CPU stepping ID.\r
57 @return CPU stepping ID value in CPUID[01h].EAX.\r
58**/\r
59UINT8\r
60EFIAPI\r
61GetCpuSteppingId (\r
62 VOID\r
63 );\r
64\r
989322c3 65#endif\r