Files
OpenCellular/host/include/crossystem_vbnv.h
Randall Spangler dff5852c2f vboot: Use 2nvstorage instead of vboot_nvstorage
Remove the old vboot1 vboot_nvstorage library (VbNv*() functions) and
use the vboot2 library (vb2_nv_*()) instead.  This is needed in
preparation for moving to 64-byte records; no sense in implementing
that change twice...

Should be (better be) no change in system behavior.

BUG=chromium:789276
BRANCH=none
TEST=make runtests
     compare output of crossystem before/after change (should be identical)

Change-Id: I10f9975b0824263064b9a74a3c6daadcecc085d3
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/794732
2017-12-11 15:16:25 -08:00

36 lines
811 B
C

/* Copyright 2016 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* vboot nv storage related functions exported for use by userspace programs
*/
#ifndef VBOOT_REFERENCE_CROSSYSTEM_VBNV_H_
#define VBOOT_REFERENCE_CROSSYSTEM_VBNV_H_
#ifdef __cplusplus
extern "C" {
#endif
struct vb2_context;
/**
* Attempt to read non-volatile storage using mosys.
*
* Returns 0 if success, non-zero if error.
*/
int vb2_read_nv_storage_mosys(struct vb2_context *ctx);
/**
* Attempt to write non-volatile storage using mosys.
*
* Returns 0 if success, non-zero if error.
*/
int vb2_write_nv_storage_mosys(struct vb2_context* ctx);
#ifdef __cplusplus
}
#endif
#endif /* VBOOT_REFERENCE_CROSSYSTEM_VBNV_H_ */