coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
fw_config.c File Reference
#include <assert.h>
#include <bootstate.h>
#include <cbfs.h>
#include <console/console.h>
#include <device/device.h>
#include <ec/google/chromeec/ec.h>
#include <fw_config.h>
#include <inttypes.h>
#include <lib.h>
#include <stdbool.h>
#include <stdint.h>
#include <drivers/vpd/vpd.h>
Include dependency graph for fw_config.c:

Go to the source code of this file.

Functions

uint64_t fw_config_get (void)
 fw_config_get() - Provide firmware configuration value. More...
 
bool fw_config_probe (const struct fw_config *match)
 
bool fw_config_is_provisioned (void)
 
bool fw_config_probe_dev (const struct device *dev, const struct fw_config **matching_probe)
 

Function Documentation

◆ fw_config_get()

uint64_t fw_config_get ( void  )

fw_config_get() - Provide firmware configuration value.

Return 64bit firmware configuration value determined for the system.

Definition at line 16 of file fw_config.c.

References BIOS_INFO, BIOS_WARNING, cbfs_load(), CONFIG, google_chromeec_cbi_get_fw_config(), printk, PRIx64, UNDEFINED_FW_CONFIG, vpd_get_int(), and VPD_RW_THEN_RO.

Referenced by fw_config_is_provisioned(), and fw_config_probe().

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

◆ fw_config_is_provisioned()

bool fw_config_is_provisioned ( void  )

Definition at line 83 of file fw_config.c.

References fw_config_get(), and UNDEFINED_FW_CONFIG.

Referenced by fw_config_handle(), and fw_config_probe().

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

◆ fw_config_probe()

◆ fw_config_probe_dev()

bool fw_config_probe_dev ( const struct device dev,
const struct fw_config **  matching_probe 
)

Definition at line 88 of file fw_config.c.

References fw_config_probe(), fw_config::mask, NULL, and device::probe_list.

Referenced by is_dev_enabled().

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