]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change to common header file not applicable to open-vm-tools.
authorKruti Pendharkar <kp025370@broadcom.com>
Tue, 25 Feb 2025 01:42:24 +0000 (17:42 -0800)
committerKruti Pendharkar <kp025370@broadcom.com>
Tue, 25 Feb 2025 01:42:24 +0000 (17:42 -0800)
open-vm-tools/lib/include/x86cpuid.h

index f5ac23c6823a8cda099ac9541a33d81314f057cf..d321c9c6556c7c232bc396bcdc1516c0bb65c2e6 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (c) 1998-2024 Broadcom. All Rights Reserved.
+ * Copyright (c) 1998-2025 Broadcom. All Rights Reserved.
  * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
  *
  * This program is free software; you can redistribute it and/or modify it
@@ -1787,6 +1787,7 @@ CPUIDCheck(int32 eaxIn, int32 eaxInCheck,
 #define CPUID_FAMILY_P5               5
 #define CPUID_FAMILY_P6               6
 #define CPUID_FAMILY_P4              15
+#define CPUID_FAMILY_19              19
 
 /* Effective AMD CPU Families */
 #define CPUID_FAMILY_5x86            0x4
@@ -1810,7 +1811,7 @@ CPUIDCheck(int32 eaxIn, int32 eaxInCheck,
 /* Effective Hygon CPU Families. */
 #define CPUID_FAMILY_DHYANA          0x18
 
-/* Intel model information */
+/* Intel model information (family 6) */
 #define CPUID_MODEL_PPRO                 1
 #define CPUID_MODEL_PII_03               3
 #define CPUID_MODEL_PII_05               5
@@ -1877,6 +1878,7 @@ CPUIDCheck(int32 eaxIn, int32 eaxInCheck,
 #define CPUID_MODEL_RAPTORLAKE_BA     0xba  // Raptor Lake H/P/PX J-0, U Q-0
 #define CPUID_MODEL_RAPTORLAKE_BF     0xbf  // Raptor Lake S/HX C-0
 
+
 /* Intel stepping information */
 #define CPUID_STEPPING_KABYLAKE_ES     0x8  // Kaby Lake S/H/U/Y ES
 #define CPUID_STEPPING_COFFEELAKE_A    0xA  // Coffee Lake U/S/H
@@ -2040,6 +2042,12 @@ CPUID_FAMILY_IS_PENTIUM4(uint32 eax)
    return CPUID_EFFECTIVE_FAMILY(eax) == CPUID_FAMILY_P4;
 }
 
+static INLINE Bool
+CPUID_FAMILY_IS_19(uint32 eax)
+{
+   return CPUID_EFFECTIVE_FAMILY(eax) == CPUID_FAMILY_19;
+}
+
 /*
  * Intel Pentium M processors are Yonah/Sossaman or an older P-M
  */