coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
report_platform.c File Reference
#include <arch/cpu.h>
#include <device/pci_ops.h>
#include <console/console.h>
#include <cpu/intel/cpu_ids.h>
#include <cpu/intel/microcode.h>
#include <cpu/x86/msr.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <soc/bootblock.h>
#include <soc/pch.h>
#include <soc/pci_devs.h>
#include <string.h>
Include dependency graph for report_platform.c:

Go to the source code of this file.

Functions

static uint8_t get_dev_revision (pci_devfn_t dev)
 
static uint16_t get_dev_id (pci_devfn_t dev)
 
static void report_cpu_info (void)
 
static void report_mch_info (void)
 
static void report_pch_info (void)
 
static void report_igd_info (void)
 
void report_platform_info (void)
 

Variables

struct {
   u32   cpuid
 
   const char *   name
 
cpu_table []
 
struct {
   u16   mchid
 
   const char *   name
 
mch_table []
 
struct {
   u16   espiid
 
   const char *   name
 
pch_table []
 
struct {
   u16   igdid
 
   const char *   name
 
igd_table []
 

Function Documentation

◆ get_dev_id()

static uint16_t get_dev_id ( pci_devfn_t  dev)
inlinestatic

Definition at line 108 of file report_platform.c.

References PCI_DEVICE_ID, and pci_read_config16().

Referenced by report_igd_info(), report_mch_info(), and report_pch_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_dev_revision()

static uint8_t get_dev_revision ( pci_devfn_t  dev)
inlinestatic

Definition at line 103 of file report_platform.c.

References pci_read_config8(), and PCI_REVISION_ID.

Referenced by report_igd_info(), report_mch_info(), and report_pch_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ report_cpu_info()

static void report_cpu_info ( void  )
static

Definition at line 113 of file report_platform.c.

References ARRAY_SIZE, BIOS_DEBUG, cpu_get_cpuid(), cpu_get_feature_flags_ecx(), cpu_id, cpu_table, cpuid, CPUID_AES, CPUID_SMX, CPUID_VMX, cpuid_result::eax, cpuid_result::ebx, cpuid_result::ecx, cpuid_result::edx, get_current_microcode_rev(), printk, and strlen().

Referenced by report_platform_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ report_igd_info()

static void report_igd_info ( void  )
static

Definition at line 203 of file report_platform.c.

References ARRAY_SIZE, BIOS_DEBUG, get_dev_id(), get_dev_revision(), igd_table, igdid, printk, and SA_DEV_IGD.

Referenced by report_platform_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ report_mch_info()

static void report_mch_info ( void  )
static

Definition at line 167 of file report_platform.c.

References ARRAY_SIZE, BIOS_DEBUG, get_dev_id(), get_dev_revision(), mch_table, mchid, printk, and SA_DEV_ROOT.

Referenced by report_platform_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ report_pch_info()

static void report_pch_info ( void  )
static

Definition at line 186 of file report_platform.c.

References ARRAY_SIZE, BIOS_DEBUG, espiid, get_dev_id(), get_dev_revision(), PCH_DEV_ESPI, pch_table, pch_type(), and printk.

Referenced by report_platform_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ report_platform_info()

void report_platform_info ( void  )

Definition at line 220 of file report_platform.c.

References report_cpu_info(), report_igd_info(), report_mch_info(), and report_pch_info().

Referenced by bootblock_soc_init(), car_soc_post_console_init(), and mainboard_romstage_entry().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ 

struct { ... } cpu_table[]
Initial value:
= {
{ CPUID_TIGERLAKE_A0, "Tigerlake A0" },
{ CPUID_TIGERLAKE_B0, "Tigerlake B0" },
{ CPUID_TIGERLAKE_R0, "Tigerlake R0" },
}
#define CPUID_TIGERLAKE_B0
Definition: cpu_ids.h:49
#define CPUID_TIGERLAKE_A0
Definition: cpu_ids.h:48
#define CPUID_TIGERLAKE_R0
Definition: cpu_ids.h:50

Referenced by report_cpu_info().

◆ cpuid

u32 cpuid

Definition at line 23 of file report_platform.c.

◆ espiid

u16 espiid

Definition at line 44 of file report_platform.c.

◆ 

struct { ... } igd_table[]
Initial value:
= {
{ PCI_DID_INTEL_TGL_GT0, "Tigerlake U GT0" },
{ PCI_DID_INTEL_TGL_GT1_H_32, "Tigerlake H GT1 32EU" },
{ PCI_DID_INTEL_TGL_GT1_H_16, "Tigerlake H GT1 16EU" },
{ PCI_DID_INTEL_TGL_GT2_ULT, "Tigerlake U GT2" },
{ PCI_DID_INTEL_TGL_GT2_ULX, "Tigerlake Y GT2" },
{ PCI_DID_INTEL_TGL_GT3_ULT, "Tigerlake U GT3" },
{ PCI_DID_INTEL_TGL_GT2_ULT_1, "Tigerlake U GT2 1" },
}
#define PCI_DID_INTEL_TGL_GT0
Definition: pci_ids.h:3912
#define PCI_DID_INTEL_TGL_GT3_ULT
Definition: pci_ids.h:3916
#define PCI_DID_INTEL_TGL_GT2_ULT_1
Definition: pci_ids.h:3918
#define PCI_DID_INTEL_TGL_GT1_H_16
Definition: pci_ids.h:3914
#define PCI_DID_INTEL_TGL_GT1_H_32
Definition: pci_ids.h:3913
#define PCI_DID_INTEL_TGL_GT2_ULX
Definition: pci_ids.h:3917
#define PCI_DID_INTEL_TGL_GT2_ULT
Definition: pci_ids.h:3915

Referenced by report_igd_info().

◆ igdid

u16 igdid

Definition at line 91 of file report_platform.c.

◆ 

struct { ... } mch_table[]
Initial value:
= {
{ PCI_DID_INTEL_TGL_ID_U_2_2, "Tigerlake-U-2-2" },
{ PCI_DID_INTEL_TGL_ID_U_4_2, "Tigerlake-U-4-2" },
{ PCI_DID_INTEL_TGL_ID_Y_2_2, "Tigerlake-Y-2-2" },
{ PCI_DID_INTEL_TGL_ID_Y_4_2, "Tigerlake-Y-4-2" },
{ PCI_DID_INTEL_TGL_ID_H_6_1, "Tigerlake-H-6-1" },
{ PCI_DID_INTEL_TGL_ID_H_8_1, "Tigerlake-H-8-1" },
}
#define PCI_DID_INTEL_TGL_ID_H_6_1
Definition: pci_ids.h:4022
#define PCI_DID_INTEL_TGL_ID_U_4_2
Definition: pci_ids.h:4019
#define PCI_DID_INTEL_TGL_ID_Y_4_2
Definition: pci_ids.h:4021
#define PCI_DID_INTEL_TGL_ID_Y_2_2
Definition: pci_ids.h:4020
#define PCI_DID_INTEL_TGL_ID_U_2_2
Definition: pci_ids.h:4018
#define PCI_DID_INTEL_TGL_ID_H_8_1
Definition: pci_ids.h:4023

Referenced by report_mch_info().

◆ mchid

u16 mchid

Definition at line 32 of file report_platform.c.

◆ name

const char* name

Definition at line 24 of file report_platform.c.

◆ 

struct { ... } pch_table[]

Referenced by report_pch_info().