VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/UefiCpuPkg/Include/Library/UefiCpuLib.h@ 99404

Last change on this file since 99404 was 99404, checked in by vboxsync, 20 months ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette