MdePkg[all]  1.08
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Cpuid.h File Reference

Data Structures

union  CPUID_AMD_EXTENDED_CPU_SIG_EAX
 
union  CPUID_AMD_EXTENDED_CPU_SIG_EBX
 
union  CPUID_AMD_EXTENDED_CPU_SIG_ECX
 
union  CPUID_AMD_EXTENDED_CPU_SIG_EDX
 
union  CPUID_AMD_VIR_PHY_ADDRESS_SIZE_EAX
 
union  CPUID_AMD_VIR_PHY_ADDRESS_SIZE_EBX
 
union  CPUID_AMD_VIR_PHY_ADDRESS_SIZE_ECX
 
union  CPUID_AMD_PROCESSOR_TOPOLOGY_EAX
 
union  CPUID_AMD_PROCESSOR_TOPOLOGY_EBX
 
union  CPUID_AMD_PROCESSOR_TOPOLOGY_ECX
 
union  CPUID_MEMORY_ENCRYPTION_INFO_EAX
 
union  CPUID_MEMORY_ENCRYPTION_INFO_EBX
 
union  CPUID_MEMORY_ENCRYPTION_INFO_ECX
 
union  CPUID_MEMORY_ENCRYPTION_INFO_EDX
 

Macros

#define CPUID_AMD_PROCESSOR_TOPOLOGY   0x8000001E
 
#define CPUID_MEMORY_ENCRYPTION_INFO   0x8000001F
 
#define CPUID_SIGNATURE_AUTHENTIC_AMD_EBX   SIGNATURE_32 ('A', 'u', 't', 'h')
 
#define CPUID_SIGNATURE_AUTHENTIC_AMD_EDX   SIGNATURE_32 ('e', 'n', 't', 'i')
 
#define CPUID_SIGNATURE_AUTHENTIC_AMD_ECX   SIGNATURE_32 ('c', 'A', 'M', 'D')
 

Detailed Description

CPUID leaf definitions.

Provides defines for CPUID leaf indexes. Data structures are provided for registers returned by a CPUID leaf that contain one or more bit fields. If a register returned is a single 32-bit value, then a data structure is not provided for that register.

Copyright (c) 2017, Advanced Micro Devices. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Specification Reference:
AMD64 Architecture Programming Manual volume 2, March 2017, Sections 15.34

Macro Definition Documentation

#define CPUID_AMD_PROCESSOR_TOPOLOGY   0x8000001E

CPUID AMD Processor Topology

Parameters
EAXCPUID_AMD_PROCESSOR_TOPOLOGY (0x8000001E)
Return values
EAXExtended APIC ID described by the type CPUID_AMD_PROCESSOR_TOPOLOGY_EAX.
EBXCore Identifiers described by the type CPUID_AMD_PROCESSOR_TOPOLOGY_EBX.
ECXNode Identifiers described by the type CPUID_AMD_PROCESSOR_TOPOLOGY_ECX.
EDXReserved.
#define CPUID_MEMORY_ENCRYPTION_INFO   0x8000001F

CPUID Memory Encryption Information

Parameters
EAXCPUID_MEMORY_ENCRYPTION_INFO (0x8000001F)
Return values
EAXReturns the memory encryption feature support status.
EBXIf memory encryption feature is present then return the page table bit number used to enable memory encryption support and reducing of physical address space in bits.
ECXReturns number of encrypted guest supported simultaneously.
EDXReturns minimum SEV enabled and SEV disabled ASID.

Example usage

UINT32 Eax;
UINT32 Ebx;
UINT32 Ecx;
UINT32 Edx;
AsmCpuid (CPUID_MEMORY_ENCRYPTION_INFO, &Eax, &Ebx, &Ecx, &Edx);
#define CPUID_SIGNATURE_AUTHENTIC_AMD_EBX   SIGNATURE_32 ('A', 'u', 't', 'h')

CPUID Signature Information

Parameters
EAXCPUID_SIGNATURE (0x00)
Return values
EAXReturns the highest value the CPUID instruction recognizes for returning basic processor information. The value is returned is processor specific.
EBXFirst 4 characters of a vendor identification string.
ECXLast 4 characters of a vendor identification string.
EDXMiddle 4 characters of a vendor identification string. CPUID signature values returned by AMD processors
#define CPUID_SIGNATURE_AUTHENTIC_AMD_ECX   SIGNATURE_32 ('c', 'A', 'M', 'D')

CPUID Signature Information

Parameters
EAXCPUID_SIGNATURE (0x00)
Return values
EAXReturns the highest value the CPUID instruction recognizes for returning basic processor information. The value is returned is processor specific.
EBXFirst 4 characters of a vendor identification string.
ECXLast 4 characters of a vendor identification string.
EDXMiddle 4 characters of a vendor identification string. CPUID signature values returned by AMD processors
#define CPUID_SIGNATURE_AUTHENTIC_AMD_EDX   SIGNATURE_32 ('e', 'n', 't', 'i')

CPUID Signature Information

Parameters
EAXCPUID_SIGNATURE (0x00)
Return values
EAXReturns the highest value the CPUID instruction recognizes for returning basic processor information. The value is returned is processor specific.
EBXFirst 4 characters of a vendor identification string.
ECXLast 4 characters of a vendor identification string.
EDXMiddle 4 characters of a vendor identification string. CPUID signature values returned by AMD processors