![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <assert.h>
#include <console/console.h>
#include <drivers/ipmi/ipmi_ops.h>
#include <drivers/ocp/dmi/ocp_dmi.h>
#include <drivers/vpd/vpd.h>
#include <security/intel/txt/txt.h>
#include <soc/ramstage.h>
#include <soc/soc_util.h>
#include <stdio.h>
#include <string.h>
#include <smbios.h>
#include <device/pci_def.h>
#include <device/pci_ops.h>
#include <soc/util.h>
#include <hob_iiouds.h>
#include <hob_memmap.h>
#include <cpxsp_dl_gpio.h>
#include "ipmi.h"
#include "vpd.h"
Go to the source code of this file.
Data Structures | |
struct | slot_info |
Macros | |
#define | SLOT_ID_LEN 2 |
#define | SPD_REGVID_LEN 6 |
Functions | |
void | smbios_ec_revision (uint8_t *ec_major_revision, uint8_t *ec_minor_revision) |
const char * | smbios_mainboard_location_in_chassis (void) |
u8 | smbios_mainboard_feature_flags (void) |
unsigned int | smbios_cpu_get_voltage (void) |
static void | write_oem_word (uint16_t val, char *str) |
static void | dl_oem_smbios_strings (struct device *dev, struct smbios_type11 *t) |
static int | create_smbios_type9 (int *handle, unsigned long *current) |
static int | mainboard_smbios_data (struct device *dev, int *handle, unsigned long *current) |
void | smbios_fill_dimm_locator (const struct dimm_info *dimm, struct smbios_type17 *t) |
unsigned int | smbios_processor_family (struct cpuid_result res) |
unsigned int | smbios_processor_characteristics (void) |
static void | mainboard_enable (struct device *dev) |
void | mainboard_silicon_init_params (FSPS_UPD *params) |
static void | mainboard_final (void *chip_info) |
bool | skip_intel_txt_lockdown (void) |
Variables | |
struct fru_info_str | fru_strings |
static char | slot_id_str [SLOT_ID_LEN] |
slot_info | slotinfo [] |
static const struct port_information | smbios_type8_info [] |
struct chip_operations | mainboard_ops |
#define SLOT_ID_LEN 2 |
Definition at line 24 of file ramstage.c.
#define SPD_REGVID_LEN 6 |
Definition at line 107 of file ramstage.c.
|
static |
Definition at line 189 of file ramstage.c.
References ARRAY_SIZE, BIOS_ERR, BIOS_INFO, CB_SUCCESS, get_stack_busno(), ipmi_get_pcie_config(), length, PCI_CAP_ID_PCIE, pci_dev, PCI_DEV, PCI_EXP_SLTCAP, PCI_EXP_SLTCAP_HPC, pci_s_find_capability(), pci_s_read_config16(), pci_s_read_config32(), pci_s_read_config8(), PCI_SECONDARY_BUS, PCIE_CONFIG_A, PCIE_CONFIG_B, PCIE_CONFIG_C, PCIE_CONFIG_D, printk, SlotDataBusWidth16X, slotinfo, SlotLengthLong, SlotLengthShort, SlotUsageAvailable, SlotUsageInUse, SlotUsageUnknown, SMBIOS_SLOT_3P3V, SMBIOS_SLOT_HOTPLUG, SMBIOS_SLOT_PME, and smbios_write_type9().
Referenced by mainboard_smbios_data().
|
static |
Definition at line 114 of file ramstage.c.
References assert, BIOS_ERR, CB_SUCCESS, ch, smbios_type11::count, smbios_type11::eos, get_system_memory_map(), ipmi_get_pcie_config(), NULL, ocp_oem_smbios_strings(), PCIE_CONFIG_A, PCIE_CONFIG_B, PCIE_CONFIG_C, PCIE_CONFIG_D, PCIE_CONFIG_UNKNOWN, printk, smbios_add_oem_string(), SPD_REGVID_LEN, strconcat(), and write_oem_word().
Referenced by mainboard_enable().
Definition at line 337 of file ramstage.c.
References dl_oem_smbios_strings(), fru_strings, mainboard_smbios_data(), device::ops, and read_fru_areas().
Definition at line 350 of file ramstage.c.
void mainboard_silicon_init_params | ( | FSPS_UPD * | params | ) |
Definition at line 344 of file ramstage.c.
References ARRAY_SIZE, gpio_configure_pads(), and gpio_table.
|
static |
Definition at line 299 of file ramstage.c.
References ARRAY_SIZE, create_smbios_type9(), smbios_type8_info, and smbios_write_type8().
Referenced by mainboard_enable().
Definition at line 359 of file ramstage.c.
References BIOS_DEBUG, BIOS_INFO, printk, SKIP_INTEL_TXT_LOCKDOWN, SKIP_INTEL_TXT_LOCKDOWN_DEFAULT, vpd_get_bool(), and VPD_RW_THEN_RO.
Referenced by dmi3_init(), iio_dfx_global_init(), and lockdown_intel_txt().
Definition at line 73 of file ramstage.c.
Definition at line 35 of file ramstage.c.
References ipmi_bmc_version().
void smbios_fill_dimm_locator | ( | const struct dimm_info * | dimm, |
struct smbios_type17 * | t | ||
) |
Definition at line 315 of file ramstage.c.
References smbios_type17::bank_locator, buf, dimm_info::channel_num, smbios_type17::device_locator, smbios_type17::eos, smbios_add_string(), and snprintf().
Definition at line 63 of file ramstage.c.
References SMBIOS_FEATURE_FLAGS_HOSTING_BOARD, and SMBIOS_FEATURE_FLAGS_REPLACEABLE.
const char* smbios_mainboard_location_in_chassis | ( | void | ) |
Definition at line 45 of file ramstage.c.
References BIOS_ERR, CB_SUCCESS, ipmi_get_slot_id(), PCIE_CONFIG_D, printk, SLOT_ID_LEN, slot_id_str, and snprintf().
Definition at line 331 of file ramstage.c.
unsigned int smbios_processor_family | ( | struct cpuid_result | res | ) |
Definition at line 326 of file ramstage.c.
Definition at line 109 of file ramstage.c.
References snprintf(), SPD_REGVID_LEN, and val.
Referenced by dl_oem_smbios_strings().
|
extern |
Definition at line 1 of file smbios.c.
Referenced by mainboard_enable(), and tp_oem_smbios_strings().
struct chip_operations mainboard_ops |
Definition at line 350 of file ramstage.c.
|
static |
Definition at line 27 of file ramstage.c.
Referenced by smbios_mainboard_location_in_chassis().
slot_info slotinfo[] |
|
static |
Definition at line 114 of file ramstage.c.
Referenced by mainboard_smbios_data().