]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Include/Library/UefiCpuLib.h
UefiCpuPkg/UefiCpuLib: Add GetCpuFamilyModel and GetCpuSteppingId
[mirror_edk2.git] / UefiCpuPkg / Include / Library / UefiCpuLib.h
index 5326e7246301c2da4914b03647e5b353d734da8f..092c1d2116c3bbf54c88447d016acc37d543b449 100644 (file)
@@ -4,7 +4,7 @@
   This library class defines some routines that are generic for IA32 family CPU\r
   to be UEFI specification compliant.\r
 \r
-  Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>\r
   Copyright (c) 2020, AMD Inc. All rights reserved.<BR>\r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
@@ -43,4 +43,25 @@ StandardSignatureIsAuthenticAMD (
   VOID\r
   );\r
 \r
+/**\r
+  Return the 32bit CPU family and model value.\r
+\r
+  @return CPUID[01h].EAX with Processor Type and Stepping ID cleared.\r
+**/\r
+UINT32\r
+EFIAPI\r
+GetCpuFamilyModel (\r
+  VOID\r
+  );\r
+\r
+/**\r
+  Return the CPU stepping ID.\r
+  @return CPU stepping ID value in CPUID[01h].EAX.\r
+**/\r
+UINT8\r
+EFIAPI\r
+GetCpuSteppingId (\r
+  VOID\r
+  );\r
+\r
 #endif\r