coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
vstore.c File Reference
#include <stdint.h>
#include <string.h>
#include "ec.h"
#include "ec_commands.h"
Include dependency graph for vstore.c:

Go to the source code of this file.

Functions

int google_chromeec_vstore_supported (void)
 
int google_chromeec_vstore_info (uint32_t *locked)
 
int google_chromeec_vstore_read (int slot, uint8_t *data)
 
int google_chromeec_vstore_write (int slot, uint8_t *data, size_t size)
 

Function Documentation

◆ google_chromeec_vstore_info()

int google_chromeec_vstore_info ( uint32_t locked)

Definition at line 22 of file vstore.c.

References chromeec_command::cmd_code, chromeec_command::cmd_data_out, EC_CMD_VSTORE_INFO, google_chromeec_command(), and info.

Referenced by vboot_save_hash().

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

◆ google_chromeec_vstore_read()

int google_chromeec_vstore_read ( int  slot,
uint8_t data 
)

◆ google_chromeec_vstore_supported()

int google_chromeec_vstore_supported ( void  )

Definition at line 11 of file vstore.c.

References EC_FEATURE_VSTORE, and google_chromeec_check_feature().

Here is the call graph for this function:

◆ google_chromeec_vstore_write()

int google_chromeec_vstore_write ( int  slot,
uint8_t data,
size_t  size 
)

Definition at line 75 of file vstore.c.

References chromeec_command::cmd_code, chromeec_command::cmd_data_in, ec_params_vstore_write::data, EC_CMD_VSTORE_WRITE, EC_VSTORE_SLOT_MAX, EC_VSTORE_SLOT_SIZE, google_chromeec_command(), memcpy(), and ec_params_vstore_write::slot.

Referenced by vboot_save_hash().

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