coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cbfs_glue.h File Reference
#include <commonlib/region.h>
#include <console/console.h>
#include <rules.h>
Include dependency graph for cbfs_glue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CBFS_ENABLE_HASHING
 
#define ERROR(...)   printk(BIOS_ERR, "CBFS ERROR: " __VA_ARGS__)
 
#define LOG(...)   printk(BIOS_INFO, "CBFS: " __VA_ARGS__)
 
#define DEBUG(...)
 

Typedefs

typedef const struct region_devicecbfs_dev_t
 

Functions

static ssize_t cbfs_dev_read (cbfs_dev_t dev, void *buffer, size_t offset, size_t size)
 
static size_t cbfs_dev_size (cbfs_dev_t dev)
 

Macro Definition Documentation

◆ CBFS_ENABLE_HASHING

#define CBFS_ENABLE_HASHING
Value:
(CONFIG(CBFS_VERIFICATION) && \
(CONFIG(TOCTOU_SAFETY) || ENV_INITIAL_STAGE))
@ CONFIG
Definition: dsi_common.h:201
#define ENV_INITIAL_STAGE
Definition: rules.h:292

Definition at line 19 of file cbfs_glue.h.

◆ DEBUG

#define DEBUG (   ...)
Value:
do { \
if (CONFIG(DEBUG_CBFS)) \
printk(BIOS_SPEW, "CBFS DEBUG: " __VA_ARGS__); \
} while (0)
#define BIOS_SPEW
BIOS_SPEW - Excessively verbose output.
Definition: loglevel.h:142

Definition at line 24 of file cbfs_glue.h.

◆ ERROR

#define ERROR (   ...)    printk(BIOS_ERR, "CBFS ERROR: " __VA_ARGS__)

Definition at line 22 of file cbfs_glue.h.

◆ LOG

#define LOG (   ...)    printk(BIOS_INFO, "CBFS: " __VA_ARGS__)

Definition at line 23 of file cbfs_glue.h.

Typedef Documentation

◆ cbfs_dev_t

typedef const struct region_device* cbfs_dev_t

Definition at line 29 of file cbfs_glue.h.

Function Documentation

◆ cbfs_dev_read()

static ssize_t cbfs_dev_read ( cbfs_dev_t  dev,
void buffer,
size_t  offset,
size_t  size 
)
inlinestatic

Definition at line 31 of file cbfs_glue.h.

References buffer, offset, and rdev_readat().

Referenced by cbfs_copy_fill_metadata().

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

◆ cbfs_dev_size()

static size_t cbfs_dev_size ( cbfs_dev_t  dev)
inlinestatic

Definition at line 36 of file cbfs_glue.h.

References region_device_sz().

Here is the call graph for this function: