libcpuid
Data Fields
cpu_raw_data_t Struct Reference

Contains just the raw CPUID data. More...

#include <libcpuid.h>

Data Fields

uint32_t basic_cpuid [MAX_CPUID_LEVEL][NUM_REGS]
 
uint32_t ext_cpuid [MAX_EXT_CPUID_LEVEL][NUM_REGS]
 
uint32_t intel_fn4 [MAX_INTELFN4_LEVEL][NUM_REGS]
 
uint32_t intel_fn11 [MAX_INTELFN11_LEVEL][NUM_REGS]
 
uint32_t intel_fn12h [MAX_INTELFN12H_LEVEL][NUM_REGS]
 
uint32_t intel_fn14h [MAX_INTELFN14H_LEVEL][NUM_REGS]
 
uint32_t amd_fn8000001dh [MAX_AMDFN8000001DH_LEVEL][NUM_REGS]
 
uint32_t amd_fn80000026h [MAX_AMDFN80000026H_LEVEL][NUM_REGS]
 
uint64_t arm_midr
 
uint64_t arm_mpidr
 
uint64_t arm_revidr
 
uint32_t arm_id_afr [MAX_ARM_ID_AFR_REGS]
 
uint32_t arm_id_dfr [MAX_ARM_ID_DFR_REGS]
 
uint32_t arm_id_isar [MAX_ARM_ID_ISAR_REGS]
 
uint32_t arm_id_mmfr [MAX_ARM_ID_MMFR_REGS]
 
uint32_t arm_id_pfr [MAX_ARM_ID_PFR_REGS]
 
uint64_t arm_id_aa64afr [MAX_ARM_ID_AA64AFR_REGS]
 
uint64_t arm_id_aa64dfr [MAX_ARM_ID_AA64DFR_REGS]
 
uint64_t arm_id_aa64isar [MAX_ARM_ID_AA64ISAR_REGS]
 
uint64_t arm_id_aa64mmfr [MAX_ARM_ID_AA64MMFR_REGS]
 
uint64_t arm_id_aa64pfr [MAX_ARM_ID_AA64PFR_REGS]
 
uint64_t arm_id_aa64smfr [MAX_ARM_ID_AA64SMFR_REGS]
 
uint64_t arm_id_aa64zfr [MAX_ARM_ID_AA64ZFR_REGS]
 

Detailed Description

Contains just the raw CPUID data.

This contains only the most basic CPU data, required to do identification and feature recognition. Every processor should be identifiable using this data only.

Field Documentation

◆ amd_fn8000001dh

uint32_t cpu_raw_data_t::amd_fn8000001dh[MAX_AMDFN8000001DH_LEVEL][NUM_REGS]

when the CPU is AMD and supports leaf 8000001Dh (topology information for the DC) this stores the result of CPUID with eax = 8000001Dh and ecx = 0, 1, 2...

◆ amd_fn80000026h

uint32_t cpu_raw_data_t::amd_fn80000026h[MAX_AMDFN80000026H_LEVEL][NUM_REGS]

when the CPU is AMD and supports leaf 80000026h (Extended CPU Topology leaf) this stores the result of CPUID with eax = 80000026h and ecx = 0, 1, 2...

◆ arm_id_aa64afr

uint64_t cpu_raw_data_t::arm_id_aa64afr[MAX_ARM_ID_AA64AFR_REGS]

when then CPU is ARM-based and supports ID_AA64AFR* (AArch64 Auxiliary Feature Register)

◆ arm_id_aa64dfr

uint64_t cpu_raw_data_t::arm_id_aa64dfr[MAX_ARM_ID_AA64DFR_REGS]

when then CPU is ARM-based and supports ID_AA64DFR* (AArch64 Debug Feature Register)

◆ arm_id_aa64isar

uint64_t cpu_raw_data_t::arm_id_aa64isar[MAX_ARM_ID_AA64ISAR_REGS]

when then CPU is ARM-based and supports D_AA64ISAR* (AArch64 Instruction Set Attribute Register)

◆ arm_id_aa64mmfr

uint64_t cpu_raw_data_t::arm_id_aa64mmfr[MAX_ARM_ID_AA64MMFR_REGS]

when then CPU is ARM-based and supports ID_AA64MMFR* (AArch64 Memory Model Feature Register)

◆ arm_id_aa64pfr

uint64_t cpu_raw_data_t::arm_id_aa64pfr[MAX_ARM_ID_AA64PFR_REGS]

when then CPU is ARM-based and supports ID_AA64PFR* (AArch64 Processor Feature Register)

◆ arm_id_aa64smfr

uint64_t cpu_raw_data_t::arm_id_aa64smfr[MAX_ARM_ID_AA64SMFR_REGS]

when then CPU is ARM-based and supports ID_AA64SMFR* (AArch64 SME Feature ID Register )

◆ arm_id_aa64zfr

uint64_t cpu_raw_data_t::arm_id_aa64zfr[MAX_ARM_ID_AA64ZFR_REGS]

when then CPU is ARM-based and supports ID_AA64ZFR* (SVE Feature ID register)

◆ arm_id_afr

uint32_t cpu_raw_data_t::arm_id_afr[MAX_ARM_ID_AFR_REGS]

when then CPU is ARM-based and supports ID_AFR* (AArch32 Auxiliary Feature Register)

◆ arm_id_dfr

uint32_t cpu_raw_data_t::arm_id_dfr[MAX_ARM_ID_DFR_REGS]

when then CPU is ARM-based and supports ID_DFR* (AArch32 Debug Feature Register)

◆ arm_id_isar

uint32_t cpu_raw_data_t::arm_id_isar[MAX_ARM_ID_ISAR_REGS]

when then CPU is ARM-based and supports D_ISAR* (AArch32 Instruction Set Attribute Register)

◆ arm_id_mmfr

uint32_t cpu_raw_data_t::arm_id_mmfr[MAX_ARM_ID_MMFR_REGS]

when then CPU is ARM-based and supports ID_MMFR* (AArch32 Memory Model Feature Register)

◆ arm_id_pfr

uint32_t cpu_raw_data_t::arm_id_pfr[MAX_ARM_ID_PFR_REGS]

when then CPU is ARM-based and supports ID_PFR* (AArch32 Processor Feature Register)

◆ arm_midr

uint64_t cpu_raw_data_t::arm_midr

when then CPU is ARM-based and supports MIDR (Main ID Register)

◆ arm_mpidr

uint64_t cpu_raw_data_t::arm_mpidr

when then CPU is ARM-based and supports MPIDR (Multiprocessor Affinity Register)

◆ arm_revidr

uint64_t cpu_raw_data_t::arm_revidr

when then CPU is ARM-based and supports REVIDR (Revision ID Register)

◆ basic_cpuid

uint32_t cpu_raw_data_t::basic_cpuid[MAX_CPUID_LEVEL][NUM_REGS]

contains results of CPUID for eax = 0, 1, ...

◆ ext_cpuid

uint32_t cpu_raw_data_t::ext_cpuid[MAX_EXT_CPUID_LEVEL][NUM_REGS]

contains results of CPUID for eax = 0x80000000, 0x80000001, ...

◆ intel_fn11

uint32_t cpu_raw_data_t::intel_fn11[MAX_INTELFN11_LEVEL][NUM_REGS]

when the CPU is intel and it supports leaf 0Bh (Extended Topology enumeration leaf), this stores the result of CPUID with eax = 11 and ecx = 0, 1, 2...

◆ intel_fn12h

uint32_t cpu_raw_data_t::intel_fn12h[MAX_INTELFN12H_LEVEL][NUM_REGS]

when the CPU is intel and supports leaf 12h (SGX enumeration leaf), this stores the result of CPUID with eax = 0x12 and ecx = 0, 1, 2...

◆ intel_fn14h

uint32_t cpu_raw_data_t::intel_fn14h[MAX_INTELFN14H_LEVEL][NUM_REGS]

when the CPU is intel and supports leaf 14h (Intel Processor Trace capabilities leaf). this stores the result of CPUID with eax = 0x12 and ecx = 0, 1, 2...

◆ intel_fn4

uint32_t cpu_raw_data_t::intel_fn4[MAX_INTELFN4_LEVEL][NUM_REGS]

when the CPU is intel and it supports deterministic cache information: this contains the results of CPUID for eax = 4 and ecx = 0, 1, ...


The documentation for this struct was generated from the following file: