coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
fw_config.h File Reference
#include <device/device.h>
#include <static.h>
#include <stdbool.h>
#include <stdint.h>
Include dependency graph for fw_config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  fw_config
 struct fw_config - Firmware configuration field and option. More...
 

Macros

#define UNDEFINED_FW_CONFIG   ~((uint64_t)0)
 
#define FW_CONFIG(__field, __option)
 

Functions

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

Macro Definition Documentation

◆ FW_CONFIG

#define FW_CONFIG (   __field,
  __option 
)
Value:
(&(const struct fw_config) { \
.field_name = FW_CONFIG_FIELD_##__field##_NAME, \
.option_name = FW_CONFIG_FIELD_##__field##_OPTION_##__option##_NAME, \
.mask = FW_CONFIG_FIELD_##__field##_MASK, \
.value = FW_CONFIG_FIELD_##__field##_OPTION_##__option##_VALUE \
})
struct fw_config - Firmware configuration field and option.
Definition: fw_config.h:20

Definition at line 28 of file fw_config.h.

◆ UNDEFINED_FW_CONFIG

#define UNDEFINED_FW_CONFIG   ~((uint64_t)0)

Definition at line 11 of file fw_config.h.

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 194 of file coreboot_table.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(), fw_config_probe(), and lb_board_config().

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

◆ fw_config_probe()

static bool fw_config_probe ( const struct fw_config match)
inlinestatic

Definition at line 85 of file fw_config.h.

◆ fw_config_probe_dev()

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

Definition at line 91 of file fw_config.h.

References NULL.