coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
vbnv_ec.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <types.h>
4
#include <
ec/google/chromeec/ec.h
>
5
#include <
security/vboot/vbnv.h
>
6
#include <
security/vboot/vbnv_layout.h
>
7
8
void
read_vbnv_ec
(
uint8_t
*vbnv_copy)
9
{
10
google_chromeec_vbnv_context
(1, vbnv_copy,
VBOOT_VBNV_BLOCK_SIZE
);
11
}
12
13
void
save_vbnv_ec
(
const
uint8_t
*vbnv_copy)
14
{
15
google_chromeec_vbnv_context
(0, (
uint8_t
*)vbnv_copy,
16
VBOOT_VBNV_BLOCK_SIZE
);
17
}
google_chromeec_vbnv_context
int google_chromeec_vbnv_context(int is_read, uint8_t *data, int len)
Definition:
ec.c:952
ec.h
uint8_t
unsigned char uint8_t
Definition:
stdint.h:8
vbnv.h
save_vbnv_ec
void save_vbnv_ec(const uint8_t *vbnv_copy)
Definition:
vbnv_ec.c:13
read_vbnv_ec
void read_vbnv_ec(uint8_t *vbnv_copy)
Definition:
vbnv_ec.c:8
vbnv_layout.h
VBOOT_VBNV_BLOCK_SIZE
#define VBOOT_VBNV_BLOCK_SIZE
Definition:
vbnv_layout.h:6
src
security
vboot
vbnv_ec.c
Generated by
1.9.1