11 #include <soc/bootblock.h>
13 #include <soc/pci_devs.h>
82 const char cpu_not_found[] =
"Platform info not available";
83 const char *cpu_name = cpu_not_found;
85 static const char *
const mode[] = {
"NOT ",
""};
90 cpuidr =
cpuid(index);
91 if (cpuidr.
eax >= 0x80000004) {
94 for (i = 2; i <= 4; i++) {
95 cpuidr =
cpuid(index + i);
102 cpu_name = (
char *)p;
105 while (cpu_name[0] ==
' ' &&
strlen(cpu_name) > 0)
124 aes = (cpu_feature_flag &
CPUID_AES) ? 1 : 0;
125 txt = (cpu_feature_flag &
CPUID_SMX) ? 1 : 0;
126 vt = (cpu_feature_flag &
CPUID_VMX) ? 1 : 0;
128 "CPU: AES %ssupported, TXT %ssupported, VT %ssupported\n",
129 mode[aes], mode[txt], mode[vt]);
138 const char *mch_type =
"Unknown";
148 mchid, mch_revision, mch_type);
173 const char *igd_type =
"Unknown";
#define printk(level,...)
uint32_t cpu_get_feature_flags_ecx(void)
uint32_t cpu_get_cpuid(void)
static __always_inline u16 pci_read_config16(const struct device *dev, u16 reg)
static __always_inline u8 pci_read_config8(const struct device *dev, u16 reg)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
uint32_t get_current_microcode_rev(void)
#define PCI_DID_INTEL_ICL_GT2_ULT_1
#define PCI_DID_INTEL_ICL_BASE_Y_ESPI
#define PCI_DID_INTEL_ICL_SUPER_Y_ESPI
#define PCI_DID_INTEL_ICL_GT3_ULT
#define PCI_DID_INTEL_ICL_ID_Y_2
#define PCI_DID_INTEL_ICL_U_SUPER_U_ESPI_REV0
#define PCI_DID_INTEL_ICL_GT2_ULX_3
#define PCI_DID_INTEL_ICL_GT2_ULT_4
#define PCI_DID_INTEL_ICL_GT2_ULT_5
#define PCI_DID_INTEL_ICL_ID_U_2_2
#define PCI_DID_INTEL_ICL_BASE_U_ESPI
#define PCI_DID_INTEL_ICL_GT2_ULX_0
#define PCI_DID_INTEL_ICL_ID_U
#define PCI_DID_INTEL_ICL_GT2_ULX_4
#define PCI_DID_INTEL_ICL_Y_PREMIUM_ESPI
#define PCI_DID_INTEL_ICL_ID_Y
#define PCI_DID_INTEL_ICL_GT2_ULX_2
#define PCI_DID_INTEL_ICL_GT2_ULT_2
#define PCI_DID_INTEL_ICL_GT0_ULT
#define PCI_DID_INTEL_ICL_GT2_ULX_1
#define PCI_DID_INTEL_ICL_GT1_ULT
#define PCI_DID_INTEL_ICL_U_PREMIUM_ESPI
#define PCI_DID_INTEL_ICL_GT2_ULX_5
#define PCI_DID_INTEL_ICL_U_SUPER_U_ESPI
#define PCI_DID_INTEL_ICL_GT0_5_ULT
#define PCI_DID_INTEL_ICL_GT2_ULT_3
size_t strlen(const char *src)