X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EdkCompatibilityPkg%2FFoundation%2FCpu%2FPentium%2FCpuIA32Lib%2FEfiCpuVersion.c;fp=EdkCompatibilityPkg%2FFoundation%2FCpu%2FPentium%2FCpuIA32Lib%2FEfiCpuVersion.c;h=0000000000000000000000000000000000000000;hp=f1c3c38bd4b857cd807fe60858ceb3ae9702e9f0;hb=c455bc8c8d78ad51c24426a500914ea32504bf06;hpb=5bca07268acabe7f31407358e875ccf89cb5e386 diff --git a/EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/EfiCpuVersion.c b/EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/EfiCpuVersion.c deleted file mode 100644 index f1c3c38bd4..0000000000 --- a/EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/EfiCpuVersion.c +++ /dev/null @@ -1,74 +0,0 @@ -/*++ - -Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.
-This program and the accompanying materials -are licensed and made available under the terms and conditions of the BSD License -which accompanies this distribution. The full text of the license may be found at -http://opensource.org/licenses/bsd-license.php - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -Module Name: - - EfiCpuVersion.c - -Abstract: - - Provide cpu version extract considering extended family & model ID. ---*/ - -#include "CpuIA32.h" - -VOID -EFIAPI -EfiCpuVersion ( - IN OUT UINT16 *FamilyId, OPTIONAL - IN OUT UINT8 *Model, OPTIONAL - IN OUT UINT8 *SteppingId, OPTIONAL - IN OUT UINT8 *Processor OPTIONAL - ) -/*++ - -Routine Description: - Extract CPU detail version infomation - -Arguments: - FamilyId - FamilyId, including ExtendedFamilyId - Model - Model, including ExtendedModel - SteppingId - SteppingId - Processor - Processor - ---*/ -{ - EFI_CPUID_REGISTER Register; - UINT8 TempFamilyId; - - EfiCpuid (EFI_CPUID_VERSION_INFO, &Register); - - if (SteppingId != NULL) { - *SteppingId = (UINT8) (Register.RegEax & 0xF); - } - - if (Processor != NULL) { - *Processor = (UINT8) ((Register.RegEax >> 12) & 0x3); - } - - if (Model != NULL || FamilyId != NULL) { - TempFamilyId = (UINT8) ((Register.RegEax >> 8) & 0xF); - - if (Model != NULL) { - *Model = (UINT8) ((Register.RegEax >> 4) & 0xF); - if (TempFamilyId == 0x6 || TempFamilyId == 0xF) { - *Model = (UINT8) (*Model | ((Register.RegEax >> 12) & 0xF0)); - } - } - - if (FamilyId != NULL) { - *FamilyId = TempFamilyId; - if (TempFamilyId == 0xF) { - *FamilyId = (UINT8 ) (*FamilyId + (UINT16) ((Register.RegEax >> 20) & 0xFF)); - } - } - } -}