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 <cpu/x86/name.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <soc/romstage.h>
#include <soc/pci_devs.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   lpcid
 
   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)
static

Definition at line 59 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)
static

Definition at line 54 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 64 of file report_platform.c.

References ARRAY_SIZE, BIOS_INFO, cpu_get_cpuid(), cpu_get_feature_flags_ecx(), cpu_id, cpu_table, cpuid, CPUID_AES, CPUID_SMX, CPUID_VMX, fill_processor_name(), get_current_microcode_rev(), and printk.

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 130 of file report_platform.c.

References ARRAY_SIZE, BIOS_INFO, 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 94 of file report_platform.c.

References ARRAY_SIZE, BIOS_INFO, 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 113 of file report_platform.c.

References ARRAY_SIZE, BIOS_INFO, get_dev_id(), get_dev_revision(), lpcid, PCH_DEV_LPC, 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 147 of file report_platform.c.

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

Here is the call graph for this function:

Variable Documentation

◆ 

struct { ... } cpu_table[]
Initial value:
= {
{ CPUID_APOLLOLAKE_A0, "Apollolake A0" },
{ CPUID_APOLLOLAKE_B0, "Apollolake B0" },
{ CPUID_APOLLOLAKE_E0, "Apollolake E0" },
{ CPUID_GLK_A0, "Geminilake A0" },
{ CPUID_GLK_B0, "Geminilake B0" },
{ CPUID_GLK_R0, "Geminilake R0" },
}
#define CPUID_APOLLOLAKE_E0
Definition: cpu_ids.h:29
#define CPUID_APOLLOLAKE_A0
Definition: cpu_ids.h:27
#define CPUID_GLK_A0
Definition: cpu_ids.h:30
#define CPUID_GLK_R0
Definition: cpu_ids.h:32
#define CPUID_GLK_B0
Definition: cpu_ids.h:31
#define CPUID_APOLLOLAKE_B0
Definition: cpu_ids.h:28

Referenced by report_cpu_info().

◆ cpuid

u32 cpuid

Definition at line 16 of file report_platform.c.

◆ 

struct { ... } igd_table[]
Initial value:
= {
{ PCI_DID_INTEL_APL_IGD_HD_505, "Apollolake HD 505" },
{ PCI_DID_INTEL_APL_IGD_HD_500, "Apollolake HD 500" },
{ PCI_DID_INTEL_GLK_IGD, "Geminilake" },
{ PCI_DID_INTEL_GLK_IGD_EU12, "Geminilake EU12" },
}
#define PCI_DID_INTEL_GLK_IGD_EU12
Definition: pci_ids.h:3847
#define PCI_DID_INTEL_APL_IGD_HD_505
Definition: pci_ids.h:3844
#define PCI_DID_INTEL_GLK_IGD
Definition: pci_ids.h:3846
#define PCI_DID_INTEL_APL_IGD_HD_500
Definition: pci_ids.h:3845

Referenced by report_igd_info().

◆ igdid

u16 igdid

Definition at line 45 of file report_platform.c.

◆ lpcid

u16 lpcid

Definition at line 36 of file report_platform.c.

Referenced by pch_is_wpt_ulx(), and report_pch_info().

◆ 

struct { ... } mch_table[]
Initial value:
= {
{ PCI_DID_INTEL_GLK_NB, "Geminilake" },
{ PCI_DID_INTEL_APL_NB, "Apollolake" },
}
#define PCI_DID_INTEL_GLK_NB
Definition: pci_ids.h:3966
#define PCI_DID_INTEL_APL_NB
Definition: pci_ids.h:3965

Referenced by report_mch_info().

◆ mchid

u16 mchid

Definition at line 28 of file report_platform.c.

◆ name

const char* name

Definition at line 17 of file report_platform.c.

◆ 

struct { ... } pch_table[]
Initial value:
= {
{ PCI_DID_INTEL_APL_LPC, "Apollolake" },
{ PCI_DID_INTEL_GLK_LPC, "Geminilake" },
{ PCI_DID_INTEL_GLK_ESPI, "Geminilake" },
}
#define PCI_DID_INTEL_APL_LPC
Definition: pci_ids.h:2893
#define PCI_DID_INTEL_GLK_LPC
Definition: pci_ids.h:2894
#define PCI_DID_INTEL_GLK_ESPI
Definition: pci_ids.h:2895

Referenced by report_pch_info().